Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Not really programming - python calls in terminal not working.

Featured Replies

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.

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 by MAM59

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.