Opened 16 years ago

Closed 16 years ago

Last modified 16 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: Alec Thomas
Priority: normal Component: XmlRpcPlugin
Severity: blocker Keywords: ImportError posixpath
Cc: Trac Release: 0.11

Description (last modified by Alec Thomas)

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/

This is also reported in the Trac ticket system: 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/", line 342, in send_error
  File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5999-py2.4.egg/trac/web/", 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/", 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/", line 330, in get_all_templates_dirs
    dirs += provider.get_templates_dirs()
  File "build/bdist.linux-x86_64/egg/tracrpc/", line 76, in get_templates_dirs
  File "/usr/lib/python2.4/site-packages/", line 16, in ?
    import sys, os, zipimport, time, re, imp, new
  File "", line 48, in ?
    import posixpath as path
ImportError: No module named posixpath

Attachments (0)

Change History (3)

comment:1 Changed 16 years ago by Alec Thomas

Description: modified (diff)

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

Resolution: invalid
Status: newclosed

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 16 years ago by Alec Thomas

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.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Alec Thomas.
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.