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

Need help running the program #3114

Closed
Ballermocha opened this issue Aug 8, 2016 · 9 comments
Closed

Need help running the program #3114

Ballermocha opened this issue Aug 8, 2016 · 9 comments

Comments

@Ballermocha
Copy link

Expected Behavior

I followed the instructions and type "python ./pokecli.py -cf=./configs/config.json" to run the program.

Actual Behavior

There are errors:

PokemonGO Bot v1.0
Traceback (most recent call last):
File "./pokecli.py", line 502, in
main()
File "./pokecli.py", line 133, in main
raise e
ValueError: No JSON object could be decoded

Steps to Reproduce

Other Information

OS: Mac
Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)
Python Version: 2.7.12

@djadstar
Copy link

djadstar commented Aug 8, 2016

Try python pokecli.py

@hklcf
Copy link
Contributor

hklcf commented Aug 8, 2016

python pokecli.py -cf configs/config.json

@ErrorFlexXx
Copy link

Please check if the config file config.json actually exists. If not edit config.json.example and save it as config.json in the "configs" directory.

@Ballermocha
Copy link
Author

I edited the config.json.example with my info and saved it as config.json, but the issue still there. I've also tried the dev version. Here are the errors:

PokemonGO Bot v1.0
Traceback (most recent call last):
File "pokecli.py", line 503, in
main()
File "pokecli.py", line 62, in main
config = init_config()
File "pokecli.py", line 170, in init_config
load.update(json.load(data))
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

@hklcf
Copy link
Contributor

hklcf commented Aug 8, 2016

ValueError: No JSON object could be decoded

@ColdSunERA
Copy link

As mentioned by hklcf, you're specifying the config incorrectly.

"python ./pokecli.py -cf=./configs/config.json"
should be
"python ./pokecli.py -cf configs/config.json"

@zviper13579
Copy link

Im getting the same error even when I use python ./pokecli.py -cf configs/config.json. Config.json exists. Could My edits in Config.json be causing a problem, not allowing it to decode?

@jeffbye
Copy link

jeffbye commented Aug 8, 2016

Usually it's a screwed up "slanted" quotation mark when I get this. TextEdit on OSX creates them by default, so scour through your file and see if you can find any.

@Ballermocha
Copy link
Author

Thanks I fixed it. There was a syntax error.

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

7 participants