Runs fine for me on Mountain Lion. I bet you had Pyglet 1.1.4 installed, instead of 1.2 -- because 1.2 uses Cocoa, not Carbon any more.
~ Nathan On Mon, Mar 25, 2013 at 6:59 AM, Lin <[email protected]> wrote: > window = pyglet.window.Window() > File "/Library/Python/2.7/site-packages/pyglet/__init__.py", line 306, > in __getattr__ > __import__(import_name) > 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 > > I am using OS Mountain Lion. > > The helloworld.py is the original file provided by > examples/programming_guide/hello_world.py<http://www.pyglet.org/doc/programming_guide/hello_world.py> > . > > -- > You received this message because you are subscribed to the Google Groups > "pyglet-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/pyglet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyglet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
