'PokemonGoBot' object has no attribute 'event_handler'
Expected Behavior
Should run normally without error
Actual Behavior
Traceback (most recent call last):
File "pokecli.py", line 493, in
Steps to Reproduce
2016-08-07 10:27:01,989 [HandleSoftBan] [INFO] [softban_fix] Fixing softban.
Other Information
OS: Mac Git Commit: c21fad0e476a2ab77e8ec6eb898c03b1c3dbf3dd Python Version: Python 2.7.10
Same result here: OS: Linux64 Git Commit: c21fad0 Python: 2.7.12
On softban, instead of spinning
2016-08-07 01:07:54,971 [HandleSoftBan] [INFO] [softban_fix] Fixing softban.
Traceback (most recent call last):
File "pokecli.py", line 493, in
Possible cause (although I don't see this specifcally)?
except GeocoderQuotaExceeded:
raise Exception("Google Maps API key over requests limit.")
except Exception as e:
# always report session summary and then raise exception
if bot:
report_summary(bot)
raise e
Tried on latest commit on dev after a bug fix: c58bed9d0f66cc093a097d5b2f611981c4602ee6
Still same issue
I believe it's something in the softban fix code that's throwing an exception.
spins = randint(50,60)
self.emit_event(
'softban_fix',
formatted='Fixing softban.'
)
for i in xrange(spins):
self.spin_fort(forts[0])
self.bot.softban = False
self.emit_event(
'softban_fix_done',
formatted='Softban should be fixed'
)
set health_record to false
@bigkraig still getting the same error after setting health_record to false:
2016-08-07 10:59:58,609 [HandleSoftBan] [INFO] [softban_fix] Fixing softban.
2016-08-07 11:00:00,064 [ cli] [INFO]
2016-08-07 11:00:00,065 [ cli] [INFO] Ran for 0:00:45
2016-08-07 11:00:00,065 [ cli] [INFO] Total XP Earned: 0 Average: 0.00/h
2016-08-07 11:00:00,065 [ cli] [INFO] Travelled 0.00km
2016-08-07 11:00:00,065 [ cli] [INFO] Visited 0 stops
2016-08-07 11:00:00,065 [ cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before
2016-08-07 11:00:00,065 [ cli] [INFO] Threw 0 pokeballs
2016-08-07 11:00:00,065 [ cli] [INFO] Earned 0 Stardust
2016-08-07 11:00:00,065 [ cli] [INFO]
2016-08-07 11:00:00,066 [ cli] [INFO] Highest CP Pokemon:
2016-08-07 11:00:00,066 [ cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
File "pokecli.py", line 493, in <module>
main()
File "pokecli.py", line 129, in main
raise e
AttributeError: 'PokemonGoBot' object has no attribute 'event_handler'
Getting same issue as last comment
I think it works once you remove handlesoftban from config. Just have to wait till it spins 40 times
This is fixed with the latest commit on dev branch
@sparshgupta can you close this now please?