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

Error: No /configs/config.json or specified config

Open htugsdr opened this issue 10 years ago • 20 comments

I keep getting when i try to run the bot

$ python pokecli.py -cf ./configs/config.json -a "ptc" 2016-08-07 20:10:38,270 [ cli] [INFO] PokemonGO Bot v1.0 2016-08-07 20:10:38,271 [ cli] [INFO] Error: No /configs/config.json or specified config Username: flambam Password: Traceback (most recent call last): File "pokecli.py", line 501, in main() File "pokecli.py", line 132, in main raise e IOError: [Errno 22] Invalid argument

OS: mac osx Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here) Python Version: (run 'python -V' and paste it here)

htugsdr avatar Aug 07 '16 10:08 htugsdr

screen shot 2016-08-07 at 20 11 14

htugsdr avatar Aug 07 '16 10:08 htugsdr

don't use a ./

python pokecli.py -cf configs/config.json -a "ptc"

ColdSunERA avatar Aug 07 '16 10:08 ColdSunERA

thats what i have it my folder idk why it cant find it

htugsdr avatar Aug 07 '16 10:08 htugsdr

just tried what you suggested it still got the same thing

htugsdr avatar Aug 07 '16 10:08 htugsdr

python pokecli.py -cf configs/config.json

Philipp59 avatar Aug 07 '16 10:08 Philipp59

cheers philipp59 but still got this: $ python pokecli.py -cf configs/config.json 2016-08-07 20:25:35,466 [ cli] [INFO] PokemonGO Bot v1.0 2016-08-07 20:25:35,468 [ 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

htugsdr avatar Aug 07 '16 10:08 htugsdr

pokecli.py: error: argument -a/--auth_service is required

maybe its missing in your config? without -a it should be in your config

Philipp59 avatar Aug 07 '16 10:08 Philipp59

screen shot 2016-08-07 at 20 28 25 i have that in the config.json

htugsdr avatar Aug 07 '16 10:08 htugsdr

i havent touched any other .json.x.examples if that changes anything nor have i tampered with path.example.json

htugsdr avatar Aug 07 '16 11:08 htugsdr

Same error here on Mag OS X.

boreip avatar Aug 07 '16 11:08 boreip

bildschirmfoto 2016-08-07 um 13 04 49

check this pls under properties whether its really .json

Philipp59 avatar Aug 07 '16 11:08 Philipp59

yes it is screen shot 2016-08-07 at 20 37 56

htugsdr avatar Aug 07 '16 11:08 htugsdr

and just python pokecli.py ? Maybe if you are using config.json you do not need -cf, but its really strange at all

Philipp59 avatar Aug 07 '16 11:08 Philipp59

with just python pokecli.py i still get the same thing: $ python pokecli.py 2016-08-07 20:42:07,670 [ cli] [INFO] PokemonGO Bot v1.0 2016-08-07 20:42:07,672 [ 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

htugsdr avatar Aug 07 '16 11:08 htugsdr

maybe set the whole bot new up ? : D or try git pull and pip install --upgrade -r requirements.txt

Philipp59 avatar Aug 07 '16 11:08 Philipp59

I'm having the exact same issue when using google as authenticator.

"Traceback (most recent call last): File "pokecli.py", line 501, in main() File "pokecli.py", line 132, in main raise e ValueError: Invalid control character at: line 3 column 50 (char 81)"

jbwettergreen avatar Aug 07 '16 11:08 jbwettergreen

okay how am i gonna go about uninstalling everything because upgrading the bot hasnt worked for me either

htugsdr avatar Aug 07 '16 11:08 htugsdr

just copy your encrypt.so and config.json out then delete the rest and paste them in after new installation.

$ git clone --recursive -b dev https://github.com/PokemonGoF/PokemonGo-Bot  
$ cd PokemonGo-Bot  
$ virtualenv .  
$ source bin/activate  
$ pip install -r requirements.txt

Philipp59 avatar Aug 07 '16 11:08 Philipp59

okay ill give it a try

htugsdr avatar Aug 07 '16 11:08 htugsdr

okay found i was editing files in a completely wrong folder and i wasnt even in the actual root directory so just make sure you are editing the right folder peeps. its all g now.

htugsdr avatar Aug 07 '16 14:08 htugsdr