I installed the default version of python27 and now it works fine. Thank you for your help David.
Le 27 févr. 2014 à 16:38, David Evans <[email protected]> a écrit : > On 2/27/14 1:02 AM, Giuseppe Di Matteo wrote: >> Here it is: >> echo "import libxml2" | /opt/local/bin/python2.7 - >> >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File >> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/libxml2.py", >> line 1, in <module> >> import libxml2mod >> ImportError: >> dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/libxml2mod.so, >> 2): Symbol not found: _PyUnicodeUCS2_AsUTF8String >> Referenced from: >> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/libxml2mod.so >> Expected in: flat namespace >> in >> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/libxml2mod.so >> >> > It appears that you have python27 +ucs4 installed and py27-libxml2 was built > (probably the current binary archive) using the default variant of python27 > (without the +ucs4 variant). > > To fix the problem either install the default version of python27 > > sudo port install python27 > > Or if you really need to continue to use python27 +ucs4 then you will need to > rebuild py27-libxml2 locally, from source. Note that a fix for a different > problem was committed for py-libxml2 yesterday so be sure to update your > ports first. > > sudo port selfupdate > sudo port -ns upgrade --force py27-libxml2 > > Once this is done, you should be able to build itstool without problems. > > You may see this problem with other ports that link against the python > library. > See also https://trac.macports.org/ticket/35603 > Giuseppe Di Matteo [email protected]
_______________________________________________ macports-users mailing list [email protected] https://lists.macosforge.org/mailman/listinfo/macports-users
