My RPi runs a Raspian wheezy, and I've got python 3.2 installed. I'd like to run this script to make my RPi transmit FM: https://github.com/Make-Magazine/PirateRadio.
git clone https://github.com/Make-Magazine/PirateRadio.git and attempted to start the script with python3.2.
Edit: I got some error messages due to a misplaced
pirateradio.conf, which were solved by the answer below, but I have new error messages now, possibly to a misconfigured
pifm by unzipping the contents of http://omattos.com/pifm.tar.gz into a folder named
pifm and moving it to
/root/pifm. Now, when I
sudo python3.2 PirateRadio.py, I get the following:
File "PirateRadio.py", line 176, in <module> main() File "PirateRadio.py", line 31, in main setup() File "PirateRadio.py", line 150, in setup run_pifm() File "PirateRadio.py", line 156, in run_pifm fm_process = subprocess.Popen(["/root/pifm","-",str(frequency),"44100", "stereo" if play_stereo else "mono"], stdin=music_pipe_r, stdout=dev_null) File "/usr/lib/python3.2/subprocess.py", line 745, in __init__ restore_signals, start_new_session) File "/usr/lib/python3.2/subprocess.py", line 1371, in _execute_child raise child_exception_type(errno_num, err_msg) OSError: [Errno 13] Permission denied
Why is the OS not granting permission, to which process, and what can I do to make it run smoothly?