Ticket #5865 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

Error loading TracDependency

Reported by: yoheeb@yahoo.com Assigned to: okazaki
Priority: normal Component: TracDependencyPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I am getting an error in my trac log when trying to use this plugin:

blah blah...\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

Change History

09/28/09 16:23:40 changed by anonymous

  • status changed from new to assigned.
  • owner changed from okazaki to anonymous.

09/28/09 16:24:38 changed by okazaki

  • status changed from assigned to new.
  • owner changed from anonymous to okazaki.

09/28/09 17:40:11 changed by okazaki

(In [6607]) refs #5865

09/28/09 17:51:44 changed by okazaki

  • status changed from new to assigned.

Thank you for reporting. I added 'get_htdocs_dirs' attribute to TracDependencyClass?.

09/28/09 21:22:33 changed by yoheeb@yahoo.com

Cool, that was fast, thanks I'll have to try it out

(follow-up: ↓ 9 ) 12/21/09 11:48:08 changed by anonymous

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.

12/21/09 13:37:37 changed by okazaki

  • status changed from assigned to closed.
  • resolution set to fixed.

If you still have this problem, please reopen this issue.

01/19/10 18:39:44 changed by anthony.groyer@parrot.com

  • status changed from closed to reopened.
  • resolution deleted.
  • summary changed from TracDependacny attribute error in log to 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

(in reply to: ↑ 6 ) 02/28/10 12:23:57 changed by anonymous

Replying to anonymous:

Oh, sorry, I did not realize that I overlooked your comment.

04/08/10 16:50:13 changed by anonymous

I have the same problem when installing tracdependency plugin SystemError: Parent module 'tracdependency' not loaded

04/13/10 16:03:37 changed by anonymous

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

06/01/10 03:48:03 changed by okazaki

  • status changed from reopened to new.

06/01/10 03:48:12 changed by anonymous

  • owner changed from okazaki to anonymous.
  • status changed from new to assigned.

06/01/10 22:11:44 changed by okazaki

  • owner changed from anonymous to okazaki.
  • status changed from assigned to new.

06/01/10 22:16:39 changed by okazaki

(In [8040]) refs #5865

06/20/10 04:32:02 changed by okazaki

  • status changed from new to closed.
  • resolution set to fixed.

Add/Change #5865 (Error loading TracDependency)




Change Properties
Action