On 22/10/14 17:02, Haluk wrote:
Hi,

I've had this problem with several versions of OSX past 10.8 now, I hadn't used pyglet for about a year but when I came back to it I'm still encountering this issue. On OSX 10.9 or 10.10, when I do pyglet.gl.import *, I get a ctypes TypeError, as seen here:

|
Traceback (most recent call last):
  File "mainloc.py", line 3, in <module>
    from pyglet.gl import *
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyglet/gl/__init__.py", line 221, in <module>
    from .cocoa import CocoaConfig as Config
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyglet/gl/cocoa.py", line 15, in <module>
    from pyglet.canvas.cocoa import CocoaCanvas
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyglet/canvas/__init__.py", line 90, in <module>
    from pyglet.canvas.cocoa import CocoaDisplay as Display
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyglet/canvas/cocoa.py", line 15, in <module>
    from pyglet.libs.darwin.cocoapy import *
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyglet/libs/darwin/__init__.py", line 6, in <module>
    from .cocoapy import *
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyglet/libs/darwin/cocoapy/__init__.py", line 32, in <module>
    from .runtime import objc, send_message, send_super
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyglet/libs/darwin/cocoapy/runtime.py", line 1149, in <module>
    class DeallocationObserver_Implementation(object):
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyglet/libs/darwin/cocoapy/runtime.py", line 1150, in DeallocationObserver_Implementation DeallocationObserver = ObjCSubclass('NSObject', 'DeallocationObserver', register=False) File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyglet/libs/darwin/cocoapy/runtime.py", line 1050, in __init__
    self.objc_cls = create_subclass(superclass, name)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyglet/libs/darwin/cocoapy/runtime.py", line 603, in create_subclass
    superclass = get_class(superclass)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyglet/libs/darwin/cocoapy/runtime.py", line 402, in get_class
    return c_void_p(objc.objc_getClass(name))
ctypes.ArgumentError: argument 1: <class 'TypeError'>: wrong type
|

Is there any solution to this? The same code works on Windows but not OSX. I'm currently on 64 bit OSX 10.10, Python 3.4.2, pyglet 1.2.1a latest repository version.

Thanks

Can you find out where "name" comes from? Do you know if it runs under python 2.x?

Thanks,
Adam.

--
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to