lxml: DLL load failed: The specified module could not be found

前端 未结 3 1250
感情败类
感情败类 2020-12-10 17:01

I have Windows Server 2008 R2 x64. It has running Python27 x86 + Django 1.3 + apache 2.2 x86 under wsgi. It runs ok without lxml.

We\'re using soaplib,

3条回答
  •  难免孤独
    2020-12-10 17:22

    I've had this problem as well when attempting to load etree via Windows Scripting Host. After trying different approaches, I came across this Python 3.1 change, which proposes that the new Python modules should no longer embed manifests as it causes distribution problems with no MSVC++ runtimes installed:

    • http://comments.gmane.org/gmane.comp.python.lxml.devel/5684
    • http://bugs.python.org/issue4120

    So I've simply loaded up %PythonPath%\Lib\site-packages\lxml\etree.pyd in Resource Hacker (http://www.angusj.com/resourcehacker/) and removed the manifest resource embedded in it.

提交回复
热议问题