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, which requires lxml. I tried installing lxml in several ways:
Problem is that running under site under apache raises following error:
ImportError at /
DLL load failed: The specified module could not be found.
It raises this error on from lxml import etree
I have googled for solution but found nothing useful. Some info I found:
It works when running from django internal server by running manage.py runserver
How can I resolve this issue? Thanks.
I installed unofficial builds from http://www.lfd.uci.edu/~gohlke/pythonlibs/
It solved my problem.
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:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With