Modify

Opened 15 years ago

Closed 14 years ago

Last modified 6 years ago

#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 Ryan J Ollos)

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 anonymous

Owner: changed from Yuji OKAZAKI to anonymous
Status: newassigned

comment:2 Changed 15 years ago by Yuji OKAZAKI

Owner: changed from anonymous to Yuji OKAZAKI
Status: assignednew

comment:3 Changed 15 years ago by Yuji OKAZAKI

(In [6607]) refs #5865

comment:4 Changed 15 years ago by Yuji OKAZAKI

Status: newassigned

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

comment:5 Changed 15 years ago by Jay

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

comment:6 Changed 15 years ago 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.

comment:7 Changed 15 years ago by Yuji OKAZAKI

Resolution: fixed
Status: assignedclosed

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

comment:8 Changed 15 years ago by anthony.groyer@…

Resolution: fixed
Status: closedreopened
Summary: TracDependacny attribute error in logError 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 in reply to:  6 Changed 15 years ago by anonymous

Replying to anonymous:

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

comment:10 Changed 15 years ago by anonymous

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

comment:11 Changed 15 years ago 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

comment:12 Changed 14 years ago by Yuji OKAZAKI

Status: reopenednew

comment:13 Changed 14 years ago by anonymous

Owner: changed from Yuji OKAZAKI to anonymous
Status: newassigned

comment:14 Changed 14 years ago by Yuji OKAZAKI

Owner: changed from anonymous to Yuji OKAZAKI
Status: assignednew

comment:15 Changed 14 years ago by Yuji OKAZAKI

(In [8040]) refs #5865

comment:16 Changed 14 years ago by Yuji OKAZAKI

Resolution: fixed
Status: newclosed

comment:17 Changed 6 years ago by Ryan J Ollos

Description: modified (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Yuji OKAZAKI.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.