WSGI + Django:SOAPpy(pyXML) 模块导入错误
在命令行中,代码完美运行, 但在使用django + mod_python或wsgi +apache时抛出导入错误
消息是:
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>
In the command line the code works perfect,
but throw import error when use django + mod_python or 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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题解决了。
下载 PyXML 0.8.4 for Python 2.6 win32
我从http://www.somethinkodd.com/oddthinking/2009/10/31/windows-installer-for-pyxml-0-8-4-for- python-2-6-x/
并将文件复制到 python 的 site_packages
The problem solved.
I down load PyXML 0.8.4 for Python 2.6 win32 from
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