Code: Select all
#!/bin/sh
# launcher.sh
# navigate to home directory, then to this directory, then execute python script, then back home
cd /
cd /home/pi/Desktop/Pianobar-Web
python pianobar_web.py
cd /I have tried making sure that python 2.7 is installed and up-to-date by using the command "apt-get install python2.7", but I already have the most recent version installed. Any help would be greatly appreciated.Error: 500 Internal Server Error
Sorry, the requested URL 'http://192.168.0.125:8080/auth' caused an error:
Internal Server Error
Exception:
OSError(2, 'No such file or directory')
Traceback:
Traceback (most recent call last):
File "/home/pi/Pianobar-Web/bottle.py", line 845, in _handle
return route.call(**args)
File "/home/pi/Pianobar-Web/bottle.py", line 1709, in wrapper
rv = callback(*a, **ka)
File "pianobar_web.py", line 67, in authenticate
proc = subprocess.Popen("pianobar", stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Thank you!