location json never gets created
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.
This is a known issue. Simple workaround is to manually touch the file as you stated.
Thanks, I'm exactly searching for this answer :+1:
Need to create 'web/location-%s.json' 'data/last-location-%s.json'
Where %s - email of trainer Maybe add check in pokecli.py?
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)