[lxml-dev] binary egg problems with OSX 10.5 / official Python Mac Installer
David Glick
dglick at gmail.com
Thu Jul 16 08:28:00 CEST 2009
I just tried out the OSX binary egg of lxml 2.2.2 for the first time. When I
try to import lxml.etree, I get the following traceback:
from lxml import etree
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-pac
kages/lxml-2.2.2-py2.6-macosx-10.5-i386.egg/lxml/etree.so,
2): Library not loaded: /opt/local/lib/libiconv.2.dylib
Referenced from:
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/l
xml-2.2.2-py2.6-macosx-10.5-i386.egg/lxml/etree.so
Reason: Incompatible library version: etree.so requires version 8.0.0 or
later, but libiconv.2.dylib provides version 7.0.0
I presume this is because I'm using Python 2.6 from the official Python Mac
Installer rather than from macports, so I don't have the right version of
libiconv in my macports directory where the binary egg is trying to link
against it. Does that sound like an accurate diagnosis? Does the binary egg
require installing Python 2.6 via macports?
I'm working around this by building the egg myself, but wanted to make sure
you're aware of it.
peace,
David Glick
More information about the lxml-dev
mailing list