
On Fri, 14 Mar 2008 17:30:32 +0100 Stefan Behnel <stefan_ml@behnel.de> wrote:
Hi,
Fabien wrote:
- what package management system (fink/macports) do you use? macports
- are you using the stock Python or one that is installed separately? the stock Python bundled with Leopard
- what library versions are you using of libxml2, libxslt, zlib, libiconv? $ port installed |egrep 'libxml2|xslt|zlib|iconv' libiconv @1.12_0 (active) libxml2 @2.6.31_0 (active) libxslt @1.1.22_0 (active) zlib @1.2.3_1 (active)
When I'm trying to make the install, I get the following errors :
MacBook-Pro:Downloads jibaku$ sudo easy_install lxml==2.0.2 Searching for lxml==2.0.2 Reading http://pypi.python.org/simple/lxml/ Reading http://codespeak.net/lxml Best match: lxml 2.0.2 Downloading http://codespeak.net/lxml/lxml-2.0.2.tgz Processing lxml-2.0.2.tgz Running lxml-2.0.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install--6uwin/lxml-2.0.2/egg-dist-tmp-25cVmi Building lxml version 2.0.2. NOTE: Trying to build without Cython, pre-generated 'src/lxml/etree.c' needs to be available. warning: no previously-included files found matching 'doc/pyrex.txt' ld warning: in /opt/local/lib/libxslt.dylib, file is not of required architecture ld warning: in /opt/local/lib/libexslt.dylib, file is not of required architecture
Just guessing, but this looks like a problem with your setup. It seems to use the correct libraries in /opt/local (although it doesn't look like building anything here). But somehow they do not seem to fit either your Python or the compiler, so apparently it can't build against them. Is this on Intel or PPC?
Maybe others can comment on this?
IIRC, macports builds binaries for your system, not universal binaries. /usr/bin/python, on the other hand, is a universal binary. See if the library ports have a universal variant, and if so, try installing that. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.