import etree from lxml fails with new libxslt-1.1.25

Bug #434454 reported by ph34r
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
lxml
Won't Fix
Undecided
Unassigned

Bug Description

Traceback (most recent call last):
  File "fail.py", line 1, in <module>
    from lxml import etree
ImportError: /usr/local/lib/python2.6/site-packages/lxml-2.2.2-py2.6-freebsd-7.0-RELEASE-amd64.egg/lxml/etree.so: Undefined symbol "xsltProcessOneNode"

Works fine with 1.1.24.

Revision history for this message
Jeroen Ruigrok van der Werven (asmodai) wrote :

One change that happened from 1.1.24 to 1.1.25 is that they made this function static. So it cannot be resolved from external applications or libraries, like lxml. In essence it would mean cleaning up src/lxml/xsltext.pxi, src/lxml/lxml.etree.c, and src/lxml/xslt.pxd and remove all references to (xslt.)xsltProcessOneNode.

Revision history for this message
Jeroen Ruigrok van der Werven (asmodai) wrote :

Of course, given that lxml actually uses it in src/lxml/xsltext.pxi, that doesn't help.

Given that 1.1.24 also didn't have this call in transform.h it could have never been meant to be made public.

Revision history for this message
Jeroen Ruigrok van der Werven (asmodai) wrote :

See related emails @ http://<email address hidden>/msg01396.html and http://<email address hidden>/msg01423.html

Revision history for this message
scoder (scoder) wrote :

This works again with libxslt 1.1.26 (and hopefully later versions).

Changed in lxml:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.