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

NameError: global name 'cos' is not defined

Open YourATowel opened this issue 10 years ago • 1 comments

[#] Scanning area for objects (1 / 25) Traceback (most recent call last): File "pokecli.py", line 120, in main() File "C:\Users\User\PokemonGo-Bot\pokecli.py", line 117, in main bot.take_step() File "C:\Users\User\PokemonGo-Bot\bot.py", line 29, in take_step self.stepper.take_step() File "C:\Users\User\PokemonGo-Bot\stepper.py", line 39, in take_step self.api.walk(self.config.walk, *position,walking_hook=self.walking_hook) File "C:\Users\User\PokemonGo-Bot\pgoapi\pgoapi.py", line 114, in walk dist = distance(i2f(self._position_lat), i2f(self._position_lng), lat, lng) File "C:\Users\User\PokemonGo-Bot\pgoapi\utilities.py", line 46, in distance a = 0.5 - cos((lat2 - lat1) * p)/2 + cos(lat1 * p) * cos(lat2 * p) * (1 - cos((lon2 - lon1) * p)) / 2 NameError: global name 'cos' is not defined

YourATowel avatar Jul 22 '16 06:07 YourATowel

#126

Tadelsucht avatar Jul 22 '16 06:07 Tadelsucht