On Fri, Aug 11, 2017 at 3:30 AM, Dragonfly king <[email protected]> wrote:
> my env is win7 x64 and python3.6,write the first line ‘import cocos’ > ,the first time throw a error > ‘OSError: exception: access violation reading 0x0000000000000000’ > and after the first time ,it throw an error > ‘NameError: name 'base' is not defined’ > error locate in the file ‘__init__.py’ > > its' really dispoints me that stacking at the very beginning > > > Are you running a script , say, 'mysample.py" or are you live typing in some console (python console, some IDE console) ? To discern if there is some problem in your installation,the best would be to run from a cmd console one of the cocos samples / tests To that end, - download the source package from https://pypi.python.org/pypi/cocos2d - decompress to a convenient location, the top dir will be cocos2d-0.6.4 - the html docs will be in cocos2d-0.6.4/doc/html - useful code samples will be in cocos2d-0.6.4/test, cocos2d-0.6.4/samples, cocos2d-0.6.4/utest - open a command terminal, cd to cocos2d-0.6.4/test - in the terminal issue a py -3.6 test_sprite.py You should see a new window with a black background and a character roughly at window center. Is that what you see? If you got a traceback, please show it here in the mailing list. Paste the full traceback, please. -- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/cocos-discuss. For more options, visit https://groups.google.com/d/optout.
