-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This line fails: assert max(int(self.cp_exact), 10) == self.cp #5830
Comments
Same here. Below is the output when I tried to run the bot without commenting the line in question:
|
Same error occurred: [2016-11-21 12:17:27] [ cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
File "pokecli.py", line 846, in <module>
main()
File "pokecli.py", line 194, in main
bot = start_bot(bot, config)
File "pokecli.py", line 146, in start_bot
bot.start()
File "/home/siyuan/Downloads/test/PokemonGo-Bot/pokemongo_bot/__init__.py", line 149, in start
init_inventory(self)
File "/home/siyuan/Downloads/test/PokemonGo-Bot/pokemongo_bot/inventory.py", line 1416, in init_inventory
_inventory = Inventory(bot)
File "/home/siyuan/Downloads/test/PokemonGo-Bot/pokemongo_bot/inventory.py", line 1260, in __init__
self.refresh()
File "/home/siyuan/Downloads/test/PokemonGo-Bot/pokemongo_bot/inventory.py", line 1270, in refresh
i.refresh(inventory)
File "/home/siyuan/Downloads/test/PokemonGo-Bot/pokemongo_bot/inventory.py", line 75, in refresh
self._data = self.retrieve_data(inventory)
File "/home/siyuan/Downloads/test/PokemonGo-Bot/pokemongo_bot/inventory.py", line 71, in retrieve_data
ret[key] = self.parse(item)
File "/home/siyuan/Downloads/test/PokemonGo-Bot/pokemongo_bot/inventory.py", line 490, in parse
return Pokemon(item)
File "/home/siyuan/Downloads/test/PokemonGo-Bot/pokemongo_bot/inventory.py", line 991, in __init__
assert max(int(self.cp_exact), 10) == self.cp
AssertionError
[2016-11-21 12:17:27] [sentry.errors] [ERROR] Sentry responded with an error: 'module' object has no attribute 'HTTPSHandler' (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "/home/siyuan/Downloads/test/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/home/siyuan/Downloads/test/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/home/siyuan/Downloads/test/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 44, in urlopen
class ValidHTTPSHandler(urllib2.HTTPSHandler):
AttributeError: 'module' object has no attribute 'HTTPSHandler'
[2016-11-21 12:17:27] [sentry.errors.uncaught] [ERROR] [u'AssertionError', u' File "pokecli.py", line 846, in <module>', u' File "pokecli.py", line 194, in main', u' File "pokecli.py", line 146, in start_bot', u' File "pokemongo_bot/__init__.py", line 149, in start', u' File "pokemongo_bot/inventory.py", line 1416, in init_inventory', u' File "pokemongo_bot/inventory.py", line 1260, in __init__', u' File "pokemongo_bot/inventory.py", line 1270, in refresh', u' File "pokemongo_bot/inventory.py", line 75, in refresh', u' File "pokemongo_bot/inventory.py", line 71, in retrieve_data', u' File "pokemongo_bot/inventory.py", line 490, in parse', u' File "pokemongo_bot/inventory.py", line 991, in __init__']
Mon Nov 21 12:17:27 PST 2016 Pokebot Stopped.
Press any button or wait 20 seconds to continue. After commenting out the assertion, the bot runs. But it is not moving anywhere. |
Niantic said they changed pokemon points: Alakazam(+++), Aerodactyl, Beedrill, Butterfree, Chansey, Charizard(+), Cloyster, Dodrio(++), Dragonite(+), Electabuzz, Electrode, Flareon, Hitmonlee, Gengar, Golem(+++), Gydrados, Jolteon(+++), Jynx, Kabutops, Kangaskhans, Kingler(+++), Machamp(+++), Magneton, Mr. Mime, Muk, Omastar, Onix, Pinsir, Pidgeot, Primeape, Raichu, Rapidash(+), Rhydon, Sandslash, Scyther(++), Snorlax, Starmie, Tangela, Tauros, Tentacruel, Vaporeon, Venomoth(++) Arcanine, Blastoise, Clefable, Dewgong, Exeggutor, Goldbat(-), Golduck, Hypno, Lickitung(--), Nidoking, Nidoqueen, Ninetails(--), Parasect, Poliwrath, Porygon, Seadra, Slowbro(-), Venusaur, Victreebell, Vileplume, Wigglytuff(---) |
Dont run bot. Niantic updated api to 0.47. Hash and crypt libraries will be updated when devs end crack new api |
So is it safe to play now? |
No |
I commented out the assertion and the bot runs, although the API may be an issue they have not pulled the old API as they did last time, yet! Will spin up a new account and see what happens |
Commenting out assertion worked, however captcha magnemite is getting more frequent by the hour |
I found an assertion error.
The file is:
pokemongo_bot/inventory.py
The line is:
991
` # Exact value of current CP (not rounded)
`
If I comment the line, the bot works.
This issue is very similar but the solution is different:
#4942
The text was updated successfully, but these errors were encountered: