From behnel_ml at gkec.informatik.tu-darmstadt.de Wed Nov 1 10:17:02 2006 From: behnel_ml at gkec.informatik.tu-darmstadt.de (Stefan Behnel) Date: Wed, 01 Nov 2006 10:17:02 +0100 Subject: [lxml-dev] Can't build on Windows In-Reply-To: <4547C650.70104@danposluns.com> References: <4547C650.70104@danposluns.com> Message-ID: <4548660E.3060403@gkec.informatik.tu-darmstadt.de> 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 From alexander.kozlovsky at gmail.com Fri Nov 3 22:35:47 2006 From: alexander.kozlovsky at gmail.com (Alexander Kozlovsky) Date: Sat, 4 Nov 2006 00:35:47 +0300 Subject: [lxml-dev] I get CDATA inside parsed html ') >>> etree.tostring(html) '' The problem is, I cannot retrieve content of ') > >>> etree.tostring(html) > '' > > The problem is, I cannot retrieve content of