installing lxml ?

7stud bbxx789_05ss at yahoo.com
Wed Nov 11 09:54:23 EST 2009


On Nov 11, 6:31 am, Jussi Piitulainen <jpiit... at ling.helsinki.fi>
wrote:
> 7stud writes:
> > I'm trying to install lxml, but I can't figure out the installation
> > instructions.  Here:
> ...
> > My os is mac os x 10.4.11.   But this:
>
> > STATIC_DEPS=true easy_install lxml
>
> > is not a valid command:
>
> > $ sudo STATIC_DEPS=true easy_install lxml
> > Password:
> > sudo: STATIC_DEPS=true: command not found
>
> Maybe
>
>    STATIC_DEPS=true sudo easy_install lxml
>
> And be running Bash or some other Bourne type shell.
>

That worked. (The Terminal app on my mac uses bash by default.)

Unfortunately, easy_install was not able to install lxml!  Here is the
output:

---
$ sudo STATIC_DEPS=true /Library/Frameworks/Python.framework/Versions/
2.6/bin/easy_install lxml
Password:
sudo: STATIC_DEPS=true: command not found
$ 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/
sandbox.py", line 64, in <lambda>
  File "setup.py", line 119, in <module>

  File "/tmp/easy_install-r2obQa/lxml-2.2.3/setupinfo.py", line 51, in
ext_modules
TypeError: build_libxml2xslt() got an unexpected keyword argument
'libiconv_version'



More information about the Python-list mailing list