{"action":"created","issue":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/4237","repository_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot","labels_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/4237/labels{/name}","comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/4237/comments","events_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/4237/events","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/issues/4237","id":172026782,"number":4237,"title":"object has no attribute 'item_inventory_count'","user":{"login":"cbogithub","id":9572613,"avatar_url":"https://avatars.githubusercontent.com/u/9572613?v=3","gravatar_id":"","url":"https://api.github.com/users/cbogithub","html_url":"https://github.com/cbogithub","followers_url":"https://api.github.com/users/cbogithub/followers","following_url":"https://api.github.com/users/cbogithub/following{/other_user}","gists_url":"https://api.github.com/users/cbogithub/gists{/gist_id}","starred_url":"https://api.github.com/users/cbogithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbogithub/subscriptions","organizations_url":"https://api.github.com/users/cbogithub/orgs","repos_url":"https://api.github.com/users/cbogithub/repos","events_url":"https://api.github.com/users/cbogithub/events{/privacy}","received_events_url":"https://api.github.com/users/cbogithub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-18T23:53:35Z","updated_at":"2016-08-19T00:12:41Z","closed_at":null,"body":"\r\n```\r\nTraceback (most recent call last):\r\n  File \"pokecli.py\", line 595, in <module>\r\n    main()\r\n  File \"pokecli.py\", line 105, in main\r\n    bot.tick()\r\n  File \"P:\\pokemon go\\PokemonGo-Bot\\pokemongo_bot\\__init__.py\", line 532, in tick\r\n    if worker.work() == WorkerResult.RUNNING:\r\n  File \"P:\\pokemon go\\PokemonGo-Bot\\pokemongo_bot\\cell_workers\\evolve_pokemon.py\", line 27, in work\r\n    if not self._should_run():\r\n  File \"P:\\pokemon go\\PokemonGo-Bot\\pokemongo_bot\\cell_workers\\evolve_pokemon.py\", line 49, in _should_run\r\n    lucky_egg_count = self.bot.item_inventory_count(Item.ITEM_LUCKY_EGG.value)\r\nAttributeError: 'PokemonGoBot' object has no attribute 'item_inventory_count'\r\n```\r\n\r\nconfig \r\n\r\n```\r\n{\r\n    \"auth_service\": \"ptc\",\r\n    \"username\": \"nnn\",\r\n    \"password\": \"bbbbb\",\r\n    \"location\": \"nnnn\",\r\n    \"gmapkey\": \"vvvv\",\r\n    \"tasks\": [{\r\n        \"type\": \"HandleSoftBan\"\r\n    }, {\r\n        \"type\": \"CollectLevelUpReward\"\r\n    }, \r\n\t\r\n\t  {\r\n\t\t\"type\": \"RandomPause\",\r\n        \"config\": {\r\n\t\t  \"enabled\": false,\r\n\t\t  \"min_duration\": \"00:00:10\",\r\n\t\t  \"max_duration\": \"00:10:00\",\r\n\t\t  \"min_interval\": \"00:10:00\",\r\n\t\t  \"max_interval\": \"02:00:00\"\r\n        }\r\n\t  },\t\r\n\t\r\n\t\r\n\t\r\n\t{\r\n        \"type\": \"IncubateEggs\",\r\n        \"config\": {\r\n            \"longer_eggs_first\": true\r\n        }\r\n    }, {\r\n        \"type\": \"RecycleItems\",\r\n        \"min_empty_space\": 10,\r\n        \"config\": {\r\n            \"item_filter\": {\r\n                \"Pokeball\": {\r\n                    \"keep\": 50\r\n                },\r\n                \"Greatball\": {\r\n                    \"keep\": 100\r\n                },\r\n                \"Ultraball\": {\r\n                    \"keep\": 50\r\n                },\r\n                \"Potion\": {\r\n                    \"keep\": 0\r\n                },\r\n                \"Super Potion\": {\r\n                    \"keep\": 0\r\n                },\r\n                \"Hyper Potion\": {\r\n                    \"keep\": 0\r\n                },\r\n                \"Revive\": {\r\n                    \"keep\": 0\r\n                },\r\n                \"Max Potion\": {\r\n                    \"keep\": 50\r\n                },\r\n                \"Max Revive\": {\r\n                    \"keep\": 50\r\n                },\r\n                \"Razz Berry\": {\r\n                    \"keep\": 50\r\n                }\r\n            }\r\n        }\r\n    }, {\r\n        \"type\": \"EvolvePokemon\",\r\n        \"config\": {\r\n            \"evolve_all\": \"Bulbasaur,Charmander,Squirtle,Caterpie,Weedle,Pidgey,Rattata,Spearow,Ekans,Pikachu,Sandshrew,Nidoran F, Nidoran M,Clefable,Vulpix,Jigglypuff,Zubat,Oddish,Paras,Venonat,Diglett,Meowth,Poliwag,Abra,Tentacool,Geodude,Ponyta,Slowpoke,Magnemite,Doduo,Seel,Gastly,Drowzee,Krabby,Voltorb,Cubone,Koffing,Rhyhorn,Horsea,Staryu,Omanyte,Kabuto\",\r\n            \"first_evolve_by\": \"iv\",\r\n            \"evolve_above_cp\": 0,\r\n            \"evolve_above_iv\": 0,\r\n            \"logic\": \"and\",\r\n            \"evolve_speed\": 1,\r\n            \"use_lucky_egg\": true\r\n        }\r\n    }, \r\n\t{\r\n        \"type\": \"NicknamePokemon\",\r\n        \"config\": {\r\n            \"nickname_template\": \"{name:.8s}-{iv_pct}\",\r\n            \"dont_nickname_favorite\": true\r\n        }\r\n    }, \r\n\t{\r\n        \"type\": \"TransferPokemon\"\r\n    },\r\n\t{\r\n        \"type\": \"MoveToMapPokemon\",\r\n        \"config\": {\r\n            \"address\": \"http://localhost:5000\",\r\n            \"mode\": \"priority\",\r\n            \"prioritize_vips\": true,\r\n            \"min_time\": 15,\r\n            \"max_distance\": 1,\r\n            \"snipe\": true,\r\n            \"min_ball\": 30,\r\n            \"snipe_high_prio_only\": true,\r\n            \"snipe_high_prio_threshold\": 1,\r\n            \"update_map\": true,\r\n            \"catch\": {\r\n                \"Mewtwo\": 990,\r\n                \"Mew\": 980,\r\n                \"Moltres\": 970,\r\n                \"Zapdos\": 960,\r\n                \"Articuno\": 950,\r\n\r\n                \"Snorlax\": 940,\r\n                \"Lapras\": 930,\r\n                \"Dragonite\": 920,\r\n                \"Dragonair\": 910,\r\n                \"Dratini\": 900,\r\n\r\n                \"Vaporeon\": 890,\r\n                \"Eevee\": 885,\r\n                \"Arcanine\": 880,\r\n                \"Growlithe\": 875,\r\n                \"Exeggutor\": 870,\r\n                \"Exeggcute\": 865,\r\n                \"Gyarados\": 860,\r\n                \"Magikarp\": 855,\r\n                \"Muk\": 850,\r\n                \"Grimer\": 845,\r\n\r\n                \"Machamp\": 790,\r\n                \"Machop\": 797,\r\n                \"Machoke\": 785,\r\n                \"Victreebel\": 780,\r\n                \"Weepinbell\": 787,\r\n                \"Bellsprout\": 775,\r\n                \"Cloyster\": 770,\r\n                \"Shellder\": 765,\r\n                \"Golduck\": 750,\r\n                \"Psyduck\": 745,\r\n\r\n                \"Chansey\": 100\r\n            }\r\n        }\r\n    },\r\n\t{\r\n        \"type\": \"CatchVisiblePokemon\"\r\n    }, {\r\n        \"type\": \"CatchLuredPokemon\"\r\n    }, {\r\n        \"type\": \"SpinFort\"\r\n    }, {\r\n        \"type\": \"MoveToFort\",\r\n        \"config\": {\r\n            \"lure_attraction\": true,\r\n            \"lure_max_distance\": 2000\r\n        }\r\n    }, {\r\n        \"type\": \"FollowSpiral\",\r\n        \"config\": {\r\n            \"diameter\": 5,\r\n            \"step_size\": 100\r\n        }\r\n    }],\r\n    \"map_object_cache_time\": 5,\r\n    \"forts\": {\r\n        \"avoid_circles\": true,\r\n        \"max_circle_size\": 100,\r\n        \"cache_recent_forts\": true\r\n    },\r\n    \"min_ultraball_to_keep\": 20,\r\n    \"catch_throw_parameters\": {\r\n        \"excellent_rate\": 0.11,\r\n        \"great_rate\": 0.55,\r\n        \"nice_rate\": 0.25,\r\n        \"normal_rate\": 0.09,\r\n        \"spin_success_rate\": 0.67\r\n    },\r\n    \"websocket_server\": true,\r\n\r\n\t\r\n\t\r\n    \"pokemon_bag\": {\r\n      \"// if 'show_at_start' is true, it will log all the pokemons in the bag (not eggs) at bot start\": {},\r\n      \"show_at_start\": true,\r\n      \"// if 'show_count' is true, it will show the amount of each pokemon (minimum 1)\": {},\r\n      \"show_count\": false,\r\n      \"// 'pokemon_info' parameter define which info to show for each pokemon\": {},\r\n      \"// the available options are\": {},\r\n      \"// ['cp', 'iv_ads', 'iv_pct', 'ivcp', 'ncp', 'level', 'hp', 'moveset', 'dps']\": {},\r\n      \"pokemon_info\": [\"cp\", \"iv_pct\"]\r\n    },\t\r\n\t\r\n    \"walk_max\": 50.16,\r\n    \"walk_min\": 5.16,\r\n    \"debug\": false,\r\n    \"test\": false,\r\n    \"health_record\": false,\r\n    \"location_cache\": true,\r\n    \"distance_unit\": \"km\",\r\n    \"reconnecting_timeout\": 15,\r\n    \"logging_color\": true,\r\n    \"daily_catch_limit\": 800,\r\n    \"catch\": {\r\n        \"any\": {\r\n            \"catch_above_cp\": 0,\r\n            \"catch_above_iv\": 0,\r\n            \"logic\": \"or\"\r\n        }\r\n    },\r\n\t\r\n\t\r\n    \"catch_simulation\": {\r\n\t    \"flee_count\": 3,\r\n\t    \"flee_duration\": 2,\r\n\t    \"catch_wait_min\": 2,\r\n\t    \"catch_wait_max\": 6,\r\n\t    \"berry_wait_min\": 2,\r\n\t    \"berry_wait_max\": 3,\r\n\t    \"changeball_wait_min\": 2,\r\n\t    \"changeball_wait_max\": 3\r\n\t  },\t\r\n\t\r\n\t\r\n    \"release\": {\r\n        \"//100 / 97.7 / 95.5 / 93.3 /  91.1 / 88.8 / 86.6 / 84.4 / 82.2 / 80.0 / 77.7 / 75.5 / 73.3 / 71.1\": {},\r\n        \"any\": {\r\n            \"release_below_cp\": 0,\r\n            \"release_below_iv\": 0.99,\r\n            \"logic\": \"or\"\r\n        },\r\n\r\n        \"Snorlax\": {\r\n            \"never_release\": true\r\n        },\r\n        \"Lapras\": {\r\n            \"never_release\": true\r\n        },\r\n        \"Dragonite\": {\r\n            \"never_release\": true\r\n        },\r\n        \"Dragonair\": {\r\n            \"keep_best_iv\": 3\r\n        },\r\n        \"Dratini\": {\r\n            \"keep_best_iv\": 3\r\n        },\r\n\r\n        \"Vaporeon\": {\r\n            \"never_release\": true\r\n        },\r\n        \"Eevee\": {\r\n            \"keep_best_iv\": 3\r\n        },\r\n        \"Arcanine\": {\r\n            \"never_release\": true\r\n        },\r\n        \"Growlithe\": {\r\n            \"keep_best_iv\": 3\r\n        },\r\n        \"Exeggutor\": {\r\n            \"never_release\": true\r\n        },\r\n        \"Exeggcute\": {\r\n            \"keep_best_iv\": 3\r\n        },\r\n        \"Gyarados\": {\r\n            \"never_release\": true\r\n        },\r\n        \"Magikarp\": {\r\n            \"keep_best_iv\": 3\r\n        },\r\n        \"Muk\": {\r\n            \"never_release\": true\r\n        },\r\n        \"Grimer\": {\r\n            \"keep_best_iv\": 3\r\n        },\r\n\r\n        \"Machamp\": {\r\n            \"never_release\": true\r\n        },\r\n        \"Machoke\": {\r\n            \"keep_best_iv\": 3\r\n        },\r\n        \"Machop\": {\r\n            \"keep_best_iv\": 3\r\n        },\r\n        \"Victreebel\": {\r\n            \"never_release\": true\r\n        },\r\n        \"Weepinbell\": {\r\n            \"keep_best_iv\": 3\r\n        },\r\n        \"Bellsprout\": {\r\n            \"keep_best_iv\": 3\r\n        },\r\n        \"Cloyster\": {\r\n            \"never_release\": true\r\n        },\r\n        \"Shellder\": {\r\n            \"keep_best_iv\": 3\r\n        },\r\n        \"Golduck\": {\r\n            \"release_below_iv\": 0.77\r\n        },\r\n        \"Psyduck\": {\r\n            \"release_below_iv\": 0.77\r\n        },\r\n\r\n        \"Mew\": {\r\n            \"never_release\": true\r\n        },\r\n        \"Mewtwo\": {\r\n            \"never_release\": true\r\n        },\r\n        \"Articuno\": {\r\n            \"never_release\": true\r\n        },\r\n        \"Zapdos\": {\r\n            \"never_release\": true\r\n        },\r\n        \"Moltres\": {\r\n            \"never_release\": true\r\n        },\r\n        \"Chansey\": {\r\n            \"keep_best_iv\": 3\r\n        },\r\n\r\n        \"Caterpie\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Metapod\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Butterfree\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Weedle\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Kakuna\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Beedrill\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Pidgey\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Pidgeotto\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Pidgeot\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Rattata\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Raticate\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Spearow\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Fearow\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Ekans\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Arbok\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Sandshrew\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Sandslash\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Vulpix\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Ninetails\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Zubat\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Golbat\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Paras\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Parasect\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Venonat\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Venomoth\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Diglett\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Dugtrio\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Meowth\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Persian\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Mankey\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Primeape\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Ponyta\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Rapidash\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Doduo\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Dodrio\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Drowzee\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Hypno\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Krabby\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Kingler\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Goldeen\": {\r\n            \"always_release\": true\r\n        },\r\n        \"Seaking\": {\r\n            \"always_release\": true\r\n        }\r\n    },\r\n    \"vips\": {\r\n        \"Any pokemon put here directly force to use Berry & Best Ball to capture, to secure the capture rate!\": {},\r\n        \"any\": {\r\n            \"catch_above_cp\": 0,\r\n            \"catch_above_iv\": 0.99,\r\n            \"logic\": \"and\"\r\n        },\r\n        \"Mewtwo\": {},\r\n        \"Mew\": {},\r\n        \"Moltres\": {},\r\n        \"Zapdos\": {},\r\n        \"Articuno\": {},\r\n        \"Snorlax\": {},\r\n        \"Lapras\": {},\r\n        \"Dragonite\": {},\r\n        \"Dragonair\": {},\r\n        \"Dratini\": {},\r\n        \"Vaporeon\": {},\r\n        \"Arcanine\": {},\r\n        \"Exeggutor\": {},\r\n        \"Gyarados\": {},\r\n        \"Muk\": {},\r\n        \"Grimer\": {},\r\n        \"Machamp\": {},\r\n        \"Victreebel\": {},\r\n        \"Cloyster\": {}\r\n    }\r\n\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/comments/240894349","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/issues/4237#issuecomment-240894349","issue_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/4237","id":240894349,"user":{"login":"Arlion","id":2016662,"avatar_url":"https://avatars.githubusercontent.com/u/2016662?v=3","gravatar_id":"","url":"https://api.github.com/users/Arlion","html_url":"https://github.com/Arlion","followers_url":"https://api.github.com/users/Arlion/followers","following_url":"https://api.github.com/users/Arlion/following{/other_user}","gists_url":"https://api.github.com/users/Arlion/gists{/gist_id}","starred_url":"https://api.github.com/users/Arlion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arlion/subscriptions","organizations_url":"https://api.github.com/users/Arlion/orgs","repos_url":"https://api.github.com/users/Arlion/repos","events_url":"https://api.github.com/users/Arlion/events{/privacy}","received_events_url":"https://api.github.com/users/Arlion/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T00:12:41Z","updated_at":"2016-08-19T00:12:41Z","body":"I think the line:\r\n\"min_ultraball_to_keep\": 20,\r\n\r\nwhile proper syntax is made redundant by the \r\n\r\n` \"config\": {\r\n            \"item_filter\": {\r\n                \"Pokeball\": {\r\n                    \"keep\": 50\r\n                },\r\n                \"Greatball\": {\r\n                    \"keep\": 100\r\n                },\r\n                \"Ultraball\": {\r\n                    \"keep\": 50\r\n                },\r\n                \"Potion\": {\r\n                    \"keep\": 0\r\n                },\r\n                \"Super Potion\": {\r\n                    \"keep\": 0\r\n                },\r\n                \"Hyper Potion\": {\r\n                    \"keep\": 0\r\n                },\r\n                \"Revive\": {\r\n                    \"keep\": 0\r\n                },\r\n                \"Max Potion\": {\r\n                    \"keep\": 50\r\n                },\r\n                \"Max Revive\": {\r\n                    \"keep\": 50\r\n                },\r\n                \"Razz Berry\": {\r\n                    \"keep\": 50`\r\n\r\nsection... Try removing it and updating the ultraball section to 20 and see if that gets you where you want to go."}}
{"actor":{"display_login":"Arlion"}}