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

Not starting, docker. Following guide

Open Sharingisnotillegal opened this issue 10 years ago • 7 comments

c:\pokemongo\PokemonGo-Bot>docker run --name=pokego-bot1 --rm -it -v /configs/config.json:/usr/src/app/configs/config.json pokemongo-bot 2016-08-10 11:17:32,388 [ cli] [INFO] PokemonGO Bot v1.0 2016-08-10 11:17:32,391 [ cli] [INFO] Error: No /configs/config.json or specified config usage: pokecli.py [-h] [-cf CONFIG] -a AUTH_SERVICE [-u USERNAME] [-ws WEBSOCKET.SERVER_URL] [-wss WEBSOCKET.START_EMBEDDED_SERVER] [-wsr WEBSOCKET.REMOTE_CONTROL] [-p PASSWORD] [-l LOCATION] [-lc LOCATION_CACHE] [--forts.spin FORTS.SPIN] [-w WALK] [-k GMAPKEY] [-e SHOW_EVENTS] [-d DEBUG] [-t TEST] [-du DISTANCE_UNIT] [-ec EVOLVE_CAPTURED] [-rt RECONNECTING_TIMEOUT] [-hr HEALTH_RECORD] [-ac FORTS.AVOID_CIRCLES] [-mcs FORTS.MAX_CIRCLE_SIZE] [--catch_randomize_reticle_factor CATCH_RANDOMIZE_RETICLE_FACTOR] [--catch_randomize_spin_factor CATCH_RANDOMIZE_SPIN_FACTOR] [--map_object_cache_time MAP_OBJECT_CACHE_TIME] pokecli.py: error: argument -a/--auth_service is required

Sharingisnotillegal avatar Aug 10 '16 11:08 Sharingisnotillegal

You need to put a configuration file at configs/config.json.

If you have docker-compose, you can simply do docker-compose up --build.

lawliet89 avatar Aug 11 '16 10:08 lawliet89

I have same problem. I use docker for windows this my command docker run --name=bot1-pokego --rm -it -v /c/Users/xxx/PokemoGo-Bot/configs/config.json:/usr/src/app/configs/config.json pokemongo-bot

thementos avatar Aug 15 '16 03:08 thementos

Sorry, I changed the Dockerfile recently and didn't update the documentation.

Use -v /some/path/PokemoGo-Bot/configs:/usr/src/app/configs instead.

Relevant line: https://github.com/PokemonGoF/PokemonGo-Bot/blob/dev/Dockerfile#L4

lawliet89 avatar Aug 15 '16 05:08 lawliet89

I have same error Mentos@MENTOS-NB C:\Users\Mentos\PokemonGo-Bot $ docker run --name=bot1-pokego --rm -it -v /C/Users/Mentos/PokemonGo-Bot/configs:/usr/src/app/configs pokemon-bot 2016-08-15 09:42:53,770 [ cli] [INFO] PokemonGO Bot v1.0 2016-08-15 09:42:53,773 [ cli] [INFO] Error: No /configs/config.json or specified config usage: pokecli.py [-h] [-cf CONFIG] -a AUTH_SERVICE [-u USERNAME] [-ws WEBSOCKET.SERVER_URL] [-wss WEBSOCKET.START_EMBEDDED_SERVER] [-wsr WEBSOCKET.REMOTE_CONTROL] [-p PASSWORD] [-l LOCATION] [-lc LOCATION_CACHE] [--forts.spin FORTS.SPIN] [-w WALK] [-k GMAPKEY] [-e SHOW_EVENTS] [-d DEBUG] [-t TEST] [-du DISTANCE_UNIT] [-rt RECONNECTING_TIMEOUT] [-hr HEALTH_RECORD] [-ac FORTS.AVOID_CIRCLES] [-mcs FORTS.MAX_CIRCLE_SIZE] [-crf FORTS.CACHE_RECENT_FORTS] [--map_object_cache_time MAP_OBJECT_CACHE_TIME] [--logging_color LOGGING_COLOR] [-cte CATCH_THROW_PARAMETERS.EXCELLENT_RATE] [-ctg CATCH_THROW_PARAMETERS.GREAT_RATE] [-ctn CATCH_THROW_PARAMETERS.NICE_RATE] [-ctm CATCH_THROW_PARAMETERS.NORMAL_RATE] [-cts CATCH_THROW_PARAMETERS.SPIN_SUCCESS_RATE] pokecli.py: error: argument -a/--auth_service is required

thementos avatar Aug 15 '16 09:08 thementos

Can you ls the contents of /C/Users/Mentos/PokemonGo-Bot/configs please? By default, it expects the configuration file to be called config.json.

lawliet89 avatar Aug 15 '16 09:08 lawliet89

Mentos@MENTOS-NB C:\Users\Mentos\PokemonGo-Bot $ dir /c/Users/Mentos/PokemonGo-Bot/configs Invalid switch - "Users".

and in power shell

PS C:\Users\Mentos\PokemonGo-Bot> ls /C/Users/Mentos/PokemonGo-Bot/configs ls : Cannot find path 'C:\C\Users\Mentos\PokemonGo-Bot\configs' because it does not exist. At line:1 char:1

  • ls /C/Users/Mentos/PokemonGo-Bot/configs
  • - CategoryInfo          : ObjectNotFound: (C:\C\Users\Mentos\PokemonGo-Bot\configs:String) [Get-ChildItem], ItemNo
      tFoundException
    - FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
    
    

PS C:\Users\Mentos\PokemonGo-Bot>

thementos avatar Aug 15 '16 09:08 thementos

finally i find solution for mount dirctory I use docker for windows (not toolbox). I must set docker to share drive by config on docker setting like this link https://rominirani.com/docker-on-windows-mounting-host-directories-d96f3f056a2c#.c599qlb3z

I think this can close issue

thementos avatar Aug 15 '16 15:08 thementos