Modify

Opened 6 years ago

Closed 6 years ago

#4098 closed defect (fixed)

templates are missing in egg file

Reported by: olistudent Owned by: martin_s
Priority: normal Component: WatchlistPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

2008-11-16 03:34:59,082 Trac[main] ERROR: 'tracwatchlist/templates'
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Trac-0.11stable_r7667-py2.5.egg/trac/web/main.py", line 432, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11stable_r7667-py2.5.egg/trac/web/main.py", line 226, in dispatch
    data, content_type)
  File "/usr/lib/python2.5/site-packages/Trac-0.11stable_r7667-py2.5.egg/trac/web/chrome.py", line 687, in render_template
    template = self.load_template(filename, method=method)
  File "/usr/lib/python2.5/site-packages/Trac-0.11stable_r7667-py2.5.egg/trac/web/chrome.py", line 663, in load_template
    self.templates = TemplateLoader(self.get_all_templates_dirs(),
  File "/usr/lib/python2.5/site-packages/Trac-0.11stable_r7667-py2.5.egg/trac/web/chrome.py", line 410, in get_all_templates_dirs
    dirs += provider.get_templates_dirs()
  File "build/bdist.linux-i686/egg/tracwatchlist/plugin.py", line 302, in get_templates_dirs
    return [ resource_filename(__name__, 'templates') ]
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 841, in resource_filename
    self, resource_name
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1311, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1322, in _extract_resource
    zip_stat = self.zipinfo[zip_path]
KeyError: 'tracwatchlist/templates'

Attachments (1)

templates.patch (486 bytes) - added by olistudent 6 years ago.

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by olistudent

comment:1 Changed 6 years ago by martin_s

  • Resolution set to fixed
  • Status changed from new to closed

(In [4822]) Added templates dir to package data. Moved style.css to css subdir in htdocs.
This fixes #4098.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.