PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

python pokecli.py -cf ./configs/config.json error

Open cmorbaab opened this issue 10 years ago • 5 comments

I keep on getting this error when running the pokecli.py file

python pokecli.py -cf ./configs/config.json [22:35:45] PokemonGO Bot v1.0 [22:35:45] No config argument specified, checking for /configs/config.json Traceback (most recent call last): File "pokecli.py", line 417, in <module> main() File "pokecli.py", line 52, in main config = init_config() File "pokecli.py", line 117, in init_config load.update(json.load(data)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 290, in load **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads return _default_decoder.decode(s) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode obj, end = self.scan_once(s, idx) ValueError: Unterminated string starting at: line 174 column 7 (char 8537)

I looked over my json files and there were no errors there. Is there a way to fix this?

Other Information

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

cmorbaab avatar Jul 30 '16 19:07 cmorbaab

check your config.json jsonlint

JayJay1989 avatar Jul 30 '16 20:07 JayJay1989

It says "no config argument specified". maybe you have mistyped the command or argument or option. also post your config just to be safe?

sgitkene avatar Jul 30 '16 20:07 sgitkene

It turns out that my config.json file had a syntax error. I replaced it with file on git hub and it worked. Thanks.

cmorbaab avatar Jul 30 '16 20:07 cmorbaab

My json file doesn't work and that site says my file is valid.

CtrlAltDefeat94 avatar Jul 30 '16 21:07 CtrlAltDefeat94

go to the slack chatroom then in #help someone will help you setup the bot correctly closed: NOT A BUG

gregtampa avatar Jul 31 '16 07:07 gregtampa