Modify

Opened 11 years ago

Closed 11 years ago

#1536 closed defect (invalid)

xmlrpc not working

Reported by: anonymous Owned by: Alec Thomas
Priority: normal Component: XmlRpcPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description (last modified by Alec Thomas)

Egg file built correctly. After enabling in per-project conf ini file I got following message:

Traceback (most recent call last):
  File "/usr/share/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request
  File "/usr/share/python2.4/site-packages/trac/web/main.py", line 206, in dispatch
  File "/usr/share/python2.4/site-packages/trac/web/chrome.py", line 263, in get_all_templates_dirs
  File "build/bdist.linux-i686/egg/tracrpc/web_ui.py", line 76, in get_templates_dirs
  File "/usr/share/python2.4/site-packages/pkg_resources.py", line 16, in ?
  File "/usr/share/python2.4/os.py", line 133, in ?
ImportError: No module named path

Attachments (0)

Change History (6)

comment:1 Changed 11 years ago by Noah Kantrowitz

Description: modified (diff)

Fix formatting.

comment:2 Changed 11 years ago by Alec Thomas

Resolution: invalid
Status: newclosed

I suspect this is not a problem with the plugin. The line you reference is

from pkg_resources import resource_filename

Which has nothing really to do with XmlRpcPlugin. At a guess I'd suspect something is wrong with your setuptools installation.

comment:3 Changed 11 years ago by anonymous

Resolution: invalid
Status: closedreopened

I have updated setuptools installation, but to no use. Still the same error. Importing os.path module from empty .py script gives no errors.

comment:4 Changed 11 years ago by Alec Thomas

Description: modified (diff)

comment:5 Changed 11 years ago by anonymous

I have resolved it myself - this plugin requires pydoc. It would be nicer if it was mentioned ;)

comment:6 Changed 11 years ago by Alec Thomas

Resolution: invalid
Status: reopenedclosed

pydoc has been part of the standard library since 2.1. It doesn't seem feasible to enumerate every module a plugin uses.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.