Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#2019 closed defect (invalid)

After installing XML-RPC revision 2624 Trac fails with "ImportError: No module named posixpath"

Reported by: J.Kraaijeveld@… Owned by: athomas
Priority: normal Component: XmlRpcPlugin
Severity: blocker Keywords: ImportError posixpath
Cc: Trac Release: 0.11

Description (last modified by athomas)

After installing XML-RPC revision 2624 Trac fails with "ImportError: No module named posixpath" when accessing the Trac for the first time. The module mentioned is available in my Python environment (/usr/lib/python2.4/posixpath.py).

This is also reported in the Trac ticket system: http://trac.edgewall.org/ticket/4280. The fixes that are mentioned (moving the import etc) lead to crashing later in the session. I report this bug here also as it appears to occur only in the XML-RPC plugin and not in any other plugins that use the same import (e.g. iniadmin).

The error I am getting:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5999-py2.4.egg/trac/web/api.py", line 342, in send_error
    'text/html')
  File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5999-py2.4.egg/trac/web/chrome.py", line 570, in render_template
    template = self.load_template(filename, method=method)
  File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5999-py2.4.egg/trac/web/chrome.py", line 546, in load_template
    self.templates = TemplateLoader(self.get_all_templates_dirs(),
  File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5999-py2.4.egg/trac/web/chrome.py", line 330, in get_all_templates_dirs
    dirs += provider.get_templates_dirs()
  File "build/bdist.linux-x86_64/egg/tracrpc/web_ui.py", line 76, in get_templates_dirs
  File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 16, in ?
    import sys, os, zipimport, time, re, imp, new
  File "os.py", line 48, in ?
    import posixpath as path
ImportError: No module named posixpath

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by athomas

  • Description modified (diff)

comment:2 Changed 7 years ago by J.Kraaijeveld@…

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

Somebody else pointed out to me that I was using the wrong XML-RPC branch (0.10 instead of trunk). If I use the trunk branch, it works. Still strange though: the old plugin may exibit bugs but this does not look like that kind of bug.

Sorry for the inconvenience.

comment:3 Changed 7 years ago by athomas

This looks similar to #1536 and possibly #164.

I have a suspicion that this is due to some freakiness going on in the pydoc module, so I've removed all reference to it.

Add Comment

Modify Ticket

Action
as 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.