Modify

Opened 7 years ago

Closed 7 years ago

#13262 closed defect (fixed)

Adding subcomponents to trac.ini leads to 500 error

Reported by: anonymous Owned by: Ryan J Ollos
Priority: normal Component: SubcomponentsPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

I'm using trac 1.0.2+dfsg-2 and installed the Subcomponents plugin systemwide (easy_install https://trac-hacks.org/svn/subcomponentsplugin/trunk). In the components section of trac.ini I added subcomponents.* = enabled. After restarting tracd the site shows the following error:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/trac/web/api.py", line 556, in send_error
    data, 'text/html')
  File "/usr/lib/python2.7/dist-packages/trac/web/chrome.py", line 1001, in render_template
    template = self.load_template(filename, method=method)
  File "/usr/lib/python2.7/dist-packages/trac/web/chrome.py", line 958, 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 667, in get_all_templates_dirs
    dirs.extend(provider.get_templates_dirs() or [])
  File "build/bdist.linux-x86_64/egg/subcomponents/components_view.py", line 87, in get_templates_dirs
    return [resource_filename(__name__, 'templates')]
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 954, in resource_filename
    self, resource_name
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1652, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1673, in _extract_resource
    timestamp, size = self._get_date_and_size(self.zipinfo[zip_path])
KeyError: 'subcomponents/templates'

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by Ryan J Ollos

Owner: set to Ryan J Ollos
Resolution: fixed
Status: newclosed

In 16739:

TracSubcomponents 1.3.1: Add missing template to package

Fixes #13262.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
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.