在命令行中,代码工作正常,但是当使用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>发布于 2011-03-07 01:45:42
问题解决了。我下载了PyXML 0.8.4 for Python2.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
https://stackoverflow.com/questions/5191995
复制相似问题