Leverz Posted August 2, 2022 Share Posted August 2, 2022 Hi, I done the upgrade to 6.10.3, and since then all my python scripts have stopped working. I have tried using Nerd Tools to update the python packs, but still on the terminal python is responding bash: python: command not found bash: python: command not found I can enter the python environment with python3. Just for clarification, I'm trying to run python /in/this/directory/myscript.py Any help would be great, as the all my cron and manual jobs are based around python calls. Quote Link to comment
MAM59 Posted August 3, 2022 Share Posted August 3, 2022 (edited) try "python3" instead of outdated "python" also, after a reboot, it takes some time for the nerdpack to reastablish python availablity. I use a "wait for nerdpack" script in my /boot/config/go file like #!/usr/bin/bash cd /boot/config/optional cp -r RGB /usr/local/bin cd /usr/local/bin/RGB while ! [ -x /usr/bin/python3 ] do sleep 30 done i have the python scripts in /boot/config/optional/RGB and once this wait script has finished, i lauch them with: #!/usr/bin/bash while true do python3 temperature.py echo Wrapper wartet sleep 30 done (this wrapper is needed because the script may lose network connection and has to be restarted after a grace period) (the rename to python3 is not a mistake, python3 needs different syntaxes on many commands, it is very likely that your scripts need some updates too. So the name change prevents you to run untested outdated scripts) Edited August 3, 2022 by MAM59 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.