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

(MASTER) struct.error: integer out of range for 'Q' format code

Open YvesHenri opened this issue 10 years ago • 6 comments

Bot was working flawlessly for a whole day. At night, when I got home, poped up an egg to evolve some pokes and got it to bot again. I'm not sure if that was the problem, but...

Expected Behavior

Log in, set position then start walking/hunting/spinning

Actual Behavior

Log in, set position and crash immediately

Steps to Reproduce

self.api._position_lat = 42.3358578 self.api._position_lng = -83.050096

Other Information

OS: Windows 10 Git Commit: 03f1b428e8781b8c4aa35d1cd6a305fc13bbaff7 Stack trace: File "pokecli.py", line 220, in main() File "pokecli.py", line 211, in main bot.take_step() File "SOME_PATH\master\pokemongo_bot__init__.py", line 36, in take_step self.stepper.take_step() File "SOME_PATH\master\pokemongo_bot\stepper.py", line 53, in take_step self._walk_to(self.config.walk, *position) File "SOME_PATH\master\pokemongo_bot\stepper.py", line 66, in _walk_to dist = distance(i2f(self.api._position_lat), i2f(self.api._position_lng), lat, lng) File "SOME_PATH\master\pokemongo_bot\cell_workers\utils.py", line 99, in i2f return struct.unpack('<d', struct.pack('<Q', int))[0] struct.error: integer out of range for 'Q' format code

YvesHenri avatar Jul 30 '16 12:07 YvesHenri

Same error here on master branch. 55390cfd7fcedace99c2c3d372b3790ef5b7cfd7

Erody avatar Jul 30 '16 13:07 Erody

Theyre basically the same version. 55390cf has just changed the git's README.md.

YvesHenri avatar Jul 30 '16 13:07 YvesHenri

duplicate of #1042

mako-taco avatar Jul 30 '16 15:07 mako-taco

It's happening on master. The solution listed in your link shows to upgrade to the dev branch, which isnt what I'm looking for.

"Please upgrade to the latest dev branch by running this command"

YvesHenri avatar Jul 30 '16 15:07 YvesHenri

right, but it's worth noting that we're probably seeing the same issue which was seen before!

mako-taco avatar Jul 30 '16 15:07 mako-taco

This showed up for me after trying out the Dev stream. I was able to get around this by re-running a few commands from the installation manual:

pip2 install -r requirements.txt git submodule init git submodule update

steveplusplus avatar Aug 01 '16 00:08 steveplusplus