[lxml-dev] Can't build on Windows

Stefan Behnel behnel_ml at gkec.informatik.tu-darmstadt.de
Wed Nov 1 10:17:02 CET 2006


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

Hi,

if you do not depend on 1.1.2 fixes or features, consider going with 1.1.1
until we have 1.1.2 Windows eggs available:

http://cheeseshop.python.org/pypi/lxml/1.1.1

This should do the trick:

easy_install lxml=1.1.1


> 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'

That's weird, because they are definitely inside the tgz.


> 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

Well, you need libxml2 properly installed to compile lxml. Sadly, Windows
makes these simple things hard to do.

We usually try to make binary eggs available to keep people from this kind of
hassle. It just takes a few days longer sometimes...

Stefan


More information about the lxml-dev mailing list