I haven't tested it yet but it sounds right. 

I'd forgotten that i'd forced my python into 32bit to run pyglet and until now 
wasn't aware that libavg would be 64bit. 

i'll have a look a bit later and report back.

Justin 


-----Original Message-----
From: Ulrich von Zadow [mailto:[email protected]]
Sent: Sat 1/16/2010 6:08 AM
To: [email protected]
Subject: Re: [libavg-users] Snow Leopard Install
 
Hi,

yep, you got the right package.

It looks like Apple's long trek to 64-bit-land is causing some  
problems here. I think I've figured out what's causing your problem,  
but I can't verify things here (1.0 wouldn't have shipped if I had  
access to an Intel Mac that it doesn't run on ;-)).

The version of libavg you have is a 64-bit library:

$ file /Library/Python/2.6/site-packages/libavg/avg.so
/Library/Python/2.6/site-packages/libavg/avg.so: Mach-O 64-bit bundle  
x86_64

And Snow Leopard's Python is multi-architecture:

$ file /usr/bin/python
python: Mach-O universal binary with 3 architectures
python (for architecture x86_64):       Mach-O 64-bit executable x86_64
python (for architecture i386): Mach-O executable i386
python (for architecture ppc7400):      Mach-O executable ppc

For import libavg to work, you have to be running python in 64 bit  
mode. You have a Core 2 Duo, so you should be able to run it in 64 bit  
mode. The python manual page details how this is done (actually, 64  
bit seems to be the default...):

http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/python.1.html

Let me know how things go.

Cheers,

   Uli

On Jan 14, 2010, at 12:24 AM, Justin Maynard wrote:

> Yes I got the correct download
>
> It dosent help that the DMG automatically unpacks to a generically  
> labelled libavg.pkg
>
> libavg is installed under Python 2.6 so that also indicated I got  
> the right package. correct?
> /Library/Python/2.6/site-packages/libavg/avg/test
>
> Justin
>
> -----Original Message-----
> From: Ulrich von Zadow [mailto:[email protected]]
> Sent: Thu 1/14/2010 9:55 AM
> To: [email protected]
> Subject: Re: [libavg-users] Snow Leopard Install
>
> Hm.
>
> And you downloaded the _second_ of the two packages on the download
> page?:
>
> . Mac OS X package - Leopard, Intel only: libavg-mac-10.5-1.0.0.dmg
> . Mac OS X package - Snow Leopard: libavg-mac-10.6-1.0.0.dmg
>
> Cheers,
>
>   Uli
>
> On Jan 13, 2010, at 11:34 PM, Justin Maynard wrote:
>
>> I just tried libAVG on Snow Leopard.
>>
>> The Installation was fine but when I ran test.sh I get
>>
>> ---------- BPP=24 POW2=false, YCbCr=shader PBO=true -----------
>>
>> Traceback (most recent call last):
>>  File "./Test.py", line 41, in <module>
>>    import avg
>> ImportError: dlopen(../../avg.so, 2): no suitable image found.  Did
>> find:
>>        ../../avg.so: mach-o, but wrong architecture
>>
>> and trying a simple import on the command line yields the same  
>> result.
>>
>> Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51)
>> [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
>> Type "help", "copyright", "credits" or "license" for more  
>> information.
>>>>> from libavg import avg
>> Traceback (most recent call last):
>>  File "<stdin>", line 1, in <module>
>>  File "/Library/Python/2.6/site-packages/libavg/__init__.py", line
>> 1, in <module>
>>    from avg import *
>> 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
>>
>> On a MacBookPro running 10.6.2
>>
>>  Model Name:   MacBook Pro
>>  Model Identifier:     MacBookPro2,2
>>  Processor Name:       Intel Core 2 Duo
>>  Processor Speed:      2.33 GHz
>>
>>  Chipset Model:        ATY,RadeonX1600
>>  Type: GPU
>>  Bus:  PCIe
>>  PCIe Lane Width:      x16
>>  VRAM (Total): 256 MB
>>  Vendor:       ATI (0x1002)
>>
>> _______________________________________________
>> 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
>
> <winmail.dat>_______________________________________________
> 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

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

Reply via email to