Re: ITStool failed to build

2014-02-28 Thread Giuseppe Di Matteo
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  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 "", line 1, in 
>>   File 
>> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/libxml2.py",
>>  line 1, in 
>> 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
pinodimat...@icloud.com



___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: ITStool failed to build

2014-02-27 Thread David Evans
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 "", line 1, in 
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/libxml2.py",
> line 1, in 
> 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

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: ITStool failed to build

2014-02-27 Thread Giuseppe Di Matteo
Here it is: 
echo "import libxml2" | /opt/local/bin/python2.7 -

Traceback (most recent call last):
  File "", line 1, in 
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/libxml2.py",
 line 1, in 
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

Le 26 févr. 2014 à 17:41, David Evans  a écrit :

> On 2/26/14 2:00 AM, Giuseppe Di Matteo wrote:
>> Hello,
>> I need to install itstool as a dependency of winetricks, but it failed at 
>> the configure stage: a module is missing.
>> I checked my system and both the libxml2 and py27-libxml2 are installed but 
>> it seems to me that it is searching in the wrong place. 
>> 
>> Giuseppe Di Matteo
>> pinodimat...@icloud.com
>> 
>> 
>> 
> Can you execute the following command and report what it returns?  This is 
> the command that is failing for you in configure.
> 
> echo "import libxml2" | /opt/local/bin/python2.7 -
> 

Giuseppe Di Matteo
pinodimat...@icloud.com



___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: ITStool failed to build

2014-02-26 Thread David Evans
On 2/26/14 2:00 AM, Giuseppe Di Matteo wrote:
> Hello,
> I need to install itstool as a dependency of winetricks, but it failed at the 
> configure stage: a module is missing.
> I checked my system and both the libxml2 and py27-libxml2 are installed but 
> it seems to me that it is searching in the wrong place. 
>
> Giuseppe Di Matteo
> pinodimat...@icloud.com
>
>
>
Can you execute the following command and report what it returns?  This
is the command that is failing for you in configure.

echo "import libxml2" | /opt/local/bin/python2.7 -

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


ITStool failed to build

2014-02-26 Thread Giuseppe Di Matteo
Hello,
I need to install itstool as a dependency of winetricks, but it failed at the 
configure stage: a module is missing.
I checked my system and both the libxml2 and py27-libxml2 are installed but it 
seems to me that it is searching in the wrong place. 

Giuseppe Di Matteo
pinodimat...@icloud.com




itstool_config.log
Description: Binary data


itstool_main.log
Description: Binary data

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users