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

ValueError: Expecting property name: line 60 column 7 (char 1324) #2280

Closed
dguillot opened this issue Aug 1, 2016 · 6 comments
Closed

ValueError: Expecting property name: line 60 column 7 (char 1324) #2280

dguillot opened this issue Aug 1, 2016 · 6 comments

Comments

@dguillot
Copy link

dguillot commented Aug 1, 2016

Expected Behavior

Should start Pokemon BOT

Actual Behavior

Traceback (most recent call last):
File "pokecli.py", line 452, in
main()
File "pokecli.py", line 53, in main
config = init_config()
File "pokecli.py", line 124, in init_config
load.update(json.load(data))
File "/usr/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 60 column 7 (char 1324)

Steps to Reproduce

Just pull the latest DEV branch, used the new config file example and changed my login info. When I run it, it fails.

pok1@pokebot1:~/PokemonGo-Bot$ git pull
remote: Counting objects: 81, done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 81 (delta 48), reused 35 (delta 35), pack-reused 12
Unpacking objects: 100% (81/81), done.
From https://github.com/PokemonGoF/PokemonGo-Bot
a9fd95b..eee7ba4 dev -> origin/dev
5df9610..b3c53ce feature/event-log -> origin/feature/event-log
Updating a9fd95b..eee7ba4
Fast-forward
CONTRIBUTORS.md | 2 ++
configs/config.json.example | 5 ++++-
pokecli.py | 1 -
pokemongo_bot/init.py | 41 +++++++++++++++++++++--------------------
pokemongo_bot/cell_workers/incubate_eggs.py | 2 +-
pokemongo_bot/cell_workers/move_to_fort.py | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
web | 2 +-
7 files changed, 91 insertions(+), 25 deletions(-)

@justinbeatz
Copy link

Replace MoveToFort section with this:

{
"type": "MoveToFort",
"config": {
"lure_attraction": true,
"lure_max_distance": 2000
}
},

@dguillot
Copy link
Author

dguillot commented Aug 1, 2016

it crashed after that pull.
According to the pull, there was some changes to configs/config.json.example | 5 ++++-

So I created a new config.json from it and put my login info and changed back to my settings:

"max_steps": 10,
"walk": 4,
"location_cache": false,
"release": {
"any": {"release_below_cp":20000, "release_below_iv": 0, "logic": "or"},

@dguillot
Copy link
Author

dguillot commented Aug 1, 2016

ok let me try this

@yihengli
Copy link

yihengli commented Aug 1, 2016

@justinbeatz
It works. They missed a bracket

@dguillot
Copy link
Author

dguillot commented Aug 1, 2016

@justinbeatz Give this man a raise! thx

@dguillot dguillot closed this as completed Aug 1, 2016
@thedewil
Copy link
Contributor

thedewil commented Aug 1, 2016

Created a PR to fix the issue with #2282

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