"Python exec is not exist" when creating new project in Cocos Studio

682 Views Asked by At

I've just started with Cocos2D gaming engine. I was following the official documentation to setup my machine for the development. Everything went smoothly, but when I tried to create a new project, it fails with an error message stating

Python exec is not exist

I'm not sure if I understand this. I tried searching the problem on the Internet but the only place I found relevant questions were on Chinese forums where the translate option doesn't help much.

  • How do I resolve this issue?

EDIT

I followed the steps described in below link under section Appendix B, Which describes the entire setup of cocos2D-x.

http://www.cocos2d-x.org/programmersguide/B/index.html

Then I downloaded Cocos Studio to start on development. Clicked file->New Project as shown in the figure. And, upon clicking finish I get the described error (See the screenshot).

enter image description here

1

There are 1 best solutions below

1
On BEST ANSWER

I also experienced the same problem but found no direct solution. However, there exist a workaround.

The GUI tools provided in Cocos Studio are very unpredictable and should not be trusted. The application crushed randomly, fails to create projects without proper warnings or debug messages and so on. So here is what do to:

To create new projects, drop to command line and use the cocos new command. I assume you can set all the environment variable to make this process as painless as possible.

cocos new -h

will give all the info. For example, to create a new c++ project called AwesomeGame at a folder C:\Projects\AwesomeGame, you can type:

cocos new -l cpp -d c:\projects\AwesomeGame -p com.gamestudio.AwesomeGame AwesomeGame

After creating the project via cocos new, you can now open Cocos Studio to edit your Scenes, Nodes, Animations, Sprites and all the usual stuff. You will never meet the

"Python exec is not exist" error.