Modify

Opened 7 years ago

Closed 7 years ago

#1536 closed defect (invalid)

xmlrpc not working

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

Description (last modified by athomas)

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 7 years ago by coderanger

  • Description modified (diff)

Fix formatting.

comment:2 Changed 7 years ago by athomas

  • Resolution set to invalid
  • Status changed from new to closed

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 7 years ago by anonymous

  • Resolution invalid deleted
  • Status changed from closed to reopened

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 7 years ago by athomas

  • Description modified (diff)

comment:5 Changed 7 years ago by anonymous

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

comment:6 Changed 7 years ago by athomas

  • Resolution set to invalid
  • Status changed from reopened to closed

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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from athomas. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.