Skip to content
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

Bot crash in login procedure #4456

Closed
nugrahawahyu opened this issue Aug 21, 2016 · 7 comments
Closed

Bot crash in login procedure #4456

nugrahawahyu opened this issue Aug 21, 2016 · 7 comments

Comments

@nugrahawahyu
Copy link

Expected Behavior

bot to run

Actual Behavior

bot crash in login procedure

Your FULL config.json

{
"auth_service": "google",
"username": "_",
"password": "
",
"location": "**
",
"gmapkey": "**",
"encrypt_location": "",
"websocket_server": false,
"heartbeat_threshold": 10,
"tasks": [
{
"type": "HandleSoftBan"
},
{
"type": "SleepSchedule",
"config": {
"enabled": false,
"time": "22:54",
"duration":"7:46",
"time_random_offset": "00:24",
"duration_random_offset": "00:43"
}
},
{
"type": "CollectLevelUpReward"
},
{
"type": "IncubateEggs",
"config": {
"longer_eggs_first": true
}
},
{
"type": "UpdateLiveStats",
"config": {
"enabled": true,
"min_interval": 10,
"stats": ["username", "level", "uptime", "stardust_earned", "xp_earned", "xp_per_hour", "stops_visited"],
"terminal_log": true,
"terminal_title": true
}
},
{
"type": "TransferPokemon",
"config": {
"transfer_wait_min": 1,
"transfer_wait_max": 4
}
},
{
"type": "NicknamePokemon",
"config": {
"enabled": false,
"nickname_template": "{iv_pct}
{iv_ads}"
}
},
{
"type": "EvolvePokemon",
"config": {
"evolve_all": "Pidgey,Rattata,Caterpie,Weedle,Zubat,Spearow",
"first_evolve_by": "iv",
"evolve_above_cp": 0,
"evolve_above_iv": 0,
"logic": "or",
"evolve_speed": 20,
"use_lucky_egg": false
}
},
{
"type": "RecycleItems",
"config": {
"min_empty_space": 15,
"max_balls_keep": 150,
"max_potions_keep": 75,
"max_berries_keep": 65,
"max_revives_keep": 30,
"item_filter": {
"Pokeball": {"keep": 10},
"Greatball": {"keep": 25},
"Ultraball": {"keep": 100},
"Potion": {"keep": 0},
"Super Potion": {"keep": 0},
"Hyper Potion": {"keep": 75},
"Revive": {"keep": 30},
"Razz Berry": {"keep": 65}
},
"recycle_wait_min": 1,
"recycle_wait_max": 4
}
},
{
"type": "CatchPokemon",
"config": {
"catch_visible_pokemon": true,
"catch_lured_pokemon": true,
"min_ultraball_to_keep": 5,
"catch_throw_parameters": {
"excellent_rate": 0.3,
"great_rate": 0.4,
"nice_rate": 0.2,
"normal_rate": 0.1,
"spin_success_rate" : 0.6
},
"catch_simulation": {
"flee_count": 3,
"flee_duration": 2,
"catch_wait_min": 2,
"catch_wait_max": 6,
"berry_wait_min": 2,
"berry_wait_max": 3,
"changeball_wait_min": 2,
"changeball_wait_max": 3
}
}
},
{
"type": "SpinFort",
"config": {
"spin_wait_min": 2,
"spin_wait_max": 3
}
},
{
"type": "MoveToFort",
"config": {
"lure_attraction": true,
"lure_max_distance": 190
}
},
{
"type": "FollowSpiral",
"config": {
"diameter": 4,
"step_size": 70
}
}
],
"map_object_cache_time": 5,
"forts": {
"avoid_circles": true,
"max_circle_size": 50,
"cache_recent_forts": true
},
"walk_max": 9.16,
"walk_min": 4.17,
"debug": false,
"test": false,
"health_record": true,
"location_cache": true,
"distance_unit": "km",
"reconnecting_timeout": 15,
"logging_color": true,
"catch": {
"any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"},
"// Example of always catching Rattata:": {},
"// Rattata": { "always_catch" : true }
},
"release": {
"// Legendary pokemons (Goes under S-Tier)": {},
"Lapras": { "release_below_cp": 1041, "release_below_iv": 0.8, "logic": "and" },
"Moltres": { "release_below_cp": 1132, "release_below_iv": 0.8, "logic": "and" },
"Zapdos": { "release_below_cp": 1087, "release_below_iv": 0.8, "logic": "and" },
"Articuno": { "release_below_cp": 1039, "release_below_iv": 0.8, "logic": "and" },

  "// S-Tier pokemons (if pokemon can be evolved into tier, list the representative)": {},
  "Mewtwo": { "release_below_cp": 1447, "release_below_iv": 0.8, "logic": "and"},
  "Dragonite": { "release_below_cp": 1221, "release_below_iv": 0.8, "logic": "and" },
  "Snorlax": { "release_below_cp": 1087, "release_below_iv": 0.8, "logic": "and" },
  "// Mew evolves to Mewtwo": {},
  "Mew": { "release_below_cp": 1152, "release_below_iv": 0.8, "logic": "and" },
  "Arcanine": { "release_below_cp": 1041, "release_below_iv": 0.8, "logic": "and" },
  "Vaporeon": { "release_below_cp": 984, "release_below_iv": 0.8, "logic": "and" },
  "Gyarados": { "release_below_cp": 938, "release_below_iv": 0.8, "logic": "and" },
  "Exeggutor": { "release_below_cp": 1032, "release_below_iv": 0.8, "logic": "and" },
  "Muk": { "release_below_cp": 909, "release_below_iv": 0.8, "logic": "and" },
  "Weezing": { "release_below_cp": 784, "release_below_iv": 0.8, "logic": "and" },
  "Flareon": { "release_below_cp": 924, "release_below_iv": 0.8, "logic": "and" },

  "// Growlithe evolves to Arcanine": {},
  "Growlithe": { "release_below_cp": 465, "release_below_iv": 0.8, "logic": "and" },
  "// Dragonair evolves to Dragonite": {},
  "Dragonair": { "release_below_cp": 609, "release_below_iv": 0.8, "logic": "and" },
  "// Grimer evolves to Muk": {},
  "Grimer": { "release_below_cp": 448, "release_below_iv": 0.8, "logic": "and" },
  "// Magikarp evolves to Gyarados": {},
  "Magikarp": { "release_below_cp": 91, "release_below_iv": 0.8, "logic": "and" },
  "// Exeggcute evolves to Exeggutor": {},
  "Exeggcute": { "release_below_cp": 384, "release_below_iv": 0.8, "logic": "and" },
  "// Eevee evolves to many versions, like Vaporeon, Flareon": {},
  "Eevee": { "release_below_cp": 376, "release_below_iv": 0.8, "logic": "and" },

  "// A-Tier pokemons": {},
  "Slowbro": { "release_below_cp": 907, "release_below_iv": 0.8, "logic": "and" },
  "Victreebel": { "release_below_cp": 883, "release_below_iv": 0.8, "logic": "and" },
  "Machamp": { "release_below_cp": 907, "release_below_iv": 0.8, "logic": "and" },
  "Poliwrath": { "release_below_cp": 876, "release_below_iv": 0.8, "logic": "and" },
  "Clefable": { "release_below_cp": 837, "release_below_iv": 0.8, "logic": "and" },
  "Nidoking": { "release_below_cp": 864, "release_below_iv": 0.8, "logic": "and" },
  "Venusaur": { "release_below_cp": 902, "release_below_iv": 0.8, "logic": "and" },
  "Charizard": { "release_below_cp": 909, "release_below_iv": 0.8, "logic": "and" },
  "Golduck": { "release_below_cp": 832, "release_below_iv": 0.8, "logic": "and" },
  "Nidoqueen": { "release_below_cp": 868, "release_below_iv": 0.8, "logic": "and" },
  "Vileplume": { "release_below_cp": 871, "release_below_iv": 0.8, "logic": "and" },
  "Blastoise": { "release_below_cp": 888, "release_below_iv": 0.8, "logic": "and" },
  "Omastar":  { "release_below_cp": 780, "release_below_iv": 0.8, "logic": "and" },
  "Aerodactyl": { "release_below_cp": 756, "release_below_iv": 0.8, "logic": "and" },
  "Golem": { "release_below_cp": 804, "release_below_iv": 0.8, "logic": "and" },
  "Wigglytuff": { "release_below_cp": 760, "release_below_iv": 0.8, "logic": "and" },
  "Dewgong": { "release_below_cp": 748, "release_below_iv": 0.8, "logic": "and" },
  "Ninetales": { "release_below_cp": 763, "release_below_iv": 0.8, "logic": "and" },
  "Magmar": { "release_below_cp": 792, "release_below_iv": 0.8, "logic": "and" },
  "Kabutops": { "release_below_cp": 744, "release_below_iv": 0.8, "logic": "and" },
  "Electabuzz": { "release_below_cp": 739, "release_below_iv": 0.8, "logic": "and" },
  "Starmie": { "release_below_cp": 763, "release_below_iv": 0.8, "logic": "and" },
  "Jolteon": { "release_below_cp": 746, "release_below_iv": 0.8, "logic": "and" },
  "Rapidash": { "release_below_cp": 768, "release_below_iv": 0.8, "logic": "and" },
  "Pinsir": { "release_below_cp": 741, "release_below_iv": 0.8, "logic": "and" },
  "Scyther": { "release_below_cp": 724, "release_below_iv": 0.8, "logic": "and" },
  "Tentacruel": { "release_below_cp": 775, "release_below_iv": 0.8, "logic": "and" },
  "Gengar": { "release_below_cp": 724, "release_below_iv": 0.8, "logic": "and" },
  "Hypno": { "release_below_cp": 763, "release_below_iv": 0.8, "logic": "and" },
  "Pidgeot": { "release_below_cp": 729, "release_below_iv": 0.8, "logic": "and" },
  "Rhydon": { "release_below_cp": 782, "release_below_iv": 0.8, "logic": "and" },
  "Seaking": { "release_below_cp": 712, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 3 },
  "Kangaskhan": { "release_below_cp": 712, "release_below_iv": 0.8, "logic": "and" },

  "// Koffing evolves to Weezing (A-Tier)": {},
  "Koffing": { "release_below_cp": 403, "release_below_iv": 0.8, "logic": "and" },

  "// Below is B-tier and lower pokemons": {},
  "Caterpie": { "release_below_cp": 156, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Weedle": { "release_below_cp": 156, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Diglett": { "release_below_cp": 158, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Metapod": { "release_below_cp": 168, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Kakuna": { "release_below_cp": 170, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Rattata": { "release_below_cp": 204, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Abra": { "release_below_cp": 208, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Zubat": { "release_below_cp": 225, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Chansey": { "release_below_cp": 235, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Pidgey": { "release_below_cp": 237, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 5 },
  "Spearow": { "release_below_cp": 240, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Meowth": { "release_below_cp": 264, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Krabby": { "release_below_cp": 276, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Sandshrew": { "release_below_cp": 278, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Poliwag": { "release_below_cp": 278, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Horsea": { "release_below_cp": 278, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Gastly": { "release_below_cp": 280, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Ekans": { "release_below_cp": 288, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Shellder": { "release_below_cp": 288, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Vulpix": { "release_below_cp": 290, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Voltorb": { "release_below_cp": 292, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Geodude": { "release_below_cp": 297, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Doduo": { "release_below_cp": 297, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Onix": { "release_below_cp": 300, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Mankey": { "release_below_cp": 307, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Pikachu": { "release_below_cp": 309, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Magnemite": { "release_below_cp": 312, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Tentacool": { "release_below_cp": 316, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Paras": { "release_below_cp": 319, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Jigglypuff": { "release_below_cp": 321, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Ditto": { "release_below_cp": 321, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Staryu": { "release_below_cp": 326, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Charmander": { "release_below_cp": 333, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Goldeen": { "release_below_cp": 336, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Squirtle": { "release_below_cp": 352, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Cubone": { "release_below_cp": 352, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Venonat": { "release_below_cp": 360, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Bulbasaur": { "release_below_cp": 374, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Drowzee": { "release_below_cp": 374, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Machop": { "release_below_cp": 381, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Psyduck": { "release_below_cp": 386, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Seel": { "release_below_cp": 386, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Kabuto": { "release_below_cp": 386, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Bellsprout": { "release_below_cp": 391, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Omanyte": { "release_below_cp": 391, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Kadabra": { "release_below_cp": 396, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Oddish": { "release_below_cp": 400, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Dugtrio": { "release_below_cp": 408, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Rhyhorn": { "release_below_cp": 412, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Clefairy": { "release_below_cp": 420, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Slowpoke": { "release_below_cp": 424, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Pidgeotto": { "release_below_cp": 427, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Farfetch'd": { "release_below_cp": 441, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Poliwhirl": { "release_below_cp": 468, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Nidorino": { "release_below_cp": 480, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Haunter": { "release_below_cp": 482, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Nidorina": { "release_below_cp": 489, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Graveler": { "release_below_cp": 501, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Beedrill": { "release_below_cp": 504, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Raticate": { "release_below_cp": 504, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Butterfree": { "release_below_cp": 508, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Hitmonlee": { "release_below_cp": 520, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Ponyta": { "release_below_cp": 530, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Hitmonchan": { "release_below_cp": 530, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Charmeleon": { "release_below_cp": 544, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Wartortle": { "release_below_cp": 552, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Persian": { "release_below_cp": 568, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Lickitung": { "release_below_cp": 568, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Ivysaur": { "release_below_cp": 571, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Electrode": { "release_below_cp": 576, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Marowak": { "release_below_cp": 578, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Gloom": { "release_below_cp": 590, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Porygon": { "release_below_cp": 590, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Seadra": { "release_below_cp": 597, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Jynx": { "release_below_cp": 600, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Weepinbell": { "release_below_cp": 602, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Tangela": { "release_below_cp": 607, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Fearow": { "release_below_cp": 609, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Parasect": { "release_below_cp": 609, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Machoke": { "release_below_cp": 614, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Arbok": { "release_below_cp": 616, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Sandslash": { "release_below_cp": 631, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Alakazam": { "release_below_cp": 633, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Kingler": { "release_below_cp": 636, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Dodrio": { "release_below_cp": 640, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Tauros": { "release_below_cp": 643, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Primeape": { "release_below_cp": 650, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Magneton": { "release_below_cp": 657, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Venomoth": { "release_below_cp": 660, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Golbat": { "release_below_cp": 672, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Raichu": { "release_below_cp": 708, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Cloyster": { "release_below_cp": 717, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 },
  "Mr. Mime": { "release_below_cp": 650, "release_below_iv": 0.8, "logic": "and", "keep_best_cp": 2 }
},
"vips" : {
    "Any pokemon put here directly force to use Berry & Best Ball to capture, to secure the capture rate!": {},
    "any": {"catch_above_cp": 1200, "catch_above_iv": 0.9, "logic": "or" },
    "Lapras": {},
    "Moltres": {},
    "Zapdos": {},
    "Articuno": {},

    "// S-Tier pokemons (if pokemon can be evolved into tier, list the representative)": {},
    "Mewtwo": {},
    "Dragonite": {},
    "Snorlax": {},
    "// Mew evolves to Mewtwo": {},
    "Mew": {},
    "Arcanine": {},
    "Vaporeon": {},
    "Gyarados": {},
    "Exeggutor": {},
    "Muk": {},
    "Weezing": {},
    "Flareon": {}
}

}

Output when issue occurred

2016-08-21 04:27:57,449 [ cli] [INFO] PokemonGO Bot v1.0
2016-08-21 04:27:57,472 [ cli] [INFO] commit: 601e21d
2016-08-21 04:27:57,480 [ cli] [INFO] Configuration initialized
2016-08-21 04:27:57,481 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-08-21 04:27:57,481 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-08-21 04:27:57,499 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
2016-08-21 04:27:57,635 [PokemonGoBot] [INFO] [set_start_location] Setting start location.
2016-08-21 04:27:57,636 [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding.
2016-08-21 04:27:57,636 [PokemonGoBot] [INFO] [location_found] Location found: 1.251237,103.817795 (1.251237, 103.817795, 8.0)
2016-08-21 04:27:57,636 [PokemonGoBot] [INFO] [position_update] Now at (1.251237, 103.817795, 8.0)
2016-08-21 04:27:57,637 [PokemonGoBot] [INFO] [login_started] Login procedure started.
Traceback (most recent call last):
File "pokecli.py", line 674, in
main()
File "pokecli.py", line 176, in main
report_summary(bot)
File "pokecli.py", line 211, in report_summary
metrics.capture_stats()
File "/PokemonGo-Bot/pokemongo_bot/metrics.py", line 84, in capture_stats
response_dict = request.call()
File "/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 233, in call
result = self._call()
File "/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 157, in _call
accelerometer_axes=3
File "/PokemonGo-Bot/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 533, in init
setattr(self, field_name, field_value)
File "/PokemonGo-Bot/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 669, in field_setter
new_value = type_checker.CheckValue(new_value)
File "/PokemonGo-Bot/local/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.py", line 134, in CheckValue
raise ValueError('Value out of range: %d' % proposed_value)
ValueError: Value out of range: -122
2016-08-21 04:27:58,453 [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 "/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/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-08-21 04:27:58,455 [sentry.errors.uncaught] [ERROR] [u'ValueError: Value out of range: -122', u' File "pokecli.py", line 674, in ', u' File "pokecli.py", line 176, in main', u' File "pokecli.py", line 211, in report_summary', u' File "pokemongo_bot/metrics.py", line 84, in capture_stats', u' File "pokemongo_bot/api_wrapper.py", line 233, in call', u' File "pokemongo_bot/api_wrapper.py", line 157, in _call', u' File "/PokemonGo-Bot/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 533, in init', u' File "/PokemonGo-Bot/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 669, in field_setter', u' File "/PokemonGo-Bot/local/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.py", line 134, in CheckValue']
Sun Aug 21 04:27:58 EDT 2016 Pokebot Stopped.
Press any button or wait 20 seconds to continue.

Steps to Reproduce

-clone the repository
-do ./setup.sh
-do ./run.sh

Other Information

OS:
linux
Branch:
master
Git Commit:
601e21d
Python Version:
Python 2.7.6

@mjmadsen
Copy link
Contributor

Looks like a problem with setup.

@chrisle
Copy link
Contributor

chrisle commented Aug 21, 2016

The default setup generated by ./setup.py will also show the same problem.

{
    "auth_service": "ptc",
    "username": "XXXXXXXXXXXXXX",
    "password": "XXXXXXXXXXXXXX",
    "location": "XXXXXXXXXXXXXX",
    "gmapkey": "XXXXXXXXXXXXXX",
    "encrypt_location": "",
    "websocket_server": false,
    "heartbeat_threshold": 10,
    "tasks": [
      {
        "type": "HandleSoftBan"
      },
      {
        "type": "SleepSchedule",
        "config": {
          "enabled": false,
          "time": "22:54",
          "duration":"7:46",
          "time_random_offset": "00:24",
          "duration_random_offset": "00:43"
        }
      },
      {
        "type": "RandomPause",
        "config": {
          "enabled": false,
          "min_duration": "00:00:10",
          "max_duration": "00:10:00",
          "min_interval": "00:10:00",
          "max_interval": "02:00:00"
        }
      },
      {
        "type": "CompleteTutorial",
        "config": {
          "enabled": false,
          "// set a name": "",
          "nickname": ""
        }
      },
      {
         "type": "CollectLevelUpReward"
      },
      {
        "type": "IncubateEggs",
        "config": {
          "longer_eggs_first": true
        }
      },
      {
        "type": "UpdateLiveStats",
        "config": {
          "enabled": false,
          "min_interval": 10,
          "stats": ["username", "uptime", "stardust_earned", "xp_earned", "xp_per_hour", "stops_visited"],
          "terminal_log": true,
          "terminal_title": true
        }
      },
      {
        "type": "UpdateLiveInventory",
        "config": {
          "enabled": false,
          "min_interval": 120,
          "show_all_multiple_lines": false,
          "items": ["pokemon_bag", "space_info", "pokeballs", "greatballs", "ultraballs", "razzberries", "luckyegg"]
        }
      },
      {
        "type": "TransferPokemon",
        "config": {
          "min_free_slot": 5,
          "transfer_wait_min": 1,
          "transfer_wait_max": 4
        }
      },
      {
        "type": "NicknamePokemon",
        "config": {
          "enabled": false,
          "nickname_template": "{iv_pct}_{iv_ads}"
        }
      },
      {
        "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": 15,
          "max_balls_keep": 150,
          "max_potions_keep": 50,
          "max_berries_keep": 70,
          "max_revives_keep": 70,
          "item_filter": {
            "Pokeball":       { "keep" : 100 },
            "Potion":         { "keep" : 10 },
            "Super Potion":   { "keep" : 20 },
            "Hyper Potion":   { "keep" : 30 },
            "Revive":         { "keep" : 30 },
            "Razz Berry":     { "keep" : 100 }
          },
          "recycle_wait_min": 1,
          "recycle_wait_max": 4
        }
      },
      {
        "type": "CatchPokemon",
        "config": {
          "catch_visible_pokemon": true,
          "catch_lured_pokemon": true,
          "min_ultraball_to_keep": 5,
          "berry_threshold": 0.35,
          "vip_berry_threshold": 0.9,
          "catch_throw_parameters": {
            "excellent_rate": 0.1,
            "great_rate": 0.5,
            "nice_rate": 0.3,
            "normal_rate": 0.1,
            "spin_success_rate" : 0.6,
            "hit_rate": 0.75
          },
          "catch_simulation": {
            "flee_count": 3,
            "flee_duration": 2,
            "catch_wait_min": 2,
            "catch_wait_max": 6,
            "berry_wait_min": 2,
            "berry_wait_max": 3,
            "changeball_wait_min": 2,
            "changeball_wait_max": 3
          }
        }
      },
      {
        "type": "SpinFort",
        "config": {
          "spin_wait_min": 2,
          "spin_wait_max": 3
        }
      },
      {
        "type": "MoveToFort",
        "config": {
          "lure_attraction": true,
          "lure_max_distance": 2000,
          "walker": "StepWalker"
        }
      },
      {
        "type": "FollowSpiral",
        "config": {
          "diameter": 4,
          "step_size": 70
        }
      }
    ],
    "map_object_cache_time": 5,
    "forts": {
      "avoid_circles": true,
      "max_circle_size": 50,
      "cache_recent_forts": true
    },
    "pokemon_bag": {
      "// if 'show_at_start' is true, it will log all the pokemons in the bag (not eggs) at bot start": {},
      "show_at_start": true,
      "// if 'show_count' is true, it will show the amount of each pokemon (minimum 1)": {},
      "show_count": false,
      "// 'pokemon_info' parameter define which info to show for each pokemon": {},
      "// the available options are": {},
      "// ['cp', 'iv_ads', 'iv_pct', 'ivcp', 'ncp', 'level', 'hp', 'moveset', 'dps']": {},
      "pokemon_info": ["cp", "iv_pct"]
    },
    "walk_max": 4.16,
    "walk_min": 2.16,
    "alt_min": 500,
    "alt_max": 1000,
    "gps_default_altitude": 8.0,
    "replicate_gps_xy_noise": false,
    "replicate_gps_z_noise": false,
    "gps_xy_noise_range": 0.000125,
    "gps_z_noise_range": 12.5,
    "debug": true,
    "test": false,
    "health_record": true,
    "location_cache": true,
    "distance_unit": "km",
    "reconnecting_timeout": 15,
    "logging_color": true,
    "daily_catch_limit": 800,
    "catch": {
      "any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"},
      "// Example of always catching Rattata:": {},
      "// Rattata": { "always_catch" : true }
    },
    "release": {
      "any": {"release_below_cp": 0, "release_below_iv": 0, "logic": "or"},
      "// Example of always releasing Rattata:": {},
      "// Rattata": {"always_release": true},
      "// Example of keeping 3 stronger (based on CP) Pidgey:": {},
      "// Pidgey": {"keep_best_cp": 3},
      "// Example of keeping 2 best (based on IV) Zubat:": {},
      "// Zubat": {"keep_best_iv": 2},
      "// Also, it is working with any": {},
      "// any": {"keep_best_iv": 3},
      "// Example of keeping the 2 strongest (based on CP) and 3 best (based on IV) Zubat:": {},
      "// Zubat": {"keep_best_cp": 2, "keep_best_iv": 3},
      "// Example of custom order of static criterion": {},
      "// Zubat": {"keep_best_custom": "iv, cp, hp_max", "amount":2}
    },
    "vips" : {
        "Any pokemon put here directly force to use Berry & Best Ball to capture, to secure the capture rate!": {},
        "any": {"catch_above_cp": 1200, "catch_above_iv": 0.9, "logic": "or" },
        "Lapras": {},
        "Moltres": {},
        "Zapdos": {},
        "Articuno": {},

        "// S-Tier pokemons (if pokemon can be evolved into tier, list the representative)": {},
        "Mewtwo": {},
        "Dragonite": {},
        "Snorlax": {},
        "// Mew evolves to Mewtwo": {},
        "Mew": {},
        "Arcanine": {},
        "Vaporeon": {},
        "Gyarados": {},
        "Exeggutor": {},
        "Muk": {},
        "Weezing": {},
        "Flareon": {}
    }
}

@nugrahawahyu
Copy link
Author

More info:

  • try to run the bot on my digital ocean droplet (ubuntu 14.04).
  • all requirements are installed (git, python, pip, virtualenv).

@nugrahawahyu
Copy link
Author

It's turn out an IP issue. Fixed by running the bot using torrify.

1 similar comment
@nugrahawahyu
Copy link
Author

It's turn out an IP issue. Fixed by running the bot using torrify.

@sangeet79
Copy link

@nugrahawahyu can you elaborate on using torify?

@nugrahawahyu
Copy link
Author

@TokarevI
install tor:
apt-get install tor

install torsock:
sudo aptitude install git autoconf automake build-essential libool
git clone --depth 1 https://git.torproject.org/torsocks.git/ #download
cd torsocks*
./autogen.sh
./configure
make
sudo make install #as root, admin, super-user, supercow, pretty please

run the bot:
torify ./run.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants