Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in config.json? #4423

Closed
duffreaper opened this issue Aug 20, 2016 · 12 comments
Closed

Error in config.json? #4423

duffreaper opened this issue Aug 20, 2016 · 12 comments

Comments

@duffreaper
Copy link

duffreaper commented Aug 20, 2016

Expected Behavior

The bot should start and read off the config.json

Actual Behavior

it won't read it

Your FULL config.json (remove your username, password, gmapkey and any other private info)

http://pastebin.com/qCXJE01n

Output when issue occurred

http://pastebin.com/d0Ywbqpr

Steps to Reproduce

not sure? i just installed it follow he installation directions and this happened

Other Information

OS:
windows 7
Branch:
?
Git Commit:
All are up to date

@josegrobles
Copy link

josegrobles commented Aug 20, 2016

Is the config file under the config folder? And if so what is its name?

@duffreaper
Copy link
Author

@josegrobles
Copy link

josegrobles commented Aug 20, 2016

Run it using the -cf flag like this

python pokecli.py -cf configs/config.json

@duffreaper
Copy link
Author

@josegrobles how?

@josegrobles
Copy link

Using cmd

@duffreaper
Copy link
Author

duffreaper commented Aug 20, 2016

@josegrobles output:
$ python pokecli.py -cf configs/config.json
Traceback (most recent call last):
File "pokecli.py", line 39, in
from pgoapi.exceptions import NotLoggedInException, ServerSideRequestThrottlingException, ServerBusyOrOfflineException
ImportError: No module named pgoapi.exceptions

@josegrobles
Copy link

I don't really use Windows so I don't know if this will work but try

source bin/activate

and then

python pokecli.py -cf configs/config.json

@duffreaper
Copy link
Author

no such directory for the first thing

@josegrobles
Copy link

ok then go back to try executing the Start.bat file or wait until someone who uses Windows help you.

@Gobberwart
Copy link
Contributor

ImportError: No module named pgoapi.exceptions

Suggests you haven't updated the requirements. Run the following at the command prompt

pip install -r .\requirements.txt --upgrade

@Gobberwart
Copy link
Contributor

I also note that you do not have a config.json file in your configs folder. What you actually have is a config.json.example file. Not the same thing.

You will need to open the config.json.example file, edit it as required (you will at least need your auth mode (ptc or google), username and password in there. Then save it as config.json (not config.json.example of config.json.txt).

Once you've done that, as well as updating the requirements, you should just be able to run it without any parameters and it should work fine.

python .\pokecli.py

Suggest you also read the documentation (in the docs folder) before asking any more questions, as this is all covered there.

@LuckyMe4Evers
Copy link
Contributor

Did you download the bot from github or did the installer the download?
Because with the installer you don't get the folder "PokemonGo-Bot-Master" but you get the folder "PokemonGo-Bot"

@k4n30 k4n30 closed this as completed Aug 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants