简体   繁体   中英

Python can't import module named wsgi_soap from the soaplib

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

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

我使用了与0.8版本不兼容的最新版本的soaplib。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM