Modify

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#3181 closed defect (worksforme)

[0.11] ImportError: No module named posixpath

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

Description (last modified by stp)

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 6 years ago by iperezr@…

  • Priority changed from normal to high
  • Severity changed from normal to critical
  • Trac Release changed from 0.10 to 0.11

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

What am I do?

comment:2 follow-up: Changed 6 years ago by stp

  • 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 5 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 5 years ago by gxwilson

  • Owner changed from athomas to gxwilson
  • Status changed from new to assigned

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 5 years ago by gxwilson

  • Owner changed from gxwilson to athomas
  • Status changed from assigned to new

oops

comment:6 Changed 5 years ago by gxwilson

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 5 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 5 years ago by stp

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

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

comment:9 Changed 5 years ago by stp

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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from athomas. Next status will be '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.