Modify

Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#12774 closed defect (fixed)

KeyError: 'inieditorpanel/locale'

Reported by: ntmlod Owned by: Ryan J Ollos
Priority: normal Component: TracIniAdminPanelPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description

The 0.12 branch is working but the last revision of the trunk crashes the whole Trac installation.

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/trac/web/api.py", line 514, in send_error
    data, 'text/html')
  File "/usr/lib/python2.7/site-packages/trac/web/chrome.py", line 975, in render_template
    template = self.load_template(filename, method=method)
  File "/usr/lib/python2.7/site-packages/trac/web/chrome.py", line 933, in load_template
    self.get_all_templates_dirs(), auto_reload=self.auto_reload,
  File "/usr/lib/python2.7/site-packages/trac/web/chrome.py", line 648, in get_all_templates_dirs
    for provider in self.template_providers:
  File "/usr/lib/python2.7/site-packages/trac/core.py", line 78, in extensions
    components = [component.compmgr[cls] for cls in classes]
  File "/usr/lib/python2.7/site-packages/trac/core.py", line 199, in __getitem__
    component = cls(self)
  File "/usr/lib/python2.7/site-packages/trac/core.py", line 138, in __call__
    self.__init__()
  File "build/bdist.linux-x86_64/egg/inieditorpanel/web_ui.py", line 64, in __init__
    locale_dir = resource_filename(__name__, 'locale')
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 945, in resource_filename
    self, resource_name
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1634, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1653, in _extract_resource
    timestamp, size = self._get_date_and_size(self.zipinfo[zip_path])
KeyError: 'inieditorpanel/locale'

Attachments (0)

Change History (6)

comment:1 Changed 3 years ago by Ryan J Ollos

Probably same issue seen in #12417, #12176, #10053 and elsewhere. See [14750], [14415] and elsewhere for possible fixes.

comment:2 Changed 3 years ago by Ryan J Ollos

Workaround is to install Babel.

comment:3 Changed 3 years ago by ntmlod

Thanks, the fix [14750] works perfectly in the web_ui.py routine.

Last edited 2 years ago by ntmlod (previous) (diff)

comment:4 Changed 3 years ago by Ryan J Ollos

I'll wait for reply from stoecker, but happy to push the fix to traciniadminpanelplugin/trunk.

comment:5 Changed 3 years ago by Ryan J Ollos

Owner: changed from Dirk Stöcker to Ryan J Ollos
Status: newaccepted

comment:6 Changed 3 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

In 15551:

1.0.2: Avoid KeyError when catalogs not compiled

Fixes #12774.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.