Looks like we were able to solve it here.

We reinstalled pyglet 1.1.2 but only after switching to 32bit mode for (the 
os x 'stock') python.

defaults write com.apple.versioner.python Prefer-32-Bit -bool yes", 
shell=True

BTW I'm still getting the same error when printing the state of av/bin. But 
our projects build so for now that's good enough.

Thanks again for the help!

Pepijn


On Friday, December 7, 2012 2:54:42 PM UTC-8, pepijn wrote:
>
> Hey Nathan, 
>
> This is the output when i run said commands: 
>
> Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43) 
> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin 
> Type "help", "copyright", "credits" or "license" for more information. 
> >>> import pyglet 
>
> >>> print(pyglet.version) 
> 1.2alpha1 
>
> >>> print(pyglet.media.have_avbin) 
> 2012-12-07 14:52:34.051 Python[414:f07] ApplePersistenceIgnoreState: 
> Existing state will not be touched. New state will be written to 
> /var/folders/b6/wjplmbk94bd501nx2n40vzbr0000gn/T/org.python.python.savedState 
>
> Unexpected error loading library /usr/local/lib/libavbin.dylib: 
> dlopen(/usr/local/lib/libavbin.dylib, 6): no suitable image found.  Did 
> find: 
>         /usr/local/lib/libavbin.dylib: no matching architecture in 
> universal wrapper 
> Traceback (most recent call last): 
>   File "<stdin>", line 1, in <module> 
>   File "pyglet/__init__.py", line 338, in __getattr__ 
>     __import__(import_name) 
>   File "pyglet/media/__init__.py", line 1469, in <module> 
>     import avbin 
>   File "pyglet/media/avbin.py", line 64, in <module> 
>     darwin='/usr/local/lib/libavbin.dylib') 
>   File "pyglet/lib.py", line 111, in load_library 
>     lib = ctypes.cdll.LoadLibrary(name) 
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py",
>  
> line 443, in LoadLibrary 
>     return self._dlltype(name) 
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py",
>  
> line 365, in __init__ 
>     self._handle = _dlopen(self._name, mode) 
> OSError: dlopen(/usr/local/lib/libavbin.dylib, 6): no suitable image 
> found.  Did find: 
>         /usr/local/lib/libavbin.dylib: no matching architecture in 
> universal wrapper 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pyglet-users/-/OtG3BicI0esJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to