tags:

views:

96

answers:

2

Hi!

This code works on Debian under Python 2.5 but doesn't on Ubuntu under Python 2.6:

from soaplib.wsgi_soap import SimpleWSGISoapApp

On ubuntu under python 2.6 I get the error:

from soaplib.wsgi_soap import SimpleWSGISoapApp

ImportError: No module named wsgi_soap

+1  A: 

Don't call your own file soaplib.py. Rename it to something else. Also, remove the soaplib.pyc file that was generated.

nosklo
If that answer is not correct, please provide full traceback of the error (not just a snippet as you did), and a listing of your `/usr/lib/python2.6/dist-packages` and `/usr/lib/python2.6/site-packages` directory contents.
nosklo
I don't call the file soaplib.py. The problem is python can't find one module of the library. However it can find other modules.
Roman Prykhodchenko
@Roman Prikhodchenko: It seems to find `soaplib` ... what it doesn't find is `wsgi_soap` inside `soaplib` . Please try this code: `import soaplib ; print soaplib` and paste the result for us.
nosklo
<module 'soaplib' from '/usr/local/lib/python2.6/dist-packages/soaplib-0.9.1_alpha6-py2.6.egg/soaplib/__init__.pyc'>
Roman Prykhodchenko
A: 

I have used the latest version of the soaplib which is incompatible with the version 0.8.

Roman Prykhodchenko