Closed oalmali closed 8 years ago
Same here, restart fixes it temporarily.
There seems to be something crashing which creates this ...
2016-08-07 15:01:01,978 [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Poliwag appeared! [CP 436] [Potential 0.38] [S/A/D 4/8/5]
2016-08-07 15:01:05,608 [PokemonCatchWorker] [INFO] [threw_pokeball] Used Greatball, with chance 42.96 (1 left)
2016-08-07 15:01:06,356 [PokemonCatchWorker] [INFO] [pokemon_caught] Captured Poliwag! [CP 436] [Potential 0.38] [4/8/5] [+210 exp]
2016-08-07 15:01:11,745 [ SpinFort] [INFO] [spun_pokestop] Spun pokestop Lincolnshire Echo. Experience awarded: 100. Items awarded: {u'Razz Berry': 1, u'Potion': 1, u'Pokeball': 3, u'Revive': 2}
2016-08-07 15:01:14,138 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Brayford's Wildlife - 0.04km (attraction of lure 0.11km)
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/__init__.py", line 861, in emit
msg = self.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 734, in format
return fmt.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 465, in format
record.message = record.getMessage()
File "/usr/lib/python2.7/logging/__init__.py", line 329, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Logged from file __init__.py, line 550
2016-08-07 15:01:21,886 [PokemonGoBot] [INFO] [login_started] Login procedure started.
2016-08-07 15:01:23,533 [PokemonGoBot] [INFO] [login_successful] Login successful.
2016-08-07 15:01:23,535 [IncubateEggs] [INFO] [next_egg_incubates] Next egg incubates in 1.53 km
2016-08-07 15:01:23,935 [TransferPokemon] [INFO] [keep_best_release] Keeping best 2 Poliwag, based on cp and iv
2016-08-07 15:01:24,352 [TransferPokemon] [INFO] [pokemon_release] Exchanged Poliwag [CP 436] [IV 0.38] for candy.
2016-08-07 15:01:27,557 [RecycleItems] [INFO] [item_discarded] Discarded 3x Pokeball (maximum 50).
2016-08-07 15:01:27,913 [RecycleItems] [INFO] [item_discarded] Discarded 1x Potion (maximum 5).
2016-08-07 15:01:28,314 [RecycleItems] [INFO] [item_discarded] Discarded 2x Revive (maximum 5).
2016-08-07 15:01:28,680 [ SpinFort] [INFO] [pokestop_out_of_range] Pokestop Brayford's Wildlife out of range.
2016-08-07 15:01:28,680 [ SpinFort] [INFO] [pokestop_searching_too_often] Possibly searching too often, take a rest.
2016-08-07 15:01:29,000 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Brayford Waterfront - 0.10km (attraction of lure 0.10km)
2016-08-07 15:01:31,266 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Brayford Waterfront - 0.08km (attraction of lure 0.08km)
2016-08-07 15:01:33,482 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Brayford Waterfront - 0.06km (attraction of lure 0.06km)
2016-08-07 15:01:36,106 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Brayford Waterfront (c3e8f778dd5647ffbebfe8e5957b5e5e.16)
2016-08-07 15:01:41,492 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Brayford Waterfront - 0.04km (attraction of lure 0.04km)
2016-08-07 15:01:44,003 [CatchLuredPokemon] [INFO] [lured_pokemon_found] Lured pokemon at fort Brayford Waterfront (c3e8f778dd5647ffbebfe8e5957b5e5e.16)
2016-08-07 15:01:50,008 [ SpinFort] [INFO] [pokestop_out_of_range] Pokestop Brayford Waterfront out of range.
2016-08-07 15:01:50,008 [ SpinFort] [INFO] [pokestop_searching_too_often] Possibly searching too often, take a rest.
2016-08-07 15:01:50,435 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Brayford Pool Maps - 0.10km (attraction of lure 0.10km)
similar issue i have set these values like so but it still hasnt made a difference and it still does nothing after about 4 minutes
"type": "MoveToFort", "config": { "lure_attraction": false, "lure_max_distance": 0
That config is not working, since usage is commented in code.
Should be fixed now
What was the fix??
I've had a look through what was going on, and I've a sneaky suspicion it's related to #2720??
Same here! Not fixed
Traceback (most recent call last): File "/usr/lib/python2.7/logging/init.py", line 859, in emit msg = self.format(record) File "/usr/lib/python2.7/logging/init.py", line 732, in format return fmt.format(record) File "/usr/lib/python2.7/logging/init.py", line 471, in format record.message = record.getMessage() File "/usr/lib/python2.7/logging/init.py", line 335, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Logged from file init.py, line 550
Git Commit: 4eb7b388d950ff9d9517b5223967aa10adfbb10d
for me, the fix was editing init.py, Find this line: "self.login()" Then add this below:
self.api.activate_signature("encrypt.so")
(or path to wherever your encrypt file is)
Fixed in latest developments.
Dev. Damn auto correct
@brantje is the latest fix in dev supposed to place the encrypt.so file in the bot root directory as well? If so then it doesn't do it for me. When launching just gives:
2016-08-07 19:18:52,264 [PokemonGoBot] [ERROR] encrypt.so is not found! Please place it in the bots root directory.
The fix is obvious but just wondering if it should be doing it or not.
@scarfield Which instance of "self.login()"?
The first one is:
if remaining_time < 60:
self.logger.info("Session stale, re-logging in", 'yellow')
position = self.position
self.api = ApiWrapper()
self.position = position
self.login()
And the second one is:
# provide player position on the earth
self._set_starting_position()
self.login()
First one. Mine is:
if remaining_time < 60:
self.logger.info("Session stale, re-logging in", 'yellow')
position = self.position
self.api = ApiWrapper()
self.position = position
self.login()
self.api.activate_signature("encrypt.so")
Thank you, I just started it back up. I'll update this post if it works or not.
Edit: So far it's working without issue using @scarfield's fix
I'm running on dev now for about 15 minutes, so far working fine. No luredfort errors or anything. Will update if i catch an error or in about an hour if all good.
@oalmali For me this works perfectly fine now after pulling the dev branch and setting it up properly. Imo could close this.
@firzzen is the bot also catching pokemons?
@sinthu94 yes all works fine after i cloned the latest dev.
@firzzen sorry for late response I was traveling. I am executing script with the latest version of dev branch, going to update issue soon.
@oalmali no need to be sorry for anything. All working well for me now after pulling latest dev.
Expected Behavior
Bot collects Pokemon and spins Pokestops correctly.
Actual Behavior
It only works for a while (like ten minutes) then it hangs and always tries to approach forts. Logs are looking like:
Steps to Reproduce
Part of
config.json
is like:"location": "40.782735, -73.965763", "tasks": [ { "type": "HandleSoftBan" }, { "type": "CollectLevelUpReward" }, { "type": "IncubateEggs", "config": { "longer_eggs_first": true } }, { "type": "TransferPokemon" }, { "type": "EvolvePokemon", "config": { "evolve_all": "none", "first_evolve_by": "cp", "evolve_above_cp": 500, "evolve_above_iv": 0.8, "logic": "or", "evolve_speed": 20, "use_lucky_egg": true } }, { "type": "RecycleItems", "config": { "item_filter": { "Pokeball": { "keep" : 200 }, "Potion": { "keep" : 1 }, "Super Potion": { "keep" : 1 }, "Hyper Potion": { "keep" : 30 }, "Revive": { "keep" : 1 }, "Razz Berry": { "keep" : 50 } } } }, { "type": "CatchVisiblePokemon" }, { "type": "SpinFort" }, { "type": "CatchLuredPokemon" }, { "type": "MoveToFort" }, { "type": "FollowSpiral", "config": { "diameter": 4, "step_size": 70 } } ], "map_object_cache_time": 5, "forts": { "avoid_circles": true, "max_circle_size": 50 },
Other Information
OS: OSX Git Commit: 5941cd76fcc498c061ea47d13c365da0c86109b6 Python Version: 2.7