#5865 closed defect (fixed)
Error loading TracDependency
Reported by: | Jay | Owned by: | Yuji OKAZAKI |
---|---|---|---|
Priority: | normal | Component: | TracDependencyPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description (last modified by )
I am getting an error in my trac log when trying to use this plugin:
...\trac-0.11.5stable_r8243-py2.5.egg\trac\web\chrome.py", line 392, in process_request in provider.get_htdocs_dirs() if dir[0] == prefix]: AttributeError: 'TracDependency' object has no attribute 'get_htdocs_dirs'
It seem to be also affecting other plugins, such as keyword suggest and tags. also.
Not sure if they have collided in their changed to the template files.
Attachments (0)
Change History (17)
comment:1 Changed 15 years ago by
Owner: | changed from Yuji OKAZAKI to anonymous |
---|---|
Status: | new → assigned |
comment:2 Changed 15 years ago by
Owner: | changed from anonymous to Yuji OKAZAKI |
---|---|
Status: | assigned → new |
comment:3 Changed 15 years ago by
comment:4 Changed 15 years ago by
Status: | new → assigned |
---|
Thank you for reporting. I added 'get_htdocs_dirs' attribute to TracDependencyClass.
comment:6 follow-up: 9 Changed 15 years ago by
After installation, and attempting to enable the plugin, I get the following stacktrace error:
Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/trac/web/api.py", line 339, in send_error 'text/html') File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line 683, in render_template template = self.load_template(filename, method=method) File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line 659, in load_template self.templates = TemplateLoader(self.get_all_templates_dirs(), File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line 406, in get_all_templates_dirs dirs += provider.get_templates_dirs() File "build/bdist.linux-i686/egg/tracdependency/tracdependency.py", line 142, in get_templates_dirs from pkg_resources import resource_filename SystemError: Parent module 'tracdependency' not loaded
I think this is related.
comment:7 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
If you still have this problem, please reopen this issue.
comment:8 Changed 15 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Summary: | TracDependacny attribute error in log → Error loading TracDependency |
I have also the same issue with latest source code: Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/web/api.py", line 377, in send_error
'text/html')
File "/usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/web/chrome.py", line 738, in render_template
template = self.load_template(filename, method=method)
File "/usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/web/chrome.py", line 704, in load_template
self.templates = TemplateLoader(self.get_all_templates_dirs(),
File "/usr/lib/python2.5/site-packages/Trac-0.11.6-py2.5.egg/trac/web/chrome.py", line 440, in get_all_templates_dirs
dirs += provider.get_templates_dirs()
File "build/bdist.linux-i686/egg/tracdependency/tracdependency.py", line 142, in get_templates_dirs
from pkg_resources import resource_filename
SystemError: Parent module 'tracdependency' not loaded
comment:9 Changed 15 years ago by
Replying to anonymous:
Oh, sorry, I did not realize that I overlooked your comment.
comment:10 Changed 15 years ago by
I have the same problem when installing tracdependency plugin
SystemError: Parent module 'tracdependency' not loaded
comment:11 Changed 15 years ago by
same problem here, I have downloaded and compiled tracdependencyplugin-r7842.
I have deployed the egg with easy_install TracDependencyPlugin-0.11.1.18-py2.5.egg command or installed from source python setup.py install
enabled the plugin from web ui admin, but get the error above, plz give some hint to fox the problem
thanks
comment:12 Changed 14 years ago by
Status: | reopened → new |
---|
comment:13 Changed 14 years ago by
Owner: | changed from Yuji OKAZAKI to anonymous |
---|---|
Status: | new → assigned |
comment:14 Changed 14 years ago by
Owner: | changed from anonymous to Yuji OKAZAKI |
---|---|
Status: | assigned → new |
comment:16 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:17 Changed 6 years ago by
Description: | modified (diff) |
---|
(In [6607]) refs #5865