axmolengine / axmol

Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A fork of Cocos2d-x-4.0)
https://axmol.dev
MIT License
922 stars 205 forks source link

cant create a new project #1055

Closed 10100010010001001010 closed 1 year ago

10100010010001001010 commented 1 year ago

image

i can't create a new project, after creation command, or just typing "axmol" in cmd, i get this error from the screenshot above

aismann commented 1 year ago

Ist this working? axmol new -p org.axmol.hellocpp -d D:\dev\projects\ -l cpp --portrait HelloCpp

aismann commented 1 year ago

This have to adapt maybe: D:\dev\projects\

10100010010001001010 commented 1 year ago

No, its doesnt work. I get the same error

aismann commented 1 year ago

You have the correct Python Version?

10100010010001001010 commented 1 year ago

image

I'm not shure about 3.11 version. But in the description shows the version from 3.7 and above

rh101 commented 1 year ago

Try making python 3.11.2 the default for the "py" and "python" commands. If you're not sure how, then check this: https://stackoverflow.com/questions/5087831/how-should-i-set-default-python-version-in-windows.

EDIT: I just did a test, and re-installed python 3.11.2 (from here), and it correctly put it ahead of any other versions of python without any further effort on my end. Try that out as well.

10100010010001001010 commented 1 year ago

thanks, it worked. Is it possible to explicitly specify which version of python will be used?

rh101 commented 1 year ago

thanks, it worked. Is it possible to explicitly specify which version of python will be used?

I'm not sure. Perhaps @halx99 can answer that question.

halx99 commented 1 year ago

The python2 support should be dropped

rh101 commented 1 year ago

The python2 support should be dropped

That's a good idea, and all mention of Python 2 should be removed from the setup instructions so there is no confusion. The source of the problem for the OP in this thread seemed to be a bad installation of Python 3, and had nothing to do with Axmol.

halx99 commented 1 year ago

Done https://github.com/axmolengine/axmol/commit/bc69b3e33afa086864dbea53f1f9db40b94e9c7e