Q:

Trying to use Pyglet - what does this error mean?

I am running Mac OS X Mountain Lion, with Python 2.7. I did a source install of Pyglet that seemed to go without errors, but any time I try to run a program I get a longish error that I don't understand. It sounds like it has something to do with QuickTime??
Every program I've tried gives the same error. The programs I have tried running are the examples that came in the source, and the example here: http://guzalexander.com/2012/08/17/playing-a-sound-with-python.html
The error I get says:
File "examples/media_player.py", line 44, in <module>
from pyglet.gl import *  
File "/Library/Python/2.7/site-packages/pyglet/gl/__init__.py", line 510, in <module>
    import pyglet.window
  File "/Library/Python/2.7/site-packages/pyglet/window/__init__.py", line 1669, in <module>
    from pyglet.window.carbon import CarbonPlatform, CarbonWindow
  File "/Library/Python/2.7/site-packages/pyglet/window/carbon/__init__.py", line 69, in <module>
    framework='/System/Library/Frameworks/QuickTime.framework')
  File "/Library/Python/2.7/site-packages/pyglet/lib.py", line 90, in load_library
    return self.load_framework(kwargs['framework'])
  File "/Library/Python/2.7/site-packages/pyglet/lib.py", line 226, in load_framework
    lib = ctypes.cdll.LoadLibrary(realpath)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/System/Library/Frameworks/QuickTime.framework/QuickTime, 6): no suitable image found.  Did find:
    /System/Library/Frameworks/QuickTime.framework/QuickTime: mach-o, but wrong architecture
    /System/Library/Frameworks/QuickTime.framework/QuickTime: mach-o, but wrong architecture

A:

Similar to above, installing my own did the trick best. I adapted the instructions I found on this site: http://twistedpairdevelopment.wordpress.com/2012/02/21/installing-pyglet-in-mac-os-x/
All I had to do was use pip to install direct from the repository.

pip install hg+https://pyglet.googlecode.com/hg/

Job Done.

