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

location json never gets created

Open IanCass opened this issue 10 years ago • 4 comments

Expected Behavior

Map should update with current location

Actual Behavior

Map does not update with current location

Steps to Reproduce

Do fresh install. Follow instructions.

Other Information

The cause is this this line in stepper.py

if os.path.isfile(user_web_location):

The user location file in the web directory never gets created. If you create an empty file byhand, then everything springs into life.

IanCass avatar Jul 28 '16 17:07 IanCass

This is a known issue. Simple workaround is to manually touch the file as you stated.

sangwon04 avatar Jul 28 '16 17:07 sangwon04

Thanks, I'm exactly searching for this answer :+1:

guokan-shang avatar Jul 29 '16 00:07 guokan-shang

Need to create 'web/location-%s.json' 'data/last-location-%s.json'

Where %s - email of trainer Maybe add check in pokecli.py?

retraut avatar Jul 29 '16 00:07 retraut

Indeed, it seems that here: https://github.com/PokemonGoF/PokemonGo-Bot/blob/master/pokemongo_bot/stepper.py#L110

The file is only opened if it already exists (isfile test)

Gregwar avatar Jul 29 '16 00:07 Gregwar