Hello!

I found out about cocos2d for Python recently and decided to give it a
go by following the docs available online. However, the docs doesn't
seem to cover the installation process properly, which is why I'm
here.

As interacted, I installed pyglet 1.1.4 first, and then downloaded the
latest cocos2d source and ran the usual "python setup.py install" in
terminal. No errors occurred during the installation, yet when I tried
to import cocos2d in the Python interpreter, multiple errors popped-
up, preventing it from running.

The errors:

File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/site-packages/cocos2d-0.5.0-py2.7.egg/cocos/__init__.py",
line 105, in <module>
    import_all()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/site-packages/cocos2d-0.5.0-py2.7.egg/cocos/__init__.py",
line 89, in import_all
    import actions
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/site-packages/cocos2d-0.5.0-py2.7.egg/cocos/actions/
__init__.py", line 37, in <module>
    from basegrid_actions import *
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/site-packages/cocos2d-0.5.0-py2.7.egg/cocos/actions/
basegrid_actions.py", line 62, in <module>
    from pyglet.gl import *
  File "build/bdist.macosx-10.6-intel/egg/pyglet/gl/__init__.py", line
510, in <module>
  File "build/bdist.macosx-10.6-intel/egg/pyglet/window/__init__.py",
line 1669, in <module>
  File "build/bdist.macosx-10.6-intel/egg/pyglet/window/carbon/
__init__.py", line 69, in <module>
  File "build/bdist.macosx-10.6-intel/egg/pyglet/lib.py", line 90, in
load_library
  File "build/bdist.macosx-10.6-intel/egg/pyglet/lib.py", line 226, in
load_framework
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/ctypes/__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
  File "/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

It would be great if someone knowledgeable could help me with this
problem. Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" 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/cocos-discuss?hl=en.

Reply via email to