Modify

Opened 3 years ago

Last modified 3 years ago

#9249 assigned defect

Enabling DataSaverPlugin breaks 0.13dev-r0

Reported by: netjunki Owned by: hasienda
Priority: normal Component: DataSaverPlugin
Severity: normal Keywords: 0.13
Cc: Trac Release: 0.11

Description

Traceback (most recent call last):
  File "build/bdist.macosx-10.6-universal/egg/trac/web/api.py", line 497, in send_error
    data, 'text/html')
  File "build/bdist.macosx-10.6-universal/egg/trac/web/chrome.py", line 982, in render_template
    template = self.load_template(filename, method=method)
  File "build/bdist.macosx-10.6-universal/egg/trac/web/chrome.py", line 942, in load_template
    self.get_all_templates_dirs(), auto_reload=self.auto_reload,
  File "build/bdist.macosx-10.6-universal/egg/trac/web/chrome.py", line 653, in get_all_templates_dirs
    for provider in self.template_providers:
  File "build/bdist.macosx-10.6-universal/egg/trac/core.py", line 78, in extensions
    components = [component.compmgr[cls] for cls in classes]
  File "build/bdist.macosx-10.6-universal/egg/trac/core.py", line 199, in __getitem__
    component = cls(self)
  File "build/bdist.macosx-10.6-universal/egg/trac/core.py", line 138, in __call__
    self.__init__()
  File "build/bdist.macosx-10.6-universal/egg/datasaver/datasaver.py", line 21, in __init__
    locale_dir = resource_filename(__name__, 'locale')
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 835, in resource_filename
    self, resource_name
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 1305, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 1316, in _extract_resource
    zip_stat = self.zipinfo[zip_path]
KeyError: 'datasaver/locale'

I get the following stack trace when trying to load this plug-in in Trac 0.13dev-r0 (is there some other issue here... this looks odd) hosted on my OS X 10.6 machine. I'd be quite happy to track this down, but I'm noting this here for now since I was in the middle of another project and don't have time to work on this immediately.

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by hasienda

  • Status changed from new to assigned

This isn't related in any way to Trac 0.13dev (revision 0 is certainly wrong), but to building the plugin without i18n support in place.

This is a known i18n-related issue, or better due to the too clumsy way I did the initial implementation here (see #7850 for a similar case). I guess Babel isn't installed at your system, or has been installed after Trac. I'll modify the plugin source same way as I did for other plugins before.

comment:2 Changed 3 years ago by hasienda

(In [10746]) DataSaverPlugin: Make sure to always include a 'locale' dir in zipped plugins, refs #9249.

Just some improved i18n code missing for this plugin, done elsewhere before.

Add Comment

Modify Ticket

Action
as assigned .
Author


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

 
Note: See TracTickets for help on using tickets.