Opened 17 years ago
Last modified 17 years ago
#2019 closed defect
After installing XML-RPC revision 2624 Trac fails with "ImportError: No module named posixpath" — at Version 1
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
Note: See
TracTickets for help on using
tickets.