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

No JSON object could be decoded?

Open lifeofbolo opened this issue 10 years ago • 31 comments

skaermbillede 2016-07-30 kl 16 52 38 skaermbillede 2016-07-30 kl 16 55 41

lifeofbolo avatar Jul 30 '16 15:07 lifeofbolo

https://github.com/PokemonGoF/PokemonGo-Bot/wiki/No-JSON-object-could-be-decoded-or-decoder.py-error

Also some of your double quotes don't look right in the screenshot

mrthrowaway avatar Jul 30 '16 15:07 mrthrowaway

im getting this... skaermbillede 2016-07-30 kl 17 24 37

lifeofbolo avatar Jul 30 '16 15:07 lifeofbolo

Yes, you seem to be getting the double quotes wrong. Probably something your text editor does. Try copying the example file, and editing only the text inside the quotes

mrthrowaway avatar Jul 30 '16 15:07 mrthrowaway

@mrthrowaway whats the next step? :-D

skaermbillede 2016-07-30 kl 18 47 29

lifeofbolo avatar Jul 30 '16 16:07 lifeofbolo

python pokecli.py

mrthrowaway avatar Jul 30 '16 17:07 mrthrowaway

@mrthrowaway but what does this mean? skaermbillede 2016-07-30 kl 20 41 06

lifeofbolo avatar Jul 30 '16 18:07 lifeofbolo

Where is your config.json file? If its in a different location other than the default or if you've renamed it do python pokecli.py -cf path/to/config.json

mrthrowaway avatar Jul 30 '16 19:07 mrthrowaway

@mrthrowaway getting this now :-) whats next?

(PokemonGo-Bot) Kenneths-MacBook-Pro:PokemonGo-Bot kennethbolo$ python pokecli.py [2016-07-30 21:04:11] [x] PokemonGO Bot v1.0 [2016-07-30 21:04:11] [x] Configuration initialized [2016-07-30 21:04:11] [#] IMPORTANT: Rename and configure release_config.json.example for your Pokemon release logic first!

lifeofbolo avatar Jul 30 '16 19:07 lifeofbolo

IMPORTANT: Rename and configure release_config.json.example for your Pokemon release logic first!

That :P

mrthrowaway avatar Jul 30 '16 19:07 mrthrowaway

change it back to config.json.example?

lifeofbolo avatar Jul 30 '16 19:07 lifeofbolo

nope. you'll find a file named release_config.json.example, change it to release_config.json

mrthrowaway avatar Jul 30 '16 19:07 mrthrowaway

@mrthrowaway I'm getting this now.

[2016-07-30 22:33:51] [x] PokemonGO Bot v1.0 [2016-07-30 22:33:51] [x] Configuration initialized [2016-07-30 22:33:51] [x] The location given using -l could not be parsed. Checking for a cached location. [2016-07-30 22:33:53] Login Error, server busy

lifeofbolo avatar Jul 30 '16 20:07 lifeofbolo

Login error happens when the pokemon go servers are busy. If you location isn't recognized, you could try entering the latitude and longitude manually

mrthrowaway avatar Jul 31 '16 05:07 mrthrowaway

@mrthrowaway I managed to run it. By cloning and adding the Google generated password. But how do i set it up with the web ui?

lifeofbolo avatar Jul 31 '16 09:07 lifeofbolo

git submodule init
git submodule update
cd web
<edit userdata.js or config/userdata.js depending on what version you're on>
python -m SimpleHTTPServer

And browse to http://localhost:8000

mrthrowaway avatar Jul 31 '16 10:07 mrthrowaway

@mrthrowaway should i run it in a new terminal window? or in the same terminal as pokecli.py?

right now i'm running it in this order.

  • cd pokemongo-bot
  • virtualenv .
  • source bin/activate
  • pip install -r requirements.txt
  • python pokecli.py

lifeofbolo avatar Jul 31 '16 10:07 lifeofbolo

run it separately

mrthrowaway avatar Jul 31 '16 10:07 mrthrowaway

@mrthrowaway do i need to download openpogoweb-master first? i'm getting this message

  • Kenneths-MacBook-Pro:OpenPoGoWeb-master kennethbolo$ git submodule init fatal: Not a git repository (or any of the parent directories): .git

lifeofbolo avatar Jul 31 '16 11:07 lifeofbolo

git submodule command should be run inside PokemonGo-Bot

mrthrowaway avatar Jul 31 '16 11:07 mrthrowaway

@mrthrowaway So what order should i put git submodule in?

cd pokemongo-bot virtualenv . source bin/activate

  • git submodule? pip install -r requirements.txt python pokecli.py

lifeofbolo avatar Jul 31 '16 11:07 lifeofbolo