#36107: py27-lxml broken with ----------------------------+----------------------- Reporter: peter.linss@… | Owner: akitada@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: py27-lxml | ----------------------------+----------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => akitada@… * cc: peter.linss@… (removed) * cc: dbraband@… (added) Old description:
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
New description: 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 -- Comment: In the future, please use WikiFormatting, and Cc the port maintainer(s). The reporter is automatically Cc'ed. FYI it works fine for me. -- Ticket URL: <https://trac.macports.org/ticket/36107#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS