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

Add requirement validation before starting

Open ITAYC0HEN opened this issue 10 years ago • 7 comments

Expected Behavior

executing ./run.sh should work

Actual Behavior

crashing after login successfuly.

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

http://pastebin.com/yTzFeMiG

Output when issue occurred

http://pastebin.com/tUSaxAYa

Steps to Reproduce

Other Information

OS: Debian 4.3.3 Branch: master Git Commit: 56339fba1ba7f77a0275078ea0cf7a73e60c2ed0 Python Version: Python 2.7.12

ITAYC0HEN avatar Aug 29 '16 22:08 ITAYC0HEN

Looks like your API is out of date. Please try: pip install -r requirements.txt --upgrade

Also, try the dev branch. We recently added some code to handle certain utf8 errors.

mjmadsen avatar Aug 30 '16 06:08 mjmadsen

I have the same error -___-

Ryuspb avatar Aug 30 '16 08:08 Ryuspb

The real error is here: [2016-08-29 18:08:40] [sentry.errors.uncaught] [ERROR] [u'TypeError: call() takes exactly 1 argument (2 given)', u' File "pokecli.py", line 768, in ', u' File "pokecli.py", line 207, in main', u' File "pokecli.py", line 253, in report_summary', u' File "pokemongo_bot/metrics.py", line 109, in capture_stats', u' File "pokemongo_bot/api_wrapper.py", line 239, in call', u' File "pokemongo_bot/api_wrapper.py", line 188, in _call']

Has nothing to do with UTF8

DBa2016 avatar Aug 30 '16 09:08 DBa2016

I have the same error only with one of my accounts, I think it is a new response to the "Permaban".

sediyama avatar Aug 30 '16 13:08 sediyama

I have the same error only with one of my accounts, I think it is a new response to the "Permaban".

I have tried other accs, did not help...

Ryuspb avatar Aug 30 '16 13:08 Ryuspb

I solved the problem! I was updated according to the instructions:

git pull git submodule update --init --recursive git submodule foreach git pull origin master source bin/activate (-- do not skip this step --) pip install -r requirements.txt --upgrade pip install -r requirements.txt

You must have "Successfully installed php api-1.1.8"

Ryuspb avatar Aug 30 '16 13:08 Ryuspb

I'm going to leave this up as a a FR because this happens a whole lot.

Can we make a change to the methods in which we start the bot to always ensure we're using the correct versions in our requirements? If not we crash and tell the user to execute our updated.

mjmadsen avatar Aug 30 '16 15:08 mjmadsen