sbrki / PiRadio

PiRadio is a small & lightweight python radio that is based on PiFM
6 stars 0 forks source link

new issue starting pi3 #2

Closed suxfuuu closed 6 years ago

suxfuuu commented 6 years ago

Thx for your fast reply, but now i'm getting this: I'm doing something wrong?

root@raspberrypi:/home/pi/Downloads/PiRadio-master/PiRadio# python3 PiRadio.py Loading - this may take a couple of seconds. Package 'mpg123' is already installed on this pi. Traceback (most recent call last): File "PiRadio.py", line 56, in PiFMprocess = subprocess.Popen(["./pifm","-",BROADCAST_FREQUENCY,"48000", "stereo"], stdin=music_pipe_r, stdout=dev_null) File "/usr/lib/python3.5/subprocess.py", line 676, in init restore_signals, start_new_session) File "/usr/lib/python3.5/subprocess.py", line 1282, in _execute_child raise child_exception_type(errno_num, err_msg) PermissionError: [Errno 13] Permission denied

sbrki commented 6 years ago

yes, you are not running the script as root. Run sudo python3 PiRadio.py. It also explicitly says that in the step 4 in Readme.

suxfuuu commented 6 years ago

yes i'm running as root root@raspberrypi:/home/pi/Downloads/PiRadio-master/PiRadio# python3 PiRadio.py

anyway

pi@raspberrypi:~/Downloads/PiRadio-master/PiRadio $ sudo python3 PiRadio.py Loading - this may take a couple of seconds. Package 'mpg123' is already installed on this pi. Traceback (most recent call last): File "PiRadio.py", line 56, in PiFMprocess = subprocess.Popen(["./pifm","-",BROADCAST_FREQUENCY,"48000", "stereo"], stdin=music_pipe_r, stdout=dev_null) File "/usr/lib/python3.5/subprocess.py", line 676, in init restore_signals, start_new_session) File "/usr/lib/python3.5/subprocess.py", line 1282, in _execute_child raise child_exception_type(errno_num, err_msg) PermissionError: [Errno 13] Permission denied pi@raspberrypi:~/Downloads/PiRadio-master/PiRadio $