los-cocos / cocos

graphic library for games and multimedia, for python language on PC-like hardware
http://los-cocos.github.io/cocos-site/
Other
633 stars 146 forks source link

import error #313

Closed flylzj closed 6 years ago

flylzj commented 6 years ago

I install cocos2d, and when i import cocos, EOFError happeded -78515e8d3fd6b357

ccanepa commented 6 years ago

Looks like a pyglet problem related to future.

What happens if, in the same conditions (same current working dir, same python interpreter,...) in the python console

´´´´ import os import pyglet pyglet.resource.path.append( os.path.join(os.path.dirname(os.path.realpath(file)), "resources") ) pyglet.resource.reindex() ´´´ Be sure to use the same CWD as in your previous test, 'future' sometimes import unexpected things in the CWD

flylzj commented 6 years ago

Thank you, it just suddenly work but i don't know why : )