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

Location not working anymore

Open rihago opened this issue 10 years ago • 18 comments

Expected Behavior

The location goes to something totally different in the latest dev build.

[13:20:42] Location Found: 52.950018, 4.720312 [13:20:42] GeoPosition: (4632648869851188800, 4617000617268456024, 0)

13:20:47] Scanning area for objects.... [13:20:47] Walking from (4886673896525898506, 4886673881602561921) to [4.886426067231582e+18, 4.886410785734919e+18] 14639.71km Traceback (most recent call last): File "pokecli.py", line 291, in main() File "pokecli.py", line 257, in main bot.tick() File "/Users/harmhartsuiker/Documents/PokemonGo-Bot/pokemongo_bot/init.py", line 65, in tick self.navigator.take_step() File "/Users/harmhartsuiker/Documents/PokemonGo-Bot/pokemongo_bot/spiral_navigator.py", line 85, in take_step point['lng'] File "/Users/harmhartsuiker/Documents/PokemonGo-Bot/pokemongo_bot/cell_workers/utils.py", line 40, in distance return 12742 * asin(sqrt(a)) * 1000 ValueError: math domain error

Actual Behavior

Steps to Reproduce

Other Information

OS: Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)

rihago avatar Jul 28 '16 11:07 rihago

+1 atm with the latest commit the bot jumps out of the world xD

Jojo1910 avatar Jul 28 '16 11:07 Jojo1910

I read in another thread to simply pip install -r requirements.txt again, which worked for me.

BScreen avatar Jul 28 '16 11:07 BScreen

I'm working with the latest dev branch and it run smoothly .. :/

ericksuryadinata avatar Jul 28 '16 11:07 ericksuryadinata

I'm getting the same thing too. Commit 15a034427d805e0bacb79fc0a1f3c96a6c93f0e3 broke this.

skorokithakis avatar Jul 28 '16 11:07 skorokithakis

Oh i know why we must update the pgoapi xD sry fail

Jojo1910 avatar Jul 28 '16 11:07 Jojo1910

Yep, updating pgoapi fixes that for me as well.

skorokithakis avatar Jul 28 '16 11:07 skorokithakis

@skorokithakis: Which commit?

Cause mine have a few issues:

[12:36:31] Scanning area for objects....
[12:36:31] Walking from (4886674138783273204, 4886674138783273204) to [4.886674138783273e+18, 4.886674138783273e+18] 0.00km

[12:36:32] Scanning area for objects....
[12:36:32] Walking from (4.886674138783273e+18, 4.886674138783273e+18) to [4.886674138783273e+18, 4.886674138783273e+18] 0.00km

[12:36:33] Scanning area for objects....
[12:36:33] Walking from (4.886674138783273e+18, 4.886674138783273e+18) to [4.886674138783273e+18, 4.886674138783273e+18] 0.00km

gpires avatar Jul 28 '16 11:07 gpires

How do i update the pgo-Api?

beranPro avatar Jul 28 '16 11:07 beranPro

same issues as @gpires here

beranPro avatar Jul 28 '16 11:07 beranPro

run pip install -r requirements.txt --upgrade

Jojo1910 avatar Jul 28 '16 11:07 Jojo1910

@beranPro as I said before try pip install -r requirements.txt and see if that works

BScreen avatar Jul 28 '16 11:07 BScreen

it doesn't work. I've got the same output as @gpires above

beranPro avatar Jul 28 '16 11:07 beranPro

I set

"location_cache": false,

And now its working. Its a workaround, but location cache needs to be checked.

Edit: Delete data/last-location-USERNAME.json as @cwild said is the proper solution

gpires avatar Jul 28 '16 11:07 gpires

I'm done with fresh install :D

ericksuryadinata avatar Jul 28 '16 11:07 ericksuryadinata

thanks @gpires

setting location_cache false worked!

beranPro avatar Jul 28 '16 11:07 beranPro

Deleting data/last-location-USERNAME.json should do the trick too.

cwild avatar Jul 28 '16 11:07 cwild

I confirm that deleting data/last-location-* fix the problem.

arnaudgs avatar Jul 28 '16 12:07 arnaudgs

Solution above. Closing this.

/closed

AdaptCharm avatar Jul 29 '16 19:07 AdaptCharm