lxml.etree error: xmlSchematronSetValidStructuredErrors

T

TheIvIaxx

I have installed libxml2 and libxslt and then tried to install lxml
with easy_install lxml. I can import lxml by "import lxml" but trying
"from lxml import etree" and get:

ImportError: /usr/local/lib/python2.5/site-packages/lxml-2.2alpha1-
py2.5-linux-i686.egg/lxml/etree.so: undefined symbol:
xmlSchematronSetValidStructuredErrors

I have only seen one mention of this error through googling and they
suggested there was something wrong with libxml2 or libxslt. However
importing libxml2 works fine, libxslt throws an error about it not
defining an init function (?).

Any advice?

Thanks
 
T

TheIvIaxx

nvm, i got it working. Checking the docs for libxsltmod i was given
the tip to add:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,600
Members
45,180
Latest member
CryptoTax Software
Top