Modify ↓
#2019 closed defect (invalid)
After installing XML-RPC revision 2624 Trac fails with "ImportError: No module named posixpath"
Reported by: | Owned by: | Alec Thomas | |
---|---|---|---|
Priority: | normal | Component: | XmlRpcPlugin |
Severity: | blocker | Keywords: | ImportError posixpath |
Cc: | Trac Release: | 0.11 |
Description (last modified by )
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 17 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 17 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:3 Changed 17 years ago by
Note: See
TracTickets for help on using
tickets.
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.