Hello,
I finally solved the problem. It's still a little bit weird why it was not working in the first place.
At first I didn't had a templates directory at all (and no problems with it on the first machine). But after getting the errors I thought maybe the problem comes from this, so I created a templates directory. And there I made a big mistake by forgetting to set a "," in the setup.py package data after my previously last directory. 
After correcting the setup.py and adding a sample file into the templates directory everything worked just fine.

Thanks for your help!

Best regards,
Micha


Von: "anatoly techtonik" <techto...@gmail.com>
Gesendet: 21.01.2011 13:46:08
An: "Micha-Jamie Guthmann" <mina1...@web.de>
Betreff: Re: [th-users] Proplem with Trac Plugin Installation

The bruteforce way would be to ensure that running Trac, easy_install, configuration and plugin versions match 100%.
Then binary compare contents to see any differences. Then try to run under debugger/pdb to see values of variables at the moment of disaster. But first I would check that egg cache is set correctly.
--
anatoly t.


On Fri, Jan 21, 2011 at 2:20 PM, Micha-Jamie Guthmann <mina1...@web.de> wrote:
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
th-users@lists.trac-hacks.org
https://lists.trac-hacks.org/mailman/listinfo/th-users


  

NEU: FreePhone - kostenlos mobil telefonieren und surfen!    
Jetzt informieren: http://produkte.web.de/go/webdefreephone
_______________________________________________
th-users mailing list
th-users@lists.trac-hacks.org
https://lists.trac-hacks.org/mailman/listinfo/th-users

Reply via email to