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
