问答详情
源自:2-2 Cocos2d-x游戏开发贪吃蛇之开发环境搭建

新建工程时报错

Traceback (most recent call last):

  File "cocos.py", line 1056, in <module>

    if not _check_python_version():

  File "cocos.py", line 984, in _check_python_version

    print(MultiLanguage.get_string('COCOS_PYTHON_VERSION_TIP_FMT') % (major_ver, minor_ver))

  File "E:\迅雷下载\cocos2d-x-3.17.1\tools\cocos2d-console\bin\MultiLanguage.py", line 52, in get_string

    fmt = cls.get_instance().get_current_string(key)

  File "E:\迅雷下载\cocos2d-x-3.17.1\tools\cocos2d-console\bin\MultiLanguage.py", line 46, in get_instance

    cls.instance = MultiLanguage()

  File "E:\迅雷下载\cocos2d-x-3.17.1\tools\cocos2d-console\bin\MultiLanguage.py", line 97, in __init__

    self.cfg_info = json.load(f, encoding='utf-8')

  File "C:\Program Files\Python 3.5\lib\json\__init__.py", line 265, in load

    return loads(fp.read(),

UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 30893: illegal multibyte sequence


提问者:慕妹7118130 2019-05-19 19:05

个回答