Python starter bot broken configuration

The python starter bot has [“botLanguage”: “python3”] but it should be [“botLanguage”: “python”] to work with the language types as specified in game-runner/src/main/java/za/co/entelect/challenge/enums/BotLanguage.java

After this change the python bot gives the following error:
File “PythonStarterBot.py”, line 218
self.command = f’shoot {direction}’
^
SyntaxError: invalid syntax
Bot process failed
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404) ~[game-runner-4.0.0-jar-with-dependencies.jar:?]
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48) ~[game-runner-4.0.0-jar-with-dependencies.jar:?]
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200) ~[game-runner-4.0.0-jar-with-dependencies.jar:?]
at java.lang.Thread.run(Thread.java:834) ~[?:?]

seems like the bot runner is using ‘/usr/bin/python’ instead of ‘/usr/bin/python3’.

This is reminiscent of an issue experienced last year with Python on Windows vs. Python on Linux. Python bot fails on new update

Hi @Leon. The runner only uses python command for Linux and py -3 command for windows. However, this is clearly not catering for all the cases.

We have created an issue for this on our side and will try to include a step in the runner to resolve the correct python command to use.

The issue can be found here: https://github.com/EntelectChallenge/2019-Worms/issues/13