[lxml-dev] Can't build on Windows

Dan Posluns dan at danposluns.com
Tue Oct 31 22:55:28 CET 2006


I'm not normally a Windows user so I'm at my wit's end here trying to 
get lxml to install.


When I try easy_install I get the following:

C:\Python24\Scripts>easy_install lxml
Searching for lxml
Reading http://www.python.org/pypi/lxml/
Reading http://codespeak.net/lxml
Reading http://www.python.org/pypi/lxml/1.1.2
Best match: lxml 1.1.2
Downloading http://codespeak.net/lxml/lxml-1.1.2.tgz
Processing lxml-1.1.2.tgz
Running lxml-1.1.2\setup.py -q bdist_egg --dist-dir 
c:\docume~1\dposluns\locals~
1\temp\easy_install-vc3ufv\lxml-1.1.2\egg-dist-tmp-vxzlya
Building lxml version 1.1.2
warning: no files found matching 'etree.c' under directory 'src\lxml'
warning: no files found matching 'objectify.c' under directory 'src\lxml'
warning: no files found matching 'etree.h' under directory 'src\lxml'
warning: no files found matching 'etree_defs.h' under directory 'src\lxml'
warning: no files found matching 'pubkey.asc' under directory 'doc'
warning: no previously-included files found matching 'doc\pyrex.txt'
warning: no previously-included files found matching 'src\lxml\etree.pxi'
cl : Command line warning D4025 : overriding '/W3' with '/w'
cl : Command line warning D4029 : optimization is not available in the 
standard
edition compiler
etree.c
c:\Documents and Settings\dposluns\Local 
Settings\Temp\easy_install-vc3ufv\lxml-
1.1.2\src\lxml\etree_defs.h(20) : fatal error C1083: Cannot open include 
file: '
libxml/xmlversion.h': No such file or directory
error: Setup script exited with error: command '"C:\Program 
Files\Microsoft Visu
al Studio .NET 2003\Vc7\bin\cl.exe"' failed with exit status 2


When I try David Sankel's technique to build the libraries statically, I 
manage to get as far as adding wsock32 (which took me long enough to 
figure out how to do - again, not a Windows programmer) before the build 
process borked out on me with the same errors. I was using the Windows 
distributions of libxml, libxslt, iconv and zlib from zlatkovic.com.

Can anyone help me figure this one out?

Thanks,

Dan.

-- 
Dan Posluns, B. Eng. & Scty. (Software Engineering and Society)
dan at danposluns.com - ICQ: 35758902
http://www.danposluns.com

"The great thing about being the only species on the planet that makes
a distinction between right and wrong is that we get to make the rules
up for ourselves as we go."
- Douglas Adams, Last Chance to See



More information about the lxml-dev mailing list