Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in the line read_config() #25

Open
codeproteam opened this issue Dec 5, 2015 · 3 comments
Open

error in the line read_config() #25

codeproteam opened this issue Dec 5, 2015 · 3 comments

Comments

@codeproteam
Copy link

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
Copy link

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
#25.

@in-sympathy
Copy link

yep, same here, any ideas?

@npon97
Copy link

npon97 commented Jun 7, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants