I recompiled from the source here instead of what is on the site, but
now I get a Quartz error because I'm not using the system python.
Traceback (most recent call last):
File "opengl_3.py", line 34, in <module>
config = pyglet.gl.Config(major_version=3, minor_version=0)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/
lib/python2.7/site-packages/pyglet/__init__.py", line 340, in
__getattr__
__import__(import_name)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/
lib/python2.7/site-packages/pyglet/gl/__init__.py", line 220, in
<module>
from cocoa import CocoaConfig as Config
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/
lib/python2.7/site-packages/pyglet/gl/cocoa.py", line 11, in <module>
from pyglet.libs.darwin import *
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/
lib/python2.7/site-packages/pyglet/libs/darwin/__init__.py", line 7,
in <module>
from Quartz import *
ImportError: No module named Quartz
I have pyobjc and pyobjc-cocoa in my macports python. Has anyone been
able to use Pyglet with a macports python 2.7?
On Oct 4, 1:58 am, David Byrd <[email protected]> wrote:
> I've recently compiled Pyglet on Lion, but there seems to be some sort
> of issue with Quicktime. Whenever I try to do anything with Pyglet,
> like running an example, I get this error message:
>
> Traceback (most recent call last):
> File "graphics.py", line 50, in <module>
> from pyglet.gl import *
> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/
> lib/python2.7/site-packages/pyglet/gl/__init__.py", line 510, in
> <module>
> import pyglet.window
> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/
> lib/python2.7/site-packages/pyglet/window/__init__.py", line 1669, in
> <module>
> from pyglet.window.carbon import CarbonPlatform, CarbonWindow
> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/
> lib/python2.7/site-packages/pyglet/window/carbon/__init__.py", line
> 69, in <module>
> framework='/System/Library/Frameworks/QuickTime.framework')
> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/
> lib/python2.7/site-packages/pyglet/lib.py", line 90, in load_library
> return self.load_framework(kwargs['framework'])
> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/
> lib/python2.7/site-packages/pyglet/lib.py", line 226, in
> load_framework
> lib = ctypes.cdll.LoadLibrary(realpath)
> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/
> lib/python2.7/ctypes/__init__.py", line 431, in LoadLibrary
> return self._dlltype(name)
> File "/opt/local/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'm using a macports python and I have installed pyglet using the
> standard 'python setup.py install'. Any ideas?
--
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.