Modify

Opened 16 years ago

Closed 16 years ago

#4392 closed defect (fixed)

wrong setup.py package_data in 0.7

Reported by: anonymous Owned by: François Granade
Priority: normal Component: TicketImportPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I just tried to install the plugin and after enabling it, it failed:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.11.2-py2.4.egg/trac/web/api.py", line 367, in send_error
    'text/html')
  File "/usr/lib/python2.4/site-packages/Trac-0.11.2-py2.4.egg/trac/web/chrome.py", line 687, in render_template
    template = self.load_template(filename, method=method)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.2-py2.4.egg/trac/web/chrome.py", line 663, in load_template
    self.templates = TemplateLoader(self.get_all_templates_dirs(),
  File "/usr/lib/python2.4/site-packages/Trac-0.11.2-py2.4.egg/trac/web/chrome.py", line 410, in get_all_templates_dirs
    dirs += provider.get_templates_dirs()
  File "build/bdist.linux-i686/egg/talm_importer/importer.py", line 100, in get_templates_dirs
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 799, in resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1229, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1240, in _extract_resource
    zip_stat = self.zipinfo[zip_path]
KeyError: 'talm_importer/templates'

Two line patch attached.

Attachments (1)

setuppyfix.patch (432 bytes) - added by anonymous 16 years ago.

Download all attachments as: .zip

Change History (2)

Changed 16 years ago by anonymous

Attachment: setuppyfix.patch added

comment:1 Changed 16 years ago by François Granade

Resolution: fixed
Status: newclosed

Thanks for reporting ! fixed in 5093 and 0.7a

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain François Granade.
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.