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

前端 未结 3 1230
感情败类
感情败类 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:18

    I installed unofficial builds from http://www.lfd.uci.edu/~gohlke/pythonlibs/

    It solved my problem.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-10 17:32

    Installing the DLLs isn't enough, you will need to fiddle Apache to use them. See:

    http://groups.google.com/group/modwsgi/msg/afb025dc949c7051

    0 讨论(0)
提交回复
热议问题