TypeError: build_libxml2xslt() got an unexpected keyword argument 'libiconv_version'

Bug #480225 reported by Sridhar Ratnakumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxml
Fix Released
Medium
scoder

Bug Description

This is a regression in lxml-2.2.3

$ python setup.py build --static-deps install --no-compile
Building lxml version 2.2.3.
Traceback (most recent call last):
  File "setup.py", line 119, in <module>
    STATIC_CFLAGS, STATIC_BINARIES),
  File "/tmp/tmpwHikQY/lxml-2.2.3/setupinfo.py", line 51, in ext_modules
    libxslt_version=OPTION_LIBXSLT_VERSION)
TypeError: build_libxml2xslt() got an unexpected keyword argument 'libiconv_version'

Revision history for this message
scoder (scoder) wrote : Re: [Bug 480225] [NEW] TypeError: build_libxml2xslt() got an unexpected keyword argument 'libiconv_version'

Could you make sure that you start with a clean configuration? It seems to
me that it imports a wrong (outdated?) buildlibxml.py from somewhere.

Assuming you're on Linux, run the build as

 strace -e open python setup.py ...

to see where it's imported from.

Stefan

Revision history for this message
scoder (scoder) wrote :

Oh, well... That was an accidental merge from 2.3. Thanks for the report!

Changed in lxml:
assignee: nobody → Stefan Behnel (scoder)
importance: Undecided → Medium
status: New → Fix Released
Revision history for this message
Sridhar Ratnakumar (srid) wrote :

Nice! :-)

You can always find the *current* build log of lxml on various platforms (currently only mac, linux, win .. x86 and Python-2.6) here: http://pypm.activestate.com/list-l.html#lxml

Revision history for this message
7stud (7stud-7stud) wrote :
Download full text (3.4 KiB)

mac osx 10.4.11

$ STATIC_DEPS=true sudo /Library/Frameworks/Python.framework/Versions/
2.6/bin/easy_install lxml
Password:
Searching for lxml
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.2.3
Downloading http://codespeak.net/lxml/lxml-2.2.3.tgz
Processing lxml-2.2.3.tgz
Running lxml-2.2.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-
r2obQa/lxml-2.2.3/egg-dist-tmp-7v5A1n
Building lxml version 2.2.3.
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.6/bin/
easy_install", line 8, in <module>
    load_entry_point('setuptools==0.6c11', 'console_scripts',
'easy_install')()
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/
easy_install.py", line 1712, in main
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/
easy_install.py", line 1700, in with_ei_usage
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/
easy_install.py", line 1716, in <lambda>
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/
easy_install.py", line 211, in run
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/
easy_install.py", line 446, in easy_install
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/
easy_install.py", line 476, in install_item
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/
easy_install.py", line 655, in install_eggs
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/
easy_install.py", line 930, in build_and_install
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/
easy_install.py", line 919, in run_setup
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/
sandbox.py", line 62, in run_setup
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/
sandbox.py", line 105, in run
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/
sandbo...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.