error: argument -a/--auth_service is required
Expected Behavior
Bot to launch after entering python pokecli.py in terminal
Actual Behavior
Terminal returns error message (PokemonGo-Bot) Bens-MBP-2:PokemonGo-Bot BenSun$ python pokecli.py -cf configs/config.json usage: pokecli.py [-h] [-cf CONFIG] -a AUTH_SERVICE [-u USERNAME] [-p PASSWORD] [-l LOCATION] [-lc LOCATION_CACHE] [-m MODE] [-w WALK] [-k GMAPKEY] [-ms MAX_STEPS] [-it INITIAL_TRANSFER] [-d DEBUG] [-t TEST] [-du DISTANCE_UNIT] [-if ITEM_FILTER] [-ev EVOLVE_ALL] [-ec EVOLVE_CAPTURED] pokecli.py: error: argument -a/--auth_service is required
Steps to Reproduce
### Other Information
OS: OSX Sierra Beta
Does your config.json have the "auth_service" value filled in?
Yeah. Here is a pic of it

Hmm.
Sorry, but I can't tell from the screencap; is there a comma after auth_service" (and every other JSON entry)?
Like the following:
"auth_service": "google",
"username": "[email protected]",
"password": "somepassword",
"location": "43.639557, -79.375932",
"gmapkey": "somekey",
You're missing the comma lol.
I went back and added it and it still returned the error.
What happens with
python pokecli.py -cf configs/config.json -a "google"
@PraeceptorXS I'd make sure your config.json is properly saved then start a new shell and try running the script. Running the script explicitly with the '-a' param should also be interesting to see how it returns.
(PokemonGo-Bot) Bens-MBP-2:PokemonGo-Bot BenSun$ python pokecli.py -cf configs/config.json -a "google" usage: pokecli.py [-h] [-cf CONFIG] pokecli.py: error: unrecognized arguments: -a google
Ok.
No, leave out the 'cf configs/config.json' if you're going to explicitly authenticate from the shell.
You're also pulling from the dev branch, which includes the latest version but can be unstable (IIRC). Have you tried pulling from the master branch to see if you saw this same issue?
Yeah. I've used both branches and it always returns the same error.
Authenticating is very straightforward. Try running 'python pokecli.py -a google -u -p'
It says unrecognized argument. I put my username and password after the -u and -p
I have the same issues when using docker
Same here
Well, I tried running the bot on a different computer. Now I'm getting this error.
PokemonGo-Bot) Graces-iMac-216:PokemonGo-Bot GraceXu$ python pokecli.py
[11:19:51] PokemonGO Bot v1.0
[11:19:51] No config argument specified, checking for /configs/config.json
Traceback (most recent call last):
File "pokecli.py", line 294, in
Ok I think I figured it out. First, make sure the config.json in your PokemonGo-Bot is named correctly and formatted correctly. Autocorrect messed up some quotes and that was what was messing stuff up. Also, make sure that the config.json is a valid json.
Glad to caught it. Seems like the issue was very trivial.