Hello, I’m trying to run a Python script on Windows, but I encountering an error:
2024-12-19 17:17:11.931 INFO exec: C:UsersdsilvaAppDataLocalProgramsPythonPython313 -m venv ./venvs/testeExactSales
2024-12-19 17:17:11.938 INFO execAndWait - Error: Cannot invoke “java.lang.Process.waitFor()” because “this.process” is null
2024-12-19 17:17:11.941 INFO Python environment preparation failed.
2024-12-19 17:17:11.941 INFO Error executing task: Python environment preparation failed.
2024-12-19 17:17:18.168 INFO Waiting new tasks
Hello,
Which version of Runner are you using? If you are not using version 3.1.2. I suggest you update, this version has some fixes that improve execution performance.
Another point, I must sell that you are using version 3.13 of Python which is still recent, so we always recommend 1 or 2 versions older than the most recent, in our case, 3.11.x or 3.12.x, because some dependencies may not exist 100 % in Python version 3.13.
From the log, apparently, Runner is not recognizing slashes in the python path.
Do the following, access the Runner configuration file (conf.bcf) found in the BotCity SDK conf
folder, and open it as edit.
Include the line, passing through the Python path of your environment:
pythonBinary=C:\\Users\\your_user\\AppData\\Local\\Programs\\Python\\Python312\\python.exe
or
pythonBinary="C:\\Users\\your_user\\AppData\\Local\\Programs\\Python\\Python312\\python.exe"
- Save the
conf.bcf
file. - Delete the
testExactSales
folder located in the./venvs/
folder of the BotCity SDK, and try running again.
If the problem persists, send it to us here or log.txt again.
Thanks Livia , I put path complete to pythonBinary and this works.