05-20-2024, 08:17 PM
(05-20-2024, 05:11 PM)Tim Curtis Wrote: Run it from the command line and the error info might be better.
Code:sudo /var/www/daemon/rotenc.py 100 2 3 24 23
Here is it:
Code:
pi@breaka:~ $ sudo /var/www/daemon/rotenc.py 100 2 3 24 23
/var/www/daemon/rotenc.py: 13: import: not found
/var/www/daemon/rotenc.py: 14: import: not found
/var/www/daemon/rotenc.py: 15: import: not found
/var/www/daemon/rotenc.py: 16: import: not found
/var/www/daemon/rotenc.py: 17: from: not found
/var/www/daemon/rotenc.py: 18: import: not found
/var/www/daemon/rotenc.py: 19: import: not found
/var/www/daemon/rotenc.py: 21: program_version: not found
/var/www/daemon/rotenc.py: 23: current_pos: not found
/var/www/daemon/rotenc.py: 24: last_pos: not found
/var/www/daemon/rotenc.py: 25: last_a_state: not found
/var/www/daemon/rotenc.py: 26: last_b_state: not found
/var/www/daemon/rotenc.py: 27: pin_a: not found
/var/www/daemon/rotenc.py: 28: pin_b: not found
/var/www/daemon/rotenc.py: 29: poll_interval: not found
/var/www/daemon/rotenc.py: 30: accel_factor: not found
/var/www/daemon/rotenc.py: 31: volume_step: not found
/var/www/daemon/rotenc.py: 32: print_debug: not found
/var/www/daemon/rotenc.py: 33: Syntax error: "(" unexpected