Modify

Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#3181 closed defect (worksforme)

[0.11] ImportError: No module named posixpath

Reported by: amakuto@… Owned by: Alec Thomas
Priority: high Component: XmlRpcPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.11

Description (last modified by Steffen Pingel)

Hello,

i have installed
eclipse 3.3.2
trac11-stable (Trac 0.11dev-r7200)
xmlrpc 0.1

when i activate the xmlrpc with

[components]
tracrpc.* = enabled
OR
tracrpc.web_ui.xmlrpcweb = enabled
then come the errortext ->

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r7200-py2.4.egg/trac/web/api.py", line 339, in send_error
    'text/html')
  File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r7200-py2.4.egg/trac/web/chrome.py", line 683, in render_template
    template = self.load_template(filename, method=method)
  File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r7200-py2.4.egg/trac/web/chrome.py", line 659, in load_template
    self.templates = TemplateLoader(self.get_all_templates_dirs(),
  File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r7200-py2.4.egg/trac/web/chrome.py", line 406, in get_all_templates_dirs
    dirs += provider.get_templates_dirs()
  File "build/bdist.linux-i686/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


also i cant send a new task from eclipse to trac.
i become error message
"unable to submite at this time"

i use the xml-rpc plugin(rev 1950)

what can i do for better help ?

thx

marian

Attachments (0)

Change History (9)

comment:1 Changed 9 years ago by iperezr@…

Priority: normalhigh
Severity: normalcritical
Trac Release: 0.100.11

I have same problem with same version of eclipse 3.3.2 and trac 0.11 stable.

What am I do?

comment:2 Changed 9 years ago by Steffen Pingel

Description: modified (diff)

From the error log above it appears that your installation of Python is incomplete:

ImportError: No module named posixpath

comment:3 in reply to:  2 Changed 8 years ago by anonymous

Replying to stp:

From the error log above it appears that your installation of Python is incomplete:

ImportError: No module named posixpath

So how do you fix this problem?

comment:4 Changed 8 years ago by Glenn

Owner: changed from Alec Thomas to Glenn
Status: newassigned

can you reinstall python without affecting the current trac installation? Can i find this one library and install it; if so where would i find it (i've looked can't find)?

comment:5 Changed 8 years ago by Glenn

Owner: changed from Glenn to Alec Thomas
Status: assignednew

oops

comment:6 Changed 8 years ago by Glenn

I was using the 0.10 version which has this issue. At this time trunk does not have this issue on trac 0.11.2.

comment:7 Changed 8 years ago by chris@…

I'm running on Gentoo and I didn't have mod_python installed. Before this plugin was installed everything was working fine with Trac. I ended up with the same error with this plugin and found that when I installed mod_python it fixed the problem with no code changes. This was of course with the trunk version of the plugin.

My Enviroment:
apache: 2.2.9-r1
python: 2.5.2-r7
trac: 0.11.2.1
setuptools: 0.6c9
mod_python: 3.3.1-r1 [After The Fix]

Here's what I did on Gentoo (this will very greatly depending on your distro):
emerge mod_python
added "-D PYTHON" to /etc/conf.d/apache2 [Make sure Apache starts with mod_python support]
/etc/init.d/apache2 restart [Restart Apache]

I hope this helps someone :)

comment:8 Changed 8 years ago by Steffen Pingel

Resolution: worksforme
Status: newclosed

Please reopen if you are still experiencing the error with the latest from trunk.

comment:9 Changed 8 years ago by Steffen Pingel

Summary: xmlrpc eclipse 3.3.2 (trac 11-stable)[0.11] ImportError: No module named posixpath

Modify Ticket

Change Properties
Set your email in Preferences
Action
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.