Make-Magazine / PirateRadio

Raspberry Pi Automated FM Radio Script
459 stars 156 forks source link

error in the line read_config() #25

Open codeproteam opened 8 years ago

codeproteam commented 8 years ago

What exactly the path should be? should it be config_location = "/pirateradio/PirateRadio.conf/ ? are we supposed to create a directory pirateradio under root and move the conf file over there?

the error we are getting is:

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'

any help would be appreciated !

palletorsson commented 8 years ago

Maybe not: play_stereo = config.get("pirateradio", "stereo_playback',fallback=True) Instead: play_stereo = config.get("pirateradio", "stereo_playback",fallback=True) ?

On Sat, Dec 5, 2015 at 11:09 AM, Sathish Gnanaprakasam < notifications@github.com> wrote:

What exactly the path should be? should it be config_location = "/pirateradio/PirateRadio.conf/ ? are we supposed to create a directory pirateradio under root and move the conf file over there?

the error we are getting is:

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'

any help would be appreciated !

— Reply to this email directly or view it on GitHub https://github.com/Make-Magazine/PirateRadio/issues/25.

in-sympathy commented 6 years ago

yep, same here, any ideas?

npon97 commented 6 years ago

I think this particular error is because the keyword fallback does not exist in older versions of python. When I run this with python 3 the " unexpected keyword argument 'fallback' " doesn't show. try running it on python3 with python3 PirateRadio.py