#36107: py27-lxml broken with ---------------------------+-------------------------------- Reporter: peter.linss@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: py27-lxml ---------------------------+-------------------------------- Using python27 @2.7.3_0+ucs4 and py27-lxml @2.3.2_0, unable to import etree from lxml.
from lxml import etree Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/lxml/etree.so, 2): Symbol not found: _PyUnicodeUCS2_AsASCIIString Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/lxml/etree.so Expected in: flat namespace in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/lxml/etree.so
This works using python27 @2.7.3_0+ucs2, or using python27 @2.7.3_0+ucs4 and py27-lxml @2.3.0 -- Ticket URL: <https://trac.macports.org/ticket/36107> MacPorts <http://www.macports.org/> Ports system for Mac OS