Hello,

I'm developping trac plugins, and I try to understand the following issue.
I have 2 plugins (let's call them pluga & plugb, both with htdocs/ directories.

When I call an image from the first plugin
(http://xxxx/chrome/pluga/images/loading.gif), I get a trac error :
KeyError: 'plubg/htdocs'

With these traces :
 File "/local/engine/trac/trac/web/main.py", line 444, in  _dispatch_request
 File "/local/engine/trac/trac/web/main.py", line 205, in  dispatch
 File "/local/engine/trac/trac/web/chrome.py", line 392, in  process_request
 File "build/bdist.linux-i686/egg/plugb/web_ui.py", line 115, in
get_htdocs_dirs
 File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 848,
in  resource_filename
 File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1324,
in  get_resource_filename
 File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1335,
in  _extract_resource

 - When I disable plugb, no issues
 - When I return [] from get_htdocs_dirs(self) function of plugb, no
issues (thanks to https://www.trac-hacks.org/ticket/4611).

Do you have any ideas how I can fix it ?

Thanks for your help.

Regards,

Remi

--

You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.


Reply via email to