When running a code: "[Client thread/INFO]: [CHAT] Could not start python: […] "
Happily raised this error today when first trying the mod out by typping "/python test"
[Client thread/INFO]: [CHAT] Could not start python: Cannot run program "python" (in directory "[…]\minecraft\mcpimods\python"): CreateProcess error=2, The system cannot find the file specified
I guessed it was because I didn't have Python added to the PATH. So I typed "setx PATH C:\Python34" in a terminal.
I haven't rebooted Minecraft yet but I'll update this issue as soon as I can to tell you if it fixed the issue. Hoping this will fix it but some newbies might not understand the error and know what to do to fix it, so there ya go.
Yes that was it!
Now, but that is another matter, I wonder what python/test.py is supposed to do. I converted it to Py3 (as its code was, with no doubts, for Py2) but still can't get it to work.
It seems that previously it expected something to be in sys.argv[1](but what?) but this "thing" isn't there anymore, thus raising an IndexError on line 6.
(Also it didn't find cStringIO but as the module isn't used in the code anyway, I just commented it out)
I'm also asking because I'm gonna do a pull request when I finish updating the examples scripts to work both under Python2 and 3.
In my Raspberry Jam Mod repository, there is now a binary blob zip file of the scripts for python2 and another for python3. While I'm developing with python2, from now my packaging scripts will autogenerate python3 scripts with 2to3. I am not testing the python3 scripts actively, though I did test one or two of them. The scripts should work with mcpiapi just as well as with Raspberry Jam Mod.