Closed Linkje closed 8 months ago
The application is hardcoded to check /pirateradio/pirateradio.conf
. If you go into the PirateRadio.py file and change line 17 to wherever you placed the config file it should work correctly. If that is not the problem and the config file is located in /pirateradio/
then you need to check pirateradio.conf
and confirm that the [pirateradio]
block is unaltered.
Alternatively you can place the files into the /pirateradio
directory as defined in the script.
I get this problem:
Traceback (most recent call last) :
File "/pirateradio/PirateRadio.py", line 180, in
I don't know what's wrong, HELP!!!
i got this error when executing PirateRadio.py
pi@raspberrypi:~/PirateRadio $ python PirateRadio.py Traceback (most recent call last): File "PirateRadio.py", line 180, in main() File "PirateRadio.py", line 35, in main setup() File "PirateRadio.py", line 152, in setup read_config() File "PirateRadio.py", line 97, in read_config play_stereo = config.get("pirateradio", 'stereo_playback', fallback=True) TypeError: get() got an unexpected keyword argument 'fallback' pi@raspberrypi:~/PirateRadio $
what should i do ?
try some of the tips from this issue, https://github.com/Make-Magazine/PirateRadio/issues/13
I'm getting an error when running the script for the first time. I tried it on a Raspberry Pi B and a B+ and I get the same error.
Traceback (most recent call last): File "PirateRadio.py", line 176, in
main()
File "PirateRadio.py", line 31, in main
setup()
File "PirateRadio.py", line 148, in setup
read_config()
File "PirateRadio.py", line 94, in read_config
frequency = config.get("pirateradio",'frequency')
File "/usr/local/lib/python2.7/dist-packages/backports/configparser/init.py", line 786, in get
d = self._unify_values(section, vars)
File "/usr/local/lib/python2.7/dist-packages/backports/configparser/init.py", line 1164, in _unify_values
raise NoSectionError(section)
backports.configparser.NoSectionError: No section: 'pirateradio'
What am i doing wrong. I didn't change anything to the code.