#11582 closed defect (duplicate)
KeyError: 'lightertheme/templates' after install
Reported by: | Owned by: | ejucovy | |
---|---|---|---|
Priority: | normal | Component: | LighterTheme |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
Followed steps : Downloading sources at 0.3.1 Build egg with 'python setup.py bdist_egg' Copy .egg file to 'trac/plugin' folder Restart server.
Trac page displays this :
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/trac/web/api.py", line 458, in send_error data, 'text/html') File "/usr/lib/python2.7/dist-packages/trac/web/chrome.py", line 836, in render_template template = self.load_template(filename, method=method) File "/usr/lib/python2.7/dist-packages/trac/web/chrome.py", line 797, in load_template self.get_all_templates_dirs(), auto_reload=self.auto_reload, File "/usr/lib/python2.7/dist-packages/trac/web/chrome.py", line 511, in get_all_templates_dirs dirs.extend(provider.get_templates_dirs() or []) File "build/bdist.linux-x86_64/egg/lightertheme/__init__.py", line 73, in get_templates_dirs return ["lightertheme", resource_filename(__name__, 'templates')] File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 904, in resource_filename self, resource_name File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1380, in get_resource_filename return self._extract_resource(manager, zip_path) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1391, in _extract_resource zip_stat = self.zipinfo[zip_path] KeyError: 'lightertheme/templates'
Attachments (0)
Change History (7)
comment:1 Changed 11 years ago by
comment:4 Changed 10 years ago by
Replying to anonymous:
Same problem. we are lost our trac repo.
Lost is unlikely the correct word. It's possible you are seeing an error on every page, which is a good reason to always test plugins on another Trac instance before installing them.
To fix the issue, just disable the plugin and restart the webserver. If you still have an error, delete the egg. If you continue to have trouble, please ask on the MailingList.
comment:5 Changed 10 years ago by
comment:6 Changed 9 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
See also issue 1 for UserPicturesPlugin. Another solution is to just remove include_package_data
in setup.py
, which would allow MANIFEST.in
to also be deleted.
I created a pull request, so closing this ticket as a duplicate.
I can reproduce. The following patch seems to be needed:
MANIFEST.in
htdocs/