Sono in esecuzione Mac OS X Mountain Lion, con Python 2.7. Ho fatto un'installazione sorgente di Pyglet che sembrava andare senza errori, ma ogni volta che provo a eseguire un programma ottengo un errore piuttosto lungo che non capisco. Sembra che abbia qualcosa a che fare con QuickTime ??Cercando di usare Pyglet - cosa significa questo errore?
Ogni programma che ho provato dà lo stesso errore. I programmi che ho provato in esecuzione sono gli esempi che è venuto nella fonte e l'esempio qui: http://guzalexander.com/2012/08/17/playing-a-sound-with-python.html
L'errore che ottengo dice:
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
Penso che la risposta di @ user1740200 meriti di essere accettata come soluzione, perché attualmente funziona. –