Pepijn,

I started a new email thread to help you debug this problem (so it won't
sort together with the other thread).

It looks like you need to install a newer version of AVbin.  Either try the
last release (version 10):

https://github.com/downloads/AVbin/AVbin/AVbin10.pkg

...or the latest prerelease (which may work better):

https://github.com/downloads/AVbin/AVbin/AVbin11alpha4.pkg

Try installing one of those and then run the commands again.

~ Nathan


On Fri, Dec 7, 2012 at 3:54 PM, Pepijn Gooiker <[email protected]>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
>
> >>> print(pyglet.media.avbin.get_version())
> 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
> >>>
>
> Any idea what's happening?
>
> Thanks
> Pepijn
>
> ________________________________________
> From: [email protected] [[email protected]] On
> Behalf Of Nathan [[email protected]]
> Sent: Friday, December 07, 2012 9:58 AM
> To: [email protected]
> Subject: Re: pyglet on Mac OS Mountain Lion?
>
> On Thu, Dec 6, 2012 at 4:39 PM, pepijn <[email protected]<mailto:
> [email protected]>> wrote:
> Hey Nathan/all,
>
> Thanks for outlining these steps. Unfortunately i'm still getting the same
> quick time errors as Steve Willis above. I had previously installed Pyglet
> 1.1.4 through pyglet.org... Maybe i should've uninstalled that one before i
> followed your steps. Not sure how to uninstall though. I looked through
> their documentation but they only tell you how to install. Anyone any ideas?
>
> Lets check to see if everything got upgraded like you expected.  Try
> running python, and then running the following commands:
>
> import pyglet
> print(pyglet.version)
> print(pyglet.media.have_avbin)
> print(pyglet.media.avbin.get_version())
>
> For example, on one of my machines it looks like this:
>
> $ python
> Python 2.7.2 (default, Jun 20 2012, 16:23:33)
> [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on
> darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import pyglet
> >>> print(pyglet.version)
> 1.2alpha1
> >>> print(pyglet.media.have_avbin)
> True
> >>> print(pyglet.media.avbin.get_version())
> 11
>
> Also, can i use the stock python that comes with os x 10.8?
>
> You can if you install the development version of pyglet from the
> mercurial repository.
>
> Thanks for all the help here in any case!
>
> I hope this helps.  :-)
>
> ~ Nathan
>
> --
> You received this message because you are subscribed to the Google Groups
> "pyglet-users" group.
> 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.
>
> --
> You received this message because you are subscribed to the Google Groups
> "pyglet-users" group.
> 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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
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