PokemonGo-Bot: bot wont boot up : ValueError: Expecting property name

Expected Behavior

start normally

Actual Behavior

-> # sudo python pokecli.py -cf ./configs/config.json
[06:46:21] PokemonGO Bot v1.0
Traceback (most recent call last):
  File "pokecli.py", line 250, in <module>
    main()
  File "pokecli.py", line 229, in main
    config = init_config()
  File "pokecli.py", line 57, in init_config
    load.update(json.load(data))
  File "/usr/lib/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 22 column 7 (char 607)

Steps to Reproduce

git clone latest build on dev branch doing initial step edit the config.json file

Other Information

OS: Debian x64_86 Git Commit: c4c34875c7af8d8ffdcc18e76b0ea0f0146c2422

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 24 (2 by maintainers)

Commits related to this issue

Most upvoted comments

I’ve been following this thread and after cleaning the catch and release keys I used the command posted by @mehdi-S sudo python pokecli.py -cf ./configs/config.json and now everything seems to be working fine 👍

@mehdi-S you have a malformed son in the configuration. Check for commas

I committed fix, please test.