Hi all, I cloned the github repository of cocos2d-x and followed the instructions in the README, and all went smoothly. But when invoking “cocos” in the cmd/terminal (since I have the same error in both mac and windows), this error is thrown:
Traceback (most recent call last):
File “/Users/nmesselmani/Documents/GameDev/SDK/cocos2D-x/tools/cocos2d-console/bin/cocos.py”, line 22, in
import cocos_project
File “/Users/nmesselmani/Documents/GameDev/SDK/cocos2D-x/tools/cocos2d-console/bin/cocos_project.py”, line 4, in
import cocos
File “/Users/nmesselmani/Documents/GameDev/SDK/cocos2D-x/tools/cocos2d-console/bin/cocos.py”, line 874, in
language, encoding = locale.getlocale()
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py”, line 562, in getlocale
return _parse_localename(localename)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py”, line 475, in _parse_localename
raise ValueError, ‘unknown locale: %s’ % localename
ValueError: unknown locale: UTF-8
What can I do to make cocos work?
Thank you all.
