[英]wsgi + Django: SOAPpy(pyXML) modules Import Error
In the command line the code works perfect, but throw import error when use django + mod_python or wsgi +apache 在命令行中,代码可以完美运行,但是在使用django + mod_python或wsgi + apache时会引发导入错误
The message is: 消息是:
ImportError at /test2/
DLL load failed: The specified module could not be found.
C:\Python26\lib\site-packages\django\core\handlers\base.py in get_response
D:\dgwww\mytest\views.py in test2
C:\Python26\lib\site-packages\SOAPpy\wstools\WSDLTools.py in loadFromStream
C:\Python26\lib\site-packages\_xmlplus\dom\minidom.py in parse
C:\Python26\lib\site-packages\_xmlplus\dom\expatbuilder.py in <module>
C:\Python26\lib\site-packages\_xmlplus\parsers\expat.py in <module>
The problem solved. 问题解决了。 I down load PyXML 0.8.4 for Python 2.6 win32 from
我从下载python 2.6 win32的PyXML 0.8.4
http://www.somethinkodd.com/oddthinking/2009/10/31/windows-installer-for-pyxml-0-8-4-for-python-2-6-x/ http://www.somethinkodd.com/oddthinking/2009/10/31/windows-installer-for-pyxml-0-8-4-for-python-2-6-x/
and copy the files to python's site_packages 并将文件复制到python的site_packages
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.