#4441 closed defect (fixed)
KeyError
Reported by: | Owned by: | Jeff Hammel | |
---|---|---|---|
Priority: | normal | Component: | TracHoursPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
Installed following the wiki instructions on a fresh project. Install method is a locally built egg installed in the single project. Get this error in debug logs after installing the plugin:
2009-01-13 01:39:30,558 Trac[api] DEBUG: Updating wiki page index 2009-01-13 01:39:30,565 Trac[main] ERROR: 'trachours/templates' Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 432, in _dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 226, in dispatch
data, content_type)
File "/usr/lib/python2.4/site-packages/trac/web/chrome.py", line 687, in render_template
template = self.load_template(filename, method=method)
File "/usr/lib/python2.4/site-packages/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/web/chrome.py", line 410, in get_all_templates_dirs
dirs += provider.get_templates_dirs()
File "build/bdist.linux-x86_64/egg/trachours/hours.py", line 196, 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: 'trachours/templates'
(In [5123]) include package data, hopefully fixes #4441