Yesterday I asked where to go with problems and some said that I can ask detailed questions over this list - so here I go :)

I have a Trac Plugin which I have installed without any problems on my Trac server.
I somehow running now into deep troubles with the instalation on another machine (another trac). After the instalation with easy-install the Trac mask is replaced with this traceback massage:

Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/trac/web/api.py", line 436, in
send_error
    data, 'text/html')
  File "build/bdist.linux-i686/egg/trac/web/chrome.py", line 832, in
render_template
    template = self.load_template(filename, method=method)
  File "build/bdist.linux-i686/egg/trac/web/chrome.py", line 793, in
load_template
    self.get_all_templates_dirs(), auto_reload=self.auto_reload,
  File "build/bdist.linux-i686/egg/trac/web/chrome.py", line 506, in
get_all_templates_dirs
    dirs.extend(provider.get_templates_dirs() or [])
  File "/usr/lib/python2.6/site-packages/FZIchart-0.1.1-py2.4.egg/
FZIchart/charting.py", line 37, in get_templates_dirs
    return [resource_filename(__name__, 'templates')]
  File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/
pkg_resources.py", line 882, in resource_filename
    self, resource_name
  File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/
pkg_resources.py", line 1352, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/
pkg_resources.py", line 1363, in _extract_resource
    zip_stat = self.zipinfo[zip_path]
KeyError: 'FZIchart/templates'

I don't undestand this. The problem seems to lie in this codesnippet from the plugin (at least I think it lies there, but I'm not totaly sure):
# ITemplateProvider methods
# Used to add the plugin's templates and htdocs
def get_templates_dirs(self):
    from pkg_resources import resource_filename
    return [resource_filename(__name__, 'templates')]

Other Plugins which implements this method are working without problems. The Plugin is called FZIchart and the Templates directory is empty. Like I said, on the first machine its running without any problems.

Does anybody have a clue what the problem could be?

Best regards,
Micha



  

Empfehlen Sie WEB.DE DSL Ihren Freunden und Bekannten und wir   
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.web.de
_______________________________________________
th-users mailing list
[email protected]
https://lists.trac-hacks.org/mailman/listinfo/th-users

Reply via email to