I'm trying to build a local copy of lxml on an Ubuntu x86-64 system. I'm not doing lxml development, just need the package. The documentation for building on lxml.de says that *all* I need to type is: python setup.py build --without-cython The results below show that there is a file missing from the distribution. If the file is supposed to be generated, the documentation does not say how this is accomplished. kevin@ubuntu:~/build/lxml-lxml-3.3$ python setup.py build --without-cython Building lxml version 3.3.3. WARNING: Trying to build without Cython, but pre-generated 'src/lxml/lxml.etree.c' is not available. WARNING: Trying to build without Cython, but pre-generated 'src/lxml/lxml.objectify.c' is not available. Building without Cython. Using build configuration of libxslt 1.1.28 Building against libxml2/libxslt in the following directory: /home/kevin/usr/local/lib /home/kevin/usr/local/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) running build running build_py copying src/lxml/includes/lxml-version.h -> build/lib.linux-i686-2.7/lxml/includes running build_ext building 'lxml.etree' extension gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/home/kevin/usr/local/include -I/home/kevin/usr/local/include/python2.7 -I/home/kevin/usr/local/include/libxml2 -I/home/kevin/usr/local/include/libexslt -I/home/kevin/usr/local/include/libxslt -I/home/kevin/usr/local/include -fPIC -I/home/kevin/usr/local/include -I/home/kevin/usr/local/include/libxml2 -I/home/kevin/build/lxml-lxml-3.3/src/lxml/includes -I/home/kevin/usr/local/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-i686-2.7/src/lxml/lxml.etree.o -w gcc: error: src/lxml/lxml.etree.c: No such file or directory gcc: fatal error: no input files compilation terminated. error: command 'gcc' failed with exit status 4 So it appears that the file 'src/lxml/lxml.etree.c' is missing from the source distribution. I've checked 3.3.3 back to 2.3 and it has NEVER been there AFAICT. My question is, where do I get this file or how do I generate it, or is this a bug? Thanks, Kevin
Hi, On 02.04.2014, at 22:31, KM Here And There <km.here.there@gmail.com> wrote:
So it appears that the file 'src/lxml/lxml.etree.c' is missing from the source distribution. I've checked 3.3.3 back to 2.3 and it has NEVER been there AFAICT.
where did you get your source distribution? The standard tgz contains the file you are missing. $ tar tvzf ~/Downloads/lxml-3.3.3.tgz | grep lxml.etree.c -rw-r--r-- 0 stefan stefan 8843390 4 Mär 17:26 lxml-3.3.3/src/lxml/lxml.etree.c while your build directory misses more stuff:
WARNING: Trying to build without Cython, but pre-generated 'src/lxml/lxml.etree.c' is not available. WARNING: Trying to build without Cython, but pre-generated 'src/lxml/lxml.objectify.c' is not available.
jens
Following up: Jens' note caused me to look somewhere OTHER than: https://github.com/lxml/lxml (which is where the documentation points you to). And the distribution at https://pypi.python.org/packages/source/l/lxml/lxml-3.3.3.tar.gz#md5=f267583... seems to have the right stuff. I think the page at http://lxml.de/build.html is confusing in this regard and may need a bit of clarification so no one else does what I did. Or maybe I'm just a dumb noob. Kevin On 4/2/14, 1:45 PM, jens quade wrote:
Hi,
On 02.04.2014, at 22:31, KM Here And There <km.here.there@gmail.com> wrote:
So it appears that the file 'src/lxml/lxml.etree.c' is missing from the source distribution. I've checked 3.3.3 back to 2.3 and it has NEVER been there AFAICT. where did you get your source distribution? The standard tgz contains the file you are missing.
$ tar tvzf ~/Downloads/lxml-3.3.3.tgz | grep lxml.etree.c -rw-r--r-- 0 stefan stefan 8843390 4 Mär 17:26 lxml-3.3.3/src/lxml/lxml.etree.c
while your build directory misses more stuff:
WARNING: Trying to build without Cython, but pre-generated 'src/lxml/lxml.etree.c' is not available. WARNING: Trying to build without Cython, but pre-generated 'src/lxml/lxml.objectify.c' is not available.
jens
Hi, please don't top-post. KM Here And There, 02.04.2014 23:59:
Following up:
Jens' note caused me to look somewhere OTHER than: https://github.com/lxml/lxml (which is where the documentation points you to).
And the distribution at https://pypi.python.org/packages/source/l/lxml/lxml-3.3.3.tar.gz#md5=f267583... seems to have the right stuff.
I think the page at http://lxml.de/build.html is confusing in this regard and may need a bit of clarification so no one else does what I did. Or maybe I'm just a dumb noob.
Hmm, it's actually *very* explicit, although that also makes it a bit verbose. Suggestions for improvements welcome. In any case, the right place to look would have been: http://lxml.de/installation.html Stefan
participants (3)
-
jens quade -
KM Here And There -
Stefan Behnel