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

cannot run

Open mrwing1 opened this issue 10 years ago • 12 comments

Traceback (most recent call last): File "pokecli.py", line 119, in main() File "pokecli.py", line 107, in main bot.start() File "/Users/test/Downloads/PokemonGo-Bot-dev/pokemongo_bot/init.py", line 26, in start self._setup_api() File "/Users/test/Downloads/PokemonGo-Bot-dev/pokemongo_bot/init.py", line 93, in _setup_api inventory_dict = inventory_req['responses']['GET_INVENTORY']['inventory_delta']['inventory_items'] KeyError: 'GET_INVENTORY'

mrwing1 avatar Jul 22 '16 22:07 mrwing1

please help

mrwing1 avatar Jul 22 '16 22:07 mrwing1

now its Traceback (most recent call last): File "pokecli.py", line 120, in main() File "pokecli.py", line 108, in main bot.start() File "/Users/test/Downloads/PokemonGo-Bot-dev 2/pokemongo_bot/init.py", line 26, in start self._setup_api() File "/Users/test/Downloads/PokemonGo-Bot-dev 2/pokemongo_bot/init.py", line 116, in _setup_api self.get_player_info() File "/Users/test/Downloads/PokemonGo-Bot-dev 2/pokemongo_bot/init.py", line 300, in get_player_info nextlvlxp = (int(playerdata['next_level_xp']) - int(playerdata['experience'])) KeyError: 'experience'

mrwing1 avatar Jul 22 '16 22:07 mrwing1

Not enough information to help us understand. Are you running latest dev version?

douglascamata avatar Jul 22 '16 22:07 douglascamata

here full start [x] PokemonGO Bot v1.0 [x] Configuration initialized

[x] Address found: XXXXXXXX [x] Position in-game set as: (XXXXXXXX)

Traceback (most recent call last): File "pokecli.py", line 120, in main() File "pokecli.py", line 108, in main bot.start() File "/Users/test/Downloads/PokemonGo-Bot-dev 2/pokemongo_bot/init.py", line 26, in start self._setup_api() File "/Users/test/Downloads/PokemonGo-Bot-dev 2/pokemongo_bot/init.py", line 96, in _setup_api player = response_dict['responses']['GET_PLAYER']['player_data'] KeyError: 'GET_PLAYER'

mrwing1 avatar Jul 22 '16 22:07 mrwing1

basicly it crashes few secs after start

mrwing1 avatar Jul 22 '16 22:07 mrwing1

help me pls

mrwing1 avatar Jul 22 '16 22:07 mrwing1

hellooß?

mrwing1 avatar Jul 22 '16 22:07 mrwing1

I have the same errror as mrwing1

[x] PokemonGO Bot v1.0 [x] Configuration initialized

[x] Address found: XXXXXXXX [x] Position in-game set as: (XXXXXXXX)

Traceback (most recent call last): File "pokecli.py", line 120, in main() File "pokecli.py", line 108, in main bot.start() File "/Users/test/Downloads/PokemonGo-Bot-dev 2/pokemongo_bot/init.py", line 26, in start self.setup_api() File "/Users/test/Downloads/PokemonGo-Bot-dev 2/pokemongo_bot/_init.py", line 96, in _setup_api player = response_dict['responses']['GET_PLAYER']['player_data'] KeyError: 'GET_PLAYER'`

carminaburana123 avatar Jul 22 '16 23:07 carminaburana123

Same error here.

tgeselle avatar Jul 22 '16 23:07 tgeselle

Please, recreate your environment from scratch. Clone dev branch again and use virtualenv to avoid environment mess.

douglascamata avatar Jul 22 '16 23:07 douglascamata

Can anyone write a guide as if we never worked with a computer before. I tried everything but nothing seemed to work

What i did:

Can anyone write a guide as if we never worked with a computer before. I tried everything but nothing seemed to work

This is what I have done so far

  1. download latest version of Python 2.7 (Python2.7)

  2. Download and install latest version of GIT (GIT)

  3. Installing virtualenv (I used this script:)

    C:\Python27\Scripts\pip install virtualenv
    
  4. Using following script to install PokemonGo-Bot

    git clone -b master https://github.com/PokemonGoF/PokemonGo-Bot 
    cd PokemonGo-Bot 
    C:\Python27\Scripts\virtualenv venv
    source bin/activate 
    C:\Python27\Scripts\pip install -r requirements.txt
    PAUSE
    
  5. This is what I get returned I see some things are not as they should be (the line source bin/activate gives an error)

    C:\PokemonGo>git clone -b master https://github.com/PokemonGoF/PokemonGo-Bot
    Cloning into 'PokemonGo-Bot'...
    remote: Counting objects: 1996, done.
    remote: Compressing objects: 100% (49/49), done.
    remote: Total 1996 (delta 18), reused 0 (delta 0), pack-reused 1946
    Receiving objects: 100% (1996/1996), 903.03 KiB | 775.00 KiB/s, done.
    Resolving deltas: 100% (1077/1077), done.
    Checking connectivity... done.
    
    C:\PokemonGo>cd PokemonGo-Bot
    
    C:\PokemonGo\PokemonGo-Bot>C:\Python27\Scripts\virtualenv venv
    New python executable in C:\PokemonGo\PokemonGo-Bot\venv\Scripts\python.exe
    Installing setuptools, pip, wheel...done.
    
    C:\PokemonGo\PokemonGo-Bot>source bin/activate
    'source' is not recognized as an internal or external command,
    operable program or batch file.
    
    C:\PokemonGo\PokemonGo-Bot>C:\Python27\Scripts\pip install -r requirements.txt
    Requirement already satisfied (use --upgrade to upgrade): geopy==1.11.0 in c:\python27\lib\site-packages (from -r requirements.txt (line 1))
    Requirement already satisfied (use --upgrade to upgrade): protobuf==2.6.1 in c:\python27\lib\site-packages (from -r requirements.txt (line 2))
    Requirement already satisfied (use --upgrade to upgrade): requests==2.10.0 in c:\python27\lib\site-packages (from -r requirements.txt (line 3))
    Requirement already satisfied (use --upgrade to upgrade): s2sphere==0.2.4 in c:\python27\lib\site-packages (from -r requirements.txt (line 4))
    Requirement already satisfied (use --upgrade to upgrade): gpsoauth==0.3.0 in c:\python27\lib\site-packages (from -r requirements.txt (line 5))
    Requirement already satisfied (use --upgrade to upgrade): protobuf-to-dict==0.1.0 in c:\python27\lib\site-packages (from -r requirements.txt (line 6))
    Requirement already satisfied (use --upgrade to upgrade): googlemaps==2.4.4 in c:\python27\lib\site-packages (from -r requirements.txt (line 7))
    Requirement already satisfied (use --upgrade to upgrade): setuptools in c:\python27\lib\site-packages (from protobuf==2.6.1->-r requirements.txt (line 2))
    Requirement already satisfied (use --upgrade to upgrade): future in c:\python27\lib\site-packages (from s2sphere==0.2.4->-r requirements.txt (line 4))
    Requirement already satisfied (use --upgrade to upgrade): pycryptodomex>=3.0 in c:\python27\lib\site-packages (from gpsoauth==0.3.0->-r requirements.txt (line 5))
    
    C:\PokemonGo\PokemonGo-Bot>PAUSE
    Press any key to continue . . .
    
  6. The next step is running the program. I wrote a script for that 2. ALthough i know there is a fault in the previous step.

    "C:\Python27\python.exe" pokecli.py -a google -u [email protected] -p mypassword -l "162 Regent Street, London" -c 50 -w 3.33 -m all
    pause
    
  7. The result:

    C:\PokemonGo\PokemonGo-Bot>"C:\Python27\python.exe" pokecli.py -a google -u [email protected] -p mypassword -l "162 Regent Street, London" -c 50 -w 3.33 -m all
    [x] Initializing PokemonGO Bot v1.0
    [x] PokemonGo Bot [@PokemonGoF | @eggins | @crack00r | @ethervoid | /r/pokemongodev]
    usage: pokecli.py [-h] -a AUTH_SERVICE -u USERNAME -p PASSWORD -l LOCATION
                      [-s] [-v] [-w WALK] [-c CP] [-k GMAPKEY]
                      [--maxsteps MAXSTEPS] [-d] [-t] [-tl TRANSFER_LIST]
    pokecli.py: error: unrecognized arguments: -m all
    
    C:\PokemonGo\PokemonGo-Bot>pause
    Press any key to continue . . .
    

carminaburana123 avatar Jul 23 '16 07:07 carminaburana123

@carminaburana123 You are running with the master branch instead of the dev branch for the -m all flag. Can you please double check that? Please feel free the open a new issue when necessary as this is now a different error as @mrwing1 is having.

@mrwing1 I assume your issue is resolved as there is no further correspondence.

JulianMBr avatar Jul 23 '16 21:07 JulianMBr