ImportError - xmlSchematronFree

Asked by outspoken

Python 2.5.2
libxslt-1.1.23
libxml2-2.6.32
lxml-2.1alpha1-py2.5-linux-i686.egg (from easy_install)

Python 2.5.2 (r252:60911, Apr 8 2008, 15:35:56)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from lxml import etree
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/local/lib/python2.5/site-packages/lxml-2.1alpha1-py2.5-linux-i686.egg/lxml/etree.so: undefined symbol: xmlSchematronFree

Question information

Language:
English Edit question
Status:
Solved
For:
lxml Edit question
Assignee:
No assignee Edit question
Solved by:
scoder
Solved:
Last query:
Last reply:
Revision history for this message
Best scoder (scoder) said :
#1

I suspect this to be a problem with the setup of your machine. Try running Python under strace when you import lxml.etree and check that it loads the correct version of the libxml2 library.

Revision history for this message
outspoken (garlandkr) said :
#2

Thanks Stefan Behnel, that solved my question.