Modify

Opened 15 years ago

Closed 15 years ago

#4495 closed defect (worksforme)

Unable to get plugin working

Reported by: commercial@… Owned by: Richard Liao
Priority: high Component: TracTweakUiPlugin
Severity: blocker Keywords:
Cc: jeremy.roberts@… Trac Release: 0.11

Description (last modified by Michael Renzmann)

Followed your install instructions as well as I could (on Trac 0.11, running through tracd.exe on Windows XP), and I get this error as soon as I enable the plugin:

Traceback (most recent call last):
  File "C:\bin\Python2.5\lib\site-packages\trac\web\api.py", line 339, in send_error
    'text/html')
  File "C:\bin\Python2.5\lib\site-packages\trac\web\chrome.py", line 683, in render_template
    template = self.load_template(filename, method=method)
  File "C:\bin\Python2.5\lib\site-packages\trac\web\chrome.py", line 659, in load_template
    self.templates = TemplateLoader(self.get_all_templates_dirs(),
  File "C:\bin\Python2.5\lib\site-packages\trac\web\chrome.py", line 406, in get_all_templates_dirs
    dirs += provider.get_templates_dirs()
  File "build\bdist.win32\egg\tractweakui\web_ui.py", line 52, in get_templates_dirs
    return [resource_filename(__name__, 'templates')]
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 841, in resource_filename
    self, resource_name
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 1311, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 1322, in _extract_resource
    zip_stat = self.zipinfo[zip_path]
KeyError: 'tractweakui\\templates'

Attachments (0)

Change History (2)

comment:1 Changed 15 years ago by Michael Renzmann

Description: modified (diff)

comment:2 Changed 15 years ago by Richard Liao

Resolution: worksforme
Status: newclosed

[5180]

  • The reason is the "templates" directory is not included in egg file
  • Fixed by adding package_data in setup.py
  • You should reinstall this plugin
  • You can exam the "templates" directory in egg file by unzip this egg file

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Richard Liao.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.