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

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

Open Jenishpoke opened this issue 10 years ago • 5 comments

Expected Behavior

Bot starts running.

Actual Behavior

Traceback (most recent call last): File "pokecli.py", line 220, in main() File "pokecli.py", line 211, in main bot.take_step() File "C:\Users\USER\Desktop\PokemonGO\PoGo Bot\PokemonGo-Bot\pokemongo_bot__init__.py", line 36, in take_step self.stepper.take_step() File "C:\Users\USER\Desktop\PokemonGO\PoGo Bot\PokemonGo-Bot\pokemongo_bot\stepper.py", line 53, in take_step self._walk_to(self.config.walk, *position) File "C:\Users\USER\Desktop\PokemonGO\PoGo Bot\PokemonGo-Bot\pokemongo_bot\stepper.py", line 67, in _walk_to i2f(self.api._position_lat), i2f(self.api._position_lng), lat, lng) File "C:\Users\USER\Desktop\PokemonGO\PoGo Bot\PokemonGo-Bot\pokemongo_bot\cell_workers\utils.py", line 98, in i2f return struct.unpack('<d', struct.pack('<Q', int))[0] struct.error: integer out of range for 'Q' format code

Steps to Reproduce

C:\Python27\python pokecli.py -cf config

Other Information

OS: Windows 10 Git Commit: 3aca6d798f8a3e173dce0beb7b13c9505cc5b251

Jenishpoke avatar Jul 26 '16 20:07 Jenishpoke

My bad this is the same issue as #1401

Jenishpoke avatar Jul 26 '16 20:07 Jenishpoke

I'm having the same issue and cannot find #1401

kriswong avatar Jul 26 '16 22:07 kriswong

solved: change the first line of requirements.txt to this: -e git+https://github.com/tejado/[email protected]#egg=pgoapi

and run pip install -r requirements.txt again

4thelols avatar Jul 26 '16 22:07 4thelols

Doing this as a fix cause other issues and causes the 1 hour death of the bot. If this is fixed by reverting to old code another fix is needed for Issue #1092

kriswong avatar Jul 27 '16 02:07 kriswong

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

git reset --hard
git pull -f

Then run this command: pip install --upgrade -r requirements.txt

If issue persists, open a new issue.

/closed

AdaptCharm avatar Jul 29 '16 19:07 AdaptCharm