Closed db-coder closed 8 years ago
What exactly do you mean by "you have nothing set for HandleSoftBan"? I do have a task : { "type": "HandleSoftBan" },
Also, the PokeBot-Updater just does a git pull. But my bot is already the latest version.
I did that and now, bot is just stuck doing this infinitely 2016-08-10 05:14:23,067 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Arthur Ross Pinetum - 0.08km (attraction of lure 0.08km) 2016-08-10 05:14:23,463 [MoveToFort] [INFO] [arrived_at_fort] Arrived at fort. 2016-08-10 05:14:26,127 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Arthur Ross Pinetum - 0.08km (attraction of lure 0.08km) 2016-08-10 05:14:26,738 [MoveToFort] [INFO] [arrived_at_fort] Arrived at fort. 2016-08-10 05:14:29,794 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Arthur Ross Pinetum - 0.08km (attraction of lure 0.08km) 2016-08-10 05:14:30,183 [MoveToFort] [INFO] [arrived_at_fort] Arrived at fort. 2016-08-10 05:14:33,751 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Arthur Ross Pinetum - 0.08km (attraction of lure 0.08km) 2016-08-10 05:14:34,156 [MoveToFort] [INFO] [arrived_at_fort] Arrived at fort. 2016-08-10 05:14:37,520 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Arthur Ross Pinetum - 0.08km (attraction of lure 0.08km) 2016-08-10 05:14:37,914 [MoveToFort] [INFO] [arrived_at_fort] Arrived at fort. 2016-08-10 05:14:40,873 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Arthur Ross Pinetum - 0.08km (attraction of lure 0.08km) 2016-08-10 05:14:41,270 [MoveToFort] [INFO] [arrived_at_fort] Arrived at fort. 2016-08-10 05:14:44,115 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Arthur Ross Pinetum - 0.08km (attraction of lure 0.08km) 2016-08-10 05:14:44,507 [MoveToFort] [INFO] [arrived_at_fort] Arrived at fort. 2016-08-10 05:14:47,371 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Arthur Ross Pinetum - 0.08km (attraction of lure 0.08km) 2016-08-10 05:14:47,781 [MoveToFort] [INFO] [arrived_at_fort] Arrived at fort. 2016-08-10 05:14:50,980 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Arthur Ross Pinetum - 0.08km (attraction of lure 0.08km) 2016-08-10 05:14:51,372 [MoveToFort] [INFO] [arrived_at_fort] Arrived at fort
There's no difference between your config and mine. Just that I've not used the nicknaming task and you forgot "libencrypt_location": ""
Hi, i have same error some time ago. I don't know why, but sometime TaskWork dont receive config in parameter. In move_to_fort, before self.config.... you must add if self.config:
I seen that with softban.
So quick fix :
if self.config: self.lure_attraction = self.config.get("lure_attraction", True) self.lure_max_distance = self.config.get("lure_max_distance", 800) else: self.lure_attraction = False self.lure_max_distance = 800
@db-coder does #3500 fix your issue?
Expected Behavior
Bot should Fix the softbans
Actual Behavior
16-08-10 04:49:37,626 [FollowCluster] [INFO] [found_cluster] Move to destiny 5. pokestops will be in range of 50. Walking 693.409889318m. 2016-08-10 04:49:39,914 [RecycleItems] [INFO] [item_discard_skipped] Skipping Recycling of Items. 33 space left in bag. 2016-08-10 04:49:40,837 [ SpinFort] [INFO] [pokestop_empty] Found nothing in pokestop Darling Quarter Water Works. 2016-08-10 04:49:40,838 [ SpinFort] [INFO] [pokestop_searching_too_often] Possibly searching too often, take a rest. 2016-08-10 04:49:40,838 [ SpinFort] [INFO] [softban] Probably got softban. 2016-08-10 04:49:41,116 [FollowCluster] [INFO] [found_cluster] Move to destiny 5. pokestops will be in range of 50. Walking 638.536676892m. 2016-08-10 04:49:43,510 [ cli] [INFO] 2016-08-10 04:49:43,510 [ cli] [INFO] Ran for 0:00:13 2016-08-10 04:49:43,510 [ cli] [INFO] Total XP Earned: 0 Average: 0.00/h 2016-08-10 04:49:43,511 [ cli] [INFO] Travelled 0.00km 2016-08-10 04:49:43,511 [ cli] [INFO] Visited 0 stops 2016-08-10 04:49:43,511 [ cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before 2016-08-10 04:49:43,511 [ cli] [INFO] Threw 0 pokeballs 2016-08-10 04:49:43,511 [ cli] [INFO] Earned 0 Stardust 2016-08-10 04:49:43,511 [ cli] [INFO] 2016-08-10 04:49:43,511 [ cli] [INFO] Highest CP Pokemon: 2016-08-10 04:49:43,511 [ cli] [INFO] Most Perfect Pokemon: Traceback (most recent call last): File "pokecli.py", line 522, in
main()
File "pokecli.py", line 96, in main
bot.tick()
File "/home/dibyendu/PokemonGo/PokemonGo-Bot-Dev/PokemonGo-Bot/pokemongo_bot/init.py", line 454, in tick
if worker.work() == WorkerResult.RUNNING:
File "/home/dibyendu/PokemonGo/PokemonGo-Bot-Dev/PokemonGo-Bot/pokemongo_bot/cell_workers/handle_soft_ban.py", line 32, in work
MoveToFort(self.bot, config=None).work()
File "/home/dibyendu/PokemonGo/PokemonGo-Bot-Dev/PokemonGo-Bot/pokemongo_bot/base_task.py", line 12, in init
self.initialize()
File "/home/dibyendu/PokemonGo/PokemonGo-Bot-Dev/PokemonGo-Bot/pokemongo_bot/cell_workers/move_to_fort.py", line 16, in initialize
self.lure_attraction = self.config.get("lure_attraction", True)
AttributeError: 'NoneType' object has no attribute 'get'
Your config.json (remove your credentials and any other private info)
{ "auth_service": "google", "username": "", "password": "", "location": "-33.8753071114,151.2014563751", "gmapkey": "", "libencrypt_location": "", "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": false } }, { "type": "RecycleItems", "config": { "min_empty_space": 20, "item_filter": { "Pokeball": { "keep" : 120 }, "Greatball": { "keep" : 55 }, "Ultraball": { "keep" : 55 }, "Potion": { "keep" : 5 }, "Super Potion": { "keep" : 5 }, "Max Potion": { "keep" : 5 }, "Hyper Potion": { "keep" : 5 }, "Revive": { "keep" : 5 }, "Razz Berry": { "keep" : 60 } } } }, { "type": "CatchVisiblePokemon" }, { "type": "SpinFort" }, { "type": "FollowCluster", "config": { "radius": 50, "lured": false } } ], "map_object_cache_time": 5, "forts": { "avoid_circles": true, "max_circle_size": 50 }, "websocket_server": false, "walk": 55, "action_wait_min": 1, "action_wait_max": 4, "debug": false, "test": false, "health_record": false, "location_cache": false, "distance_unit": "km", "reconnecting_timeout": 15, "evolve_captured": "NONE", "catch_randomize_reticle_factor": 1.0, "catch_randomize_spin_factor": 1.0, "catch": { "any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"}, "// Example of always catching Rattata:": {}, "// Rattata": { "always_catch" : true }, "// Pokemons with example": { "always_catch": true }, "// Gets filtered with release parameters": {},
}
Steps to Reproduce
Get banned once.
Other Information
OS: Ubuntu 15.04 Git Commit: b94d3695e454b1020775e4b717fe397e18646fce Python Version: Python 2.7.9