Launchpad

can't build lxml 3.0 with Python 3.3 on Mac OS X

This bug affects 1 person

Affects Status Importance Assigned to Milestone
lxml

Fix Released

Medium

scoder

Bug Description

Building lxml 3.0 using Python 3.3 (probably any Python 3 will fail) on Mac OS X 10.8 fails:

$ STATIC_DEPS=true pip install lxml==3.0
Downloading/ unpacking lxml==3.0
  Running setup.py egg_info for package lxml
    Building lxml version 3.0.
    Latest version of libiconv is 1.14
    Using existing libiconv downloaded into libs/libiconv- 1.14.tar. gz (delete this file if you want to re-download the package)
    Unpacking libiconv- 1.14.tar. gz into build/tmp
    Latest version of libxml2 is 2.9.0
    Using existing libxml2 downloaded into libs/libxml2- 2.9.0.tar. gz (delete this file if you want to re-download the package)
    Unpacking libxml2- 2.9.0.tar. gz into build/tmp
    Latest version of libxslt is 1.1.27
    Using existing libxslt downloaded into libs/libxslt- 1.1.27. tar.gz (delete this file if you want to re-download the package)
    Unpacking libxslt- 1.1.27. tar.gz into build/tmp
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/var/folders/ cl/7k35th017tn0 v9t9rphhcskh000 0gn/T/pip- build/lxml/ setup.py" , line 226, in <module>
         **setup_ extra_options( )
      File "/var/folders/ cl/7k35th017tn0 v9t9rphhcskh000 0gn/T/pip- build/lxml/ setup.py" , line 139, in setup_extra_options
         STATIC_ CFLAGS, STATIC_BINARIES)
      File "./setupinfo.py", line 57, in ext_modules
         multicore= OPTION_ MULTICORE)
      File "./buildlibxml.py", line 298, in build_libxml2xslt
        if (xcode_ version. startswith( 'Xcode' ) and
    TypeError: startswith first arg must be bytes or a tuple of bytes, not str

If I fix that problem and do a manual build I hit problem (2) described in bug#1056157.

Read the original on bugs.launchpad.net ↗