Dear Uli,

Thanks for the help!

With otool I found out that libavg pointed to a python version at 
"/System/Library/Frameworks/Python.framework/Versions/2.6/bin", where the 
original mac version of python (2.6.1) still was. So after adjusting my PATH 
such that the old binaries are used instead of the newer one, thinks work out 
fine again. Although I have no clue why there are 3 folders on my system with 
python versions (Library/Frameworks/, /System/Library/Frameworks/ and 
/Library/Python), I am happy things are back to normal now...

Regards and thanks again,
Michael

On Apr 3, 2010, at 12:00 PM, [email protected] wrote:

> Message: 2
> Date: Fri, 2 Apr 2010 20:01:57 +0200
> From: Ulrich von Zadow <[email protected]>
> Subject: Re: [libavg-users] Troubleshooting libavg installation on
>       Snow    Leopard with Python 2.6.5
> To: [email protected]

> Hi Michael,
> 
> we always use the standard version of python on Mac. Still, some ideas:
> 
> - Make sure you start python using the right architecture:
> 
> http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/python.1.html
> 
> - If libavg is not compiled for this version of python, strange things  
> might happen. On the mac, libraries are referenced using absolute  
> paths stored in the program that uses them. So, since libavg uses  
> python, there will be an absolute path to a particular python version  
> in avg.so. You can find out which path that is by using otool:
> 
> $ otool -L /Library/Python/2.6/site-packages/libavg/avg.so
> 
> Good luck,
> 
>   Uli
> 
> On Apr 2, 2010, at 5:50 PM, Michael Schmitz wrote:
> 
>> Dear all,
>> 
>> I was succesfully running the latest libavg version for Snow Leopard  
>> until I installed Python 2.6.5 from python.org (don't ask why....).  
>> Now, all the Python stuff is under " /Library/Frameworks/ 
>> Python.framework/Versions/2.6/lib/python2.6/".
>> 
>> Anyway, libavg isn't working anymore (also after reinstalling  
>> libavg), running the Test.py shows me:
>> 
>> ./Test.py
>> Traceback (most recent call last):
>> File "./Test.py", line 41, in <module>
>>  import avg
>> ImportError: dlopen(/Library/Python/2.6/site-packages/libavg/avg.so,  
>> 2): no suitable image found.  Did find:
>>      /Library/Python/2.6/site-packages/libavg/avg.so: mach-o, but wrong  
>> architecture
>> 
>> 
>> A search on the mailing list brought up some mails about 64/32-bit  
>> issues, so a
>> 
>> "file /Library/Frameworks/Python.framework/Versions/2.6/bin/python"
>> 
>> prints out:
>> 
>> /Library/Frameworks/Python.framework/Versions/2.6/bin/python: Mach-O  
>> universal binary with 2 architectures
>> /Library/Frameworks/Python.framework/Versions/2.6/bin/python (for  
>> architecture ppc):   Mach-O executable ppc
>> /Library/Frameworks/Python.framework/Versions/2.6/bin/python (for  
>> architecture i386):  Mach-O executable i386
>> 
>> I am running Mac OS 10.6.2 and Python 2.6.5 (r265:79359, Mar 24  
>> 2010, 01:32:55)  [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
>> 
>> Any hints on that would be great.
>> 
>> Thank you!
>> 
>> Michael
>> 
>> _______________________________________________
>> libavg-users mailing list
>> [email protected]
>> https://mail.datenhain.de/mailman/listinfo/libavg-users
>> 
> 
> --
> Any technology distinguishable from magic is insufficiently advanced.
> 
> Ulrich von Zadow | +49-172-7872715
> Jabber: [email protected]
> Skype: uzadow
> 
> 
> 
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> libavg-users mailing list
> [email protected]
> https://mail.datenhain.de/mailman/listinfo/libavg-users
> 
> 
> End of libavg-users Digest, Vol 41, Issue 1
> *******************************************

-- 
Michael Schmitz
Universitaet des Saarlandes
FR 6.2 Informatik
Postfach 15 11 50
66041 Saarbruecken
Fon +49-681.302.4896
Fax +49-681.302.4136
[email protected]
http://w5.cs.uni-saarland.de/~schmitz

_______________________________________________
libavg-users mailing list
[email protected]
https://mail.datenhain.de/mailman/listinfo/libavg-users

Reply via email to