Trouble installing cocos2d on OS X Lion

51 views
Skip to first unread message

Cyph0n

unread,
Dec 23, 2011, 8:07:44 PM12/23/11
to cocos2d discuss
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.

Joseph Marlin

unread,
Dec 27, 2011, 9:36:54 AM12/27/11
to cocos-...@googlegroups.com
Do you have setuptools installed? (http://pypi.python.org/pypi/setuptools)

If so, you can just do 'easy_install cocos2d'. That is how I installed, although I am only on Windows and Linux.

Joseph Marlin

unread,
Dec 27, 2011, 9:37:54 AM12/27/11
to cocos-...@googlegroups.com
Although looking at your errors, maybe installing Quicktime would work?

Joseph Marlin

unread,
Dec 27, 2011, 9:41:04 AM12/27/11
to cocos-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages