PokemonGoF / PokemonGo-Bot

The Pokemon Go Bot, baking with community.
MIT License
3.86k stars 1.54k forks source link

No JSON object could be decoded? #1864

Closed lifeofbolo closed 8 years ago

lifeofbolo commented 8 years ago
skaermbillede 2016-07-30 kl 16 52 38 skaermbillede 2016-07-30 kl 16 55 41
mrthrowaway commented 8 years ago

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

lifeofbolo commented 8 years ago

im getting this...

skaermbillede 2016-07-30 kl 17 24 37
mrthrowaway commented 8 years ago

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

lifeofbolo commented 8 years ago

@mrthrowaway whats the next step? :-D

skaermbillede 2016-07-30 kl 18 47 29
mrthrowaway commented 8 years ago

python pokecli.py

lifeofbolo commented 8 years ago

@mrthrowaway but what does this mean?

skaermbillede 2016-07-30 kl 20 41 06
mrthrowaway commented 8 years ago

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

lifeofbolo commented 8 years ago

@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!

mrthrowaway commented 8 years ago

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

That :P

lifeofbolo commented 8 years ago

change it back to config.json.example?

mrthrowaway commented 8 years ago

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

lifeofbolo commented 8 years ago

@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

mrthrowaway commented 8 years ago

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

lifeofbolo commented 8 years ago

@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?

mrthrowaway commented 8 years ago
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

lifeofbolo commented 8 years ago

@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.

mrthrowaway commented 8 years ago

run it separately

lifeofbolo commented 8 years ago

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

mrthrowaway commented 8 years ago

git submodule command should be run inside PokemonGo-Bot

lifeofbolo commented 8 years ago

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

cd pokemongo-bot virtualenv . source bin/activate

mrthrowaway commented 8 years ago

cd path/to/PokemonGo-Bot git submodule init git submodule update cd web <edit userdata.js or config/userdata.js depending on what version you're on> The above bit only needs to be done the first time To start the web interface, cd path/to/PokemonGo-Bot/web python -m SimpleHTTPServer

This is run separately from your bot, presumably in another terminal window/tab

lifeofbolo commented 8 years ago

@mrthrowaway is this correct? i'm getting a blank screen on my localhost.

skaermbillede 2016-07-31 kl 16 11 21 skaermbillede 2016-07-31 kl 16 13 29
mrthrowaway commented 8 years ago

you need to run the server from inside the web directory

lifeofbolo commented 8 years ago

@mrthrowaway u mean the OpenPoGoWeb-master this is the current state, what did i miss?

skaermbillede 2016-07-31 kl 16 51 15
mrthrowaway commented 8 years ago

If you followed the installation instructions, you end up with the PokemonGo-Bot/ directory with the web/ directory inside it.

If your OpenPoGoWeb directory is named something other than web or located elsewhere, you'll have to rename it to web and move it inside the bot directory

lifeofbolo commented 8 years ago

@mrthrowaway now its running a blank screen on the web ui

skaermbillede 2016-07-31 kl 17 24 20
mrthrowaway commented 8 years ago

Umm. Did you install the bot using git like the installation instructions said or did you download a zip file?

lifeofbolo commented 8 years ago

@mrthrowaway now i am getting this?

skaermbillede 2016-07-31 kl 17 46 21
mrthrowaway commented 8 years ago

At this point, I'd just start over and go through the installation instructions step by step

https://github.com/PokemonGoF/PokemonGo-Bot/wiki/Installation

At the end, you will have the directory named PokemonGo-Bot from where you run the bot, and a web directory inside that from where you run the web interface.

If you still have issues, join the Slack chanel at https://pokemongo-bot.herokuapp.com/ Someone with more experience with MacOS may be able to help you there

mrthrowaway commented 8 years ago

Regarding the error you last posted https://github.com/PokemonGoF/PokemonGo-Bot/issues/2082

lifeofbolo commented 8 years ago

thank you very much 👍