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

python can't find config.json

Open thundertoast opened this issue 10 years ago • 4 comments

Hi there, completely new to this stuff.

When I try to run the pokecli.py with python, I get an error stating "There's no ./configs/config.json file" even though I have a config.json file in the configs folder. Any help would be appreciated.

thundertoast avatar Aug 07 '16 04:08 thundertoast

you likely don't have it in .json format.

on Mac - right click get info and see if it still has something on the end to remove. On PC Save As and choose all files and make sure its .json

leadboots5 avatar Aug 07 '16 04:08 leadboots5

OK thank you!

thundertoast avatar Aug 07 '16 04:08 thundertoast

I'm on Mac but it says under name and extension "config.json" and when I hide the extension it just becomes "config"

thundertoast avatar Aug 07 '16 04:08 thundertoast

Check that the path is actually correct, if you're running it on the main project directory it should be "configs/config.json".

By running python pokecli.py It takes the configs/config.json file as the default configuration.

If you are struggling with this, you could run python pokecli.py -cf "p:/ath/to/your/file.json" This way you can use a custom path and filename :)

pablossp avatar Aug 07 '16 05:08 pablossp