Can't pip install lxml==dev on OS X 10.6/Python 2.6.1

Bug #655474 reported by Nicholas Riley on 2010-10-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxml
Low
Unassigned

Bug Description

------------------------------------------------------------
/Users/nicholas/LMI/csm2hg/lib/python2.6/site-packages/pip-0.7.2-py2.6.egg/pip/runner.py run on Tue Oct 5 22:56:05 2010
Downloading/unpacking lxml==dev
  Getting page http://pypi.python.org/simple/lxml
  URLs to search for versions for lxml==dev:
  * http://pypi.python.org/simple/lxml/dev
  * http://pypi.python.org/simple/lxml/
  Getting page http://pypi.python.org/simple/lxml/dev
  Getting page http://codespeak.net/lxml
  Could not fetch URL http://pypi.python.org/simple/lxml/dev: HTTP Error 404: Not Found (lxml/dev)
  Will skip URL http://pypi.python.org/simple/lxml/dev when looking for download links for lxml==dev
[...]
  Downloading trunk
  Downloading from URL http://codespeak.net/svn/lxml/trunk#egg=lxml-dev (from http://pypi.python.org/simple/lxml/)
  Checking out svn repository http://codespeak.net/svn/lxml/trunk to /Users/nicholas/LMI/csm2hg/build/lxml
    Found command 'svn' at '/opt/local/bin/svn'
    Running command /opt/local/bin/svn checkout http://codespeak.net/svn/lxml/trunk /Users/nicholas/LMI/csm2hg/build/lxml
 [...]
    Checked out revision 77637.
  Running setup.py egg_info for package lxml
    versioninfo.py:53: UserWarning: unrecognized .svn/entries format; skipping /Users/nicholas/LMI/csm2hg/build/lxml/
      warn("unrecognized .svn/entries format; skipping "+base)
    Building lxml version 2.3.beta1.
    Building with Cython 0.13.
    Using build configuration of libxslt 1.1.26
    Building against libxml2/libxslt in the following directory: /opt/local/lib
    running egg_info
    creating pip-egg-info/lxml.egg-info
    writing pip-egg-info/lxml.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/lxml.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/lxml.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/lxml.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'lxml.etree.c' under directory 'src/lxml'
    warning: no files found matching 'lxml.objectify.c' under directory 'src/lxml'
    warning: no files found matching 'lxml.etree.h' under directory 'src/lxml'
    warning: no files found matching 'lxml.etree_api.h' under directory 'src/lxml'
    warning: no files found matching '*.html' under directory 'doc'
    writing manifest file 'pip-egg-info/lxml.egg-info/SOURCES.txt'
Installing collected packages: lxml
  Found existing installation: lxml 2.2.8
    Uninstalling lxml:
      Removing file or directory /Users/nicholas/LMI/csm2hg/lib/python2.6/site-packages/lxml
      Removing file or directory /Users/nicholas/LMI/csm2hg/lib/python2.6/site-packages/lxml-2.2.8-py2.6.egg-info
      Successfully uninstalled lxml
  Running setup.py install for lxml
    Running command /Users/nicholas/LMI/csm2hg/bin/python -c "import setuptools; __file__='/Users/nicholas/LMI/csm2hg/build/lxml/setup.py'; execfile('/Users/nicholas/LMI/csm2hg/build/lxml/setup.py')" install --single-version-externally-managed --record /var/folders/ba/baPca9ytH-GnVrznlTbWPE+++TI/-Tmp-/pip-Nrpdoa-record/install-record.txt --install-headers /Users/nicholas/LMI/csm2hg/bin/../include/site/python2.6
    versioninfo.py:53: UserWarning: unrecognized .svn/entries format; skipping /Users/nicholas/LMI/csm2hg/build/lxml/
      warn("unrecognized .svn/entries format; skipping "+base)
    Building lxml version 2.3.beta1.
    Building with Cython 0.13.
    Using build configuration of libxslt 1.1.26
    Building against libxml2/libxslt in the following directory: /opt/local/lib
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.6-universal-2.6
    creating build/lib.macosx-10.6-universal-2.6/lxml
    copying src/lxml/__init__.py -> build/lib.macosx-10.6-universal-2.6/lxml
    copying src/lxml/_elementpath.py -> build/lib.macosx-10.6-universal-2.6/lxml
    copying src/lxml/builder.py -> build/lib.macosx-10.6-universal-2.6/lxml
    copying src/lxml/cssselect.py -> build/lib.macosx-10.6-universal-2.6/lxml
    copying src/lxml/doctestcompare.py -> build/lib.macosx-10.6-universal-2.6/lxml
    copying src/lxml/ElementInclude.py -> build/lib.macosx-10.6-universal-2.6/lxml
    copying src/lxml/pyclasslookup.py -> build/lib.macosx-10.6-universal-2.6/lxml
    copying src/lxml/sax.py -> build/lib.macosx-10.6-universal-2.6/lxml
    copying src/lxml/usedoctest.py -> build/lib.macosx-10.6-universal-2.6/lxml
    creating build/lib.macosx-10.6-universal-2.6/lxml/html
    copying src/lxml/html/__init__.py -> build/lib.macosx-10.6-universal-2.6/lxml/html
    copying src/lxml/html/_dictmixin.py -> build/lib.macosx-10.6-universal-2.6/lxml/html
    copying src/lxml/html/_diffcommand.py -> build/lib.macosx-10.6-universal-2.6/lxml/html
    copying src/lxml/html/_html5builder.py -> build/lib.macosx-10.6-universal-2.6/lxml/html
    copying src/lxml/html/_setmixin.py -> build/lib.macosx-10.6-universal-2.6/lxml/html
    copying src/lxml/html/builder.py -> build/lib.macosx-10.6-universal-2.6/lxml/html
    copying src/lxml/html/clean.py -> build/lib.macosx-10.6-universal-2.6/lxml/html
    copying src/lxml/html/defs.py -> build/lib.macosx-10.6-universal-2.6/lxml/html
    copying src/lxml/html/diff.py -> build/lib.macosx-10.6-universal-2.6/lxml/html
    copying src/lxml/html/ElementSoup.py -> build/lib.macosx-10.6-universal-2.6/lxml/html
    copying src/lxml/html/formfill.py -> build/lib.macosx-10.6-universal-2.6/lxml/html
    copying src/lxml/html/html5parser.py -> build/lib.macosx-10.6-universal-2.6/lxml/html
    copying src/lxml/html/soupparser.py -> build/lib.macosx-10.6-universal-2.6/lxml/html
    copying src/lxml/html/usedoctest.py -> build/lib.macosx-10.6-universal-2.6/lxml/html
    creating build/lib.macosx-10.6-universal-2.6/lxml/isoschematron
    copying src/lxml/isoschematron/__init__.py -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron
    creating build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources
    creating build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/rng
    copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/rng
    creating build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl
    copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl
    copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl
    creating build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
    running build_ext
    building 'lxml.etree' extension
    creating build/temp.macosx-10.6-universal-2.6
    creating build/temp.macosx-10.6-universal-2.6/src
    creating build/temp.macosx-10.6-universal-2.6/src/lxml
    gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -I/opt/local/include -I/opt/local/include/libxml2 -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.6-universal-2.6/src/lxml/lxml.etree.o -w -flat_namespace
    i686-apple-darwin10-gcc-4.2.1: src/lxml/lxml.etree.c: No such file or directory
    i686-apple-darwin10-gcc-4.2.1: no input files
    powerpc-apple-darwin10-gcc-4.2.1: src/lxml/lxml.etree.c: No such file or directory
    powerpc-apple-darwin10-gcc-4.2.1: no input files
    i686-apple-darwin10-gcc-4.2.1: src/lxml/lxml.etree.c: No such file or directory
    i686-apple-darwin10-gcc-4.2.1: no input files
    lipo: can't figure out the architecture type of: /var/folders/ba/baPca9ytH-GnVrznlTbWPE+++TI/-Tmp-//cc7lyuQh.out
    error: command 'gcc-4.2' failed with exit status 1
    Complete output from command /Users/nicholas/LMI/csm2hg/bin/python -c "import setuptools; __file__='/Users/nicholas/LMI/csm2hg/build/lxml/setup.py'; execfile('/Users/nicholas/LMI/csm2hg/build/lxml/setup.py')" install --single-version-externally-managed --record /var/folders/ba/baPca9ytH-GnVrznlTbWPE+++TI/-Tmp-/pip-Nrpdoa-record/install-record.txt --install-headers /Users/nicholas/LMI/csm2hg/bin/../include/site/python2.6:
    versioninfo.py:53: UserWarning: unrecognized .svn/entries format; skipping /Users/nicholas/LMI/csm2hg/build/lxml/

  warn("unrecognized .svn/entries format; skipping "+base)

Building lxml version 2.3.beta1.

Building with Cython 0.13.

Using build configuration of libxslt 1.1.26

Building against libxml2/libxslt in the following directory: /opt/local/lib

running install

running build

running build_py

creating build

creating build/lib.macosx-10.6-universal-2.6

creating build/lib.macosx-10.6-universal-2.6/lxml

copying src/lxml/__init__.py -> build/lib.macosx-10.6-universal-2.6/lxml

copying src/lxml/_elementpath.py -> build/lib.macosx-10.6-universal-2.6/lxml

copying src/lxml/builder.py -> build/lib.macosx-10.6-universal-2.6/lxml

copying src/lxml/cssselect.py -> build/lib.macosx-10.6-universal-2.6/lxml

copying src/lxml/doctestcompare.py -> build/lib.macosx-10.6-universal-2.6/lxml

copying src/lxml/ElementInclude.py -> build/lib.macosx-10.6-universal-2.6/lxml

copying src/lxml/pyclasslookup.py -> build/lib.macosx-10.6-universal-2.6/lxml

copying src/lxml/sax.py -> build/lib.macosx-10.6-universal-2.6/lxml

copying src/lxml/usedoctest.py -> build/lib.macosx-10.6-universal-2.6/lxml

creating build/lib.macosx-10.6-universal-2.6/lxml/html

copying src/lxml/html/__init__.py -> build/lib.macosx-10.6-universal-2.6/lxml/html

copying src/lxml/html/_dictmixin.py -> build/lib.macosx-10.6-universal-2.6/lxml/html

copying src/lxml/html/_diffcommand.py -> build/lib.macosx-10.6-universal-2.6/lxml/html

copying src/lxml/html/_html5builder.py -> build/lib.macosx-10.6-universal-2.6/lxml/html

copying src/lxml/html/_setmixin.py -> build/lib.macosx-10.6-universal-2.6/lxml/html

copying src/lxml/html/builder.py -> build/lib.macosx-10.6-universal-2.6/lxml/html

copying src/lxml/html/clean.py -> build/lib.macosx-10.6-universal-2.6/lxml/html

copying src/lxml/html/defs.py -> build/lib.macosx-10.6-universal-2.6/lxml/html

copying src/lxml/html/diff.py -> build/lib.macosx-10.6-universal-2.6/lxml/html

copying src/lxml/html/ElementSoup.py -> build/lib.macosx-10.6-universal-2.6/lxml/html

copying src/lxml/html/formfill.py -> build/lib.macosx-10.6-universal-2.6/lxml/html

copying src/lxml/html/html5parser.py -> build/lib.macosx-10.6-universal-2.6/lxml/html

copying src/lxml/html/soupparser.py -> build/lib.macosx-10.6-universal-2.6/lxml/html

copying src/lxml/html/usedoctest.py -> build/lib.macosx-10.6-universal-2.6/lxml/html

creating build/lib.macosx-10.6-universal-2.6/lxml/isoschematron

copying src/lxml/isoschematron/__init__.py -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron

creating build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources

creating build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/rng

copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/rng

creating build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl

copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl

copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl

creating build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-10.6-universal-2.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

running build_ext

building 'lxml.etree' extension

creating build/temp.macosx-10.6-universal-2.6

creating build/temp.macosx-10.6-universal-2.6/src

creating build/temp.macosx-10.6-universal-2.6/src/lxml

gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -I/opt/local/include -I/opt/local/include/libxml2 -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.6-universal-2.6/src/lxml/lxml.etree.o -w -flat_namespace

i686-apple-darwin10-gcc-4.2.1: src/lxml/lxml.etree.c: No such file or directory

i686-apple-darwin10-gcc-4.2.1: no input files

powerpc-apple-darwin10-gcc-4.2.1: src/lxml/lxml.etree.c: No such file or directory

powerpc-apple-darwin10-gcc-4.2.1: no input files

i686-apple-darwin10-gcc-4.2.1: src/lxml/lxml.etree.c: No such file or directory

i686-apple-darwin10-gcc-4.2.1: no input files

lipo: can't figure out the architecture type of: /var/folders/ba/baPca9ytH-GnVrznlTbWPE+++TI/-Tmp-//cc7lyuQh.out

error: command 'gcc-4.2' failed with exit status 1

----------------------------------------
  Rolling back uninstall of lxml
  Replacing /Users/nicholas/LMI/csm2hg/lib/python2.6/site-packages/lxml
  Replacing /Users/nicholas/LMI/csm2hg/lib/python2.6/site-packages/lxml-2.2.8-py2.6.egg-info
Command /Users/nicholas/LMI/csm2hg/bin/python -c "import setuptools; __file__='/Users/nicholas/LMI/csm2hg/build/lxml/setup.py'; execfile('/Users/nicholas/LMI/csm2hg/build/lxml/setup.py')" install --single-version-externally-managed --record /var/folders/ba/baPca9ytH-GnVrznlTbWPE+++TI/-Tmp-/pip-Nrpdoa-record/install-record.txt --install-headers /Users/nicholas/LMI/csm2hg/bin/../include/site/python2.6 failed with error code 1
Exception information:
Traceback (most recent call last):
  File "/Users/nicholas/LMI/csm2hg/lib/python2.6/site-packages/pip-0.7.2-py2.6.egg/pip/basecommand.py", line 120, in main
    self.run(options, args)
  File "/Users/nicholas/LMI/csm2hg/lib/python2.6/site-packages/pip-0.7.2-py2.6.egg/pip/commands/install.py", line 165, in run
    requirement_set.install(install_options)
  File "/Users/nicholas/LMI/csm2hg/lib/python2.6/site-packages/pip-0.7.2-py2.6.egg/pip/req.py", line 1243, in install
    requirement.install(install_options)
  File "/Users/nicholas/LMI/csm2hg/lib/python2.6/site-packages/pip-0.7.2-py2.6.egg/pip/req.py", line 540, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/Users/nicholas/LMI/csm2hg/lib/python2.6/site-packages/pip-0.7.2-py2.6.egg/pip/__init__.py", line 226, in call_subprocess
    % (command_desc, proc.returncode))
InstallationError: Command /Users/nicholas/LMI/csm2hg/bin/python -c "import setuptools; __file__='/Users/nicholas/LMI/csm2hg/build/lxml/setup.py'; execfile('/Users/nicholas/LMI/csm2hg/build/lxml/setup.py')" install --single-version-externally-managed --record /var/folders/ba/baPca9ytH-GnVrznlTbWPE+++TI/-Tmp-/pip-Nrpdoa-record/install-record.txt --install-headers /Users/nicholas/LMI/csm2hg/bin/../include/site/python2.6 failed with error code 1

scoder (scoder) wrote :

I updated the PyPI page with the requirement to install Cython to make this work. See the build instructions.

Changed in lxml:
assignee: nobody → Stefan Behnel (scoder)
importance: Undecided → Low
status: New → Fix Released
Nicholas Riley (njriley) wrote :

I did have Cython 0.13 installed (note that "Building with Cython 0.13." is above). Do I need to tell lxml about Cython somehow?

scoder (scoder) wrote :

Ah, right, I missed that line. Then it's a problem with the build setup under MacOS. It's designed to support a static release build and it seems that no-one ever tried a developer build on that platform, which additionally requires Cython compilation. Shouldn't be hard to add, although I feel reluctant to do it because changes like this tend to break the regular release build in one way or another, and (believe it or not) getting MacOS users to test it and to provide helpful bug reports is not easy. Based on my past experience, I consider the quality of this very bug report exceptional.

Anyway, there isn't currently much interesting stuff in the source repo that's not in 2.3beta1 yet, so you should be fine with using the latest release for now.

Changed in lxml:
assignee: Stefan Behnel (scoder) → nobody
status: Fix Released → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers