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

No config argument specified #3770

Closed
zyh84 opened this issue Aug 12, 2016 · 2 comments
Closed

No config argument specified #3770

zyh84 opened this issue Aug 12, 2016 · 2 comments

Comments

@zyh84
Copy link

zyh84 commented Aug 12, 2016

error when use cmd to run "python pokecli.py -i 1 --cache“
F:\document\tongxuan\poke\PokemonGo-Bot>python pokecli.py -i 1 --cache
2016-08-13 01:58:20,486 [ cli] [INFO] PokemonGO Bot v1.0
2016-08-13 01:58:20,486 [ cli] [INFO] No config argument specified, checking for /configs/config.json
usage: pokecli.py [-h] [-cf CONFIG] [-a AUTH_SERVICE] [-u USERNAME]
[-ws WEBSOCKET.SERVER_URL]
[-wss WEBSOCKET.START_EMBEDDED_SERVER]
[-wsr WEBSOCKET.REMOTE_CONTROL] [-p PASSWORD] [-l LOCATION]
[-lc LOCATION_CACHE] [--forts.spin FORTS.SPIN] [-w WALK]
[-k GMAPKEY] [-e SHOW_EVENTS] [-d DEBUG] [-t TEST]
[-du DISTANCE_UNIT] [-rt RECONNECTING_TIMEOUT]
[-hr HEALTH_RECORD] [-ac FORTS.AVOID_CIRCLES]
[-mcs FORTS.MAX_CIRCLE_SIZE]
[--catch_randomize_reticle_factor CATCH_RANDOMIZE_RETICLE_FACTOR]
[--catch_randomize_spin_factor CATCH_RANDOMIZE_SPIN_FACTOR]
[--map_object_cache_time MAP_OBJECT_CACHE_TIME]
[--logging_color LOGGING_COLOR]
[-cte CATCH_THROW_PARAMETERS.EXCELLENT_RATE]
[-ctg CATCH_THROW_PARAMETERS.GREAT_RATE]
[-ctn CATCH_THROW_PARAMETERS.NICE_RATE]
[-ctm CATCH_THROW_PARAMETERS.NORMAL_RATE]
[-cts CATCH_THROW_PARAMETERS.SPIN_SUCCESS_RATE]
pokecli.py: error: unrecognized arguments: -i 1 --cache

error when run "run.bat"
Running pokecli.py for count: 0
2016-08-13 02:14:27,561 [ cli] [INFO] PokemonGO Bot v1.0
2016-08-13 02:14:27,561 [ cli] [INFO] No config argument specified, checking for /configs/config.json
2016-08-13 02:14:27,561 [ cli] [INFO] Configuration initialized
2016-08-13 02:14:27,561 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-08-13 02:14:27,561 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-08-13 02:14:27,561 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
2016-08-13 02:14:27,624 [PokemonGoBot] [INFO] [set_start_location] Setting start location.
2016-08-13 02:14:27,624 [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding.
2016-08-13 02:14:27,624 [PokemonGoBot] [INFO] [location_found] Location found: 1.3609234,103.8741148 (1.3609234, 103.8741148, 0.0)
2016-08-13 02:14:27,638 [PokemonGoBot] [INFO] [position_update] Now at (1.3609234, 103.8741148, 0)
2016-08-13 02:14:27,638 [PokemonGoBot] [INFO] [login_started] Login procedure started.
2016-08-13 02:14:29,733 [PokemonGoBot] [INFO] [login_successful] Login successful.
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO]
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] --- Zyh93 ---
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] Level: 1 (Next Level: 350 XP) (Total: 650 XP)
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] Pokemon Captured: 1 | Pokestops Visited: 1
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] Pokemon Bag: 1/250
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] Items: 57/350
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] Stardust: 100 | Pokecoins: 0
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] PokeBalls: 53 | GreatBalls: 0 | UltraBalls: 0
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] RazzBerries: 0 | BlukBerries: 0 | NanabBerries: 0
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] LuckyEgg: 0 | Incubator: 0 | TroyDisk: 0
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] Potion: 0 | SuperPotion: 0 | HyperPotion: 0 | MaxPotion: 0
2016-08-13 02:14:32,061 [PokemonGoBot] [INFO] Incense: 2 | IncenseSpicy: 0 | IncenseCool: 0
2016-08-13 02:14:32,076 [PokemonGoBot] [INFO] Revive: 0 | MaxRevive: 0
2016-08-13 02:14:32,076 [PokemonGoBot] [INFO]
2016-08-13 02:14:32,076 [PokemonGoBot] [INFO] Found encrypt_64.dll! Platform: win32 Encrypt.so directory: F:\document\tongxuan\poke\PokemonGo-Bot
2016-08-13 02:14:32,076 [PokemonGoBot] [INFO]
2016-08-13 02:14:32,967 [SleepSchedule] [INFO] [next_sleep] Next sleep at 2016-08-13 22:45:40.968000
2016-08-13 02:14:33,265 [ cli] [INFO]
2016-08-13 02:14:33,265 [ cli] [INFO] Ran for 0:00:06
2016-08-13 02:14:33,265 [ cli] [INFO] Total XP Earned: 0 Average: 0.00/h
2016-08-13 02:14:33,265 [ cli] [INFO] Travelled 0.00km
2016-08-13 02:14:33,265 [ cli] [INFO] Visited 0 stops
2016-08-13 02:14:33,265 [ cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before
2016-08-13 02:14:33,265 [ cli] [INFO] Threw 0 pokeballs
2016-08-13 02:14:33,265 [ cli] [INFO] Earned 0 Stardust
2016-08-13 02:14:33,265 [ cli] [INFO]
2016-08-13 02:14:33,265 [ cli] [INFO] Highest CP Pokemon:
2016-08-13 02:14:33,279 [ cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
File "pokecli.py", line 559, in
main()
File "pokecli.py", line 83, in main
tree = TreeConfigBuilder(bot, config.raw_tasks).build()
File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\tree_config_builder.py", line 63, in build
instance = worker(self.bot, task_config)
File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\base_task.py", line 13, in init
self.initialize()
File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\cell_workers\recycle_items.py", line 46, in initialize
self._validate_item_filter()
File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\cell_workers\recycle_items.py", line 61, in _validate_item_filter
config_item_name))
pokemongo_bot.tree_config_builder.ConfigException: item Greateball does not exist, spelling mistake? (check for valid item names in data/items.json)
2016-08-13 02:14:33,326 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\raven\transport\threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "C:\Python27\lib\site-packages\raven\transport\http.py", line 47, in send
ca_certs=self.ca_certs,
File "C:\Python27\lib\site-packages\raven\utils\http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 494, in open
response = self._open(req, data)
File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 512, in _open
'_open', req)
File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 466, in _call_chain
result = func(*args)
File "C:\Python27\lib\site-packages\raven\utils\http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 1284, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "C:\Python27\lib\httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "C:\Python27\lib\httplib.py", line 1097, in _send_request
self.endheaders(body)
File "C:\Python27\lib\httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "C:\Python27\lib\httplib.py", line 895, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-13 02:14:33,342 [sentry.errors.uncaught] [ERROR] [u'ConfigException: item Greateball does not exist, spelling mistake? (check for valid item names in data/items.json)', u' File "pokecli.py", line 559, in ', u' File "pokecli.py", line 83, in main', u' File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\tree_config_builder.py", line 63, in build', u' File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\base_task.py", line 13, in init', u' File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\cell_workers\recycle_items.py", line 46, in initialize', u' File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\cell_workers\recycle_items.py", line 61, in _validate_item_filter']

Your config.json (remove your credentials and any other private info)

"encrypt_location": "",
"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": false,
      "min_interval": 10,
      "stats": ["uptime", "stardust_earned", "xp_earned", "xp_per_hour", "stops_visited"],
      "terminal_log": true,
      "terminal_title": 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": 15,
      "item_filter": {
        "Pokeball":       { "keep" : 50 },
        "Potion":         { "keep" : 0 },
        "Super Potion":   { "keep" : 0 },
        "Hyper Potion":   { "keep" : 10 },
        "Revive":         { "keep" : 3 },
        "Razz Berry":     { "keep" : 100 },
        "Greateball":     { "keep" : 100},
        "Ultraball":      { "keep" : 100 }
      }
    }
  },
  {
    "type": "CatchVisiblePokemon"
  },
  {
    "type": "CatchLuredPokemon"
  },
  {
    "type": "SpinFort"
  },
  {
    "type": "MoveToFort",
    "config":{
      "lure_attraction": true,
      "lure_max_distance": 2000
    }
  },
  {
    "type": "FollowSpiral",
    "config": {
      "diameter": 4,
      "step_size": 70
    }
  }
],
"map_object_cache_time": 5,
"forts": {
  "avoid_circles": true,
  "max_circle_size": 50
},
"websocket_server": false,
"walk": 4.16,
"action_wait_min": 1,
"action_wait_max": 4,
"debug": false,
"test": false,
"health_record": true,
"location_cache": true,
"distance_unit": "km",
"reconnecting_timeout": 15,
"catch_randomize_reticle_factor": 1.0,
"catch_randomize_spin_factor": 1.0,
"logging_color": true,
"catch": {
  "any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or" },

  "// Pokemons with example": { "always_catch": true },
  "// Gets filtered with release parameters": {},

  "// Legendary pokemons (Goes under S-Tier)": {},
  "Lapras": { "always_catch": true },
  "Moltres": { "always_catch": true },
  "Zapdos": { "always_catch": true },
  "Articuno": { "always_catch": true },

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

  "// Growlithe evolves to Arcanine": {},
  "Growlithe": { "always_catch": true },
  "// Dragonair evolves to Dragonite": {},
  "Dragonair": { "always_catch": true },
  "// Grimer evolves to Muk": {},
  "Grimer": { "always_catch": true },

  "// Magikarp evolves to Gyarados": {},
  "Magikarp": { "always_catch": true },
  "// Exeggcute evolves to Exeggutor": {},
  "Exeggcute": { "always_catch": true },
  "// Eevee evolves to many versions, like Vaporeon, Flareon": {},
  "Eevee": { "always_catch": true },

  "// A-Tier pokemons": {},
  "Slowbro": { "always_catch": true },
  "Victreebel": { "always_catch": true },
  "Machamp": { "always_catch": true },
  "Poliwrath": { "always_catch": true },
  "Clefable": { "always_catch": true },
  "Nidoking": { "always_catch": true },
  "Venusaur": { "always_catch": true },
  "Charizard": { "always_catch": true },
  "Golduck": { "always_catch": true },
  "Nidoqueen": { "always_catch": true },
  "Vileplume": { "always_catch": true },
  "Blastoise": { "always_catch": true },
  "Omastar":  { "always_catch": true },
  "Aerodactyl": { "always_catch": true },
  "Golem": { "always_catch": true },
  "Wigglytuff": { "always_catch": true },
  "Dewgong": { "always_catch": true },
  "Ninetales": { "always_catch": true },
  "Magmar": { "always_catch": true },
  "Kabutops": { "always_catch": true },
  "Electabuzz": { "always_catch": true },
  "Starmie": { "always_catch": true },
  "Jolteon": { "always_catch": true },
  "Rapidash": { "always_catch": true },
  "Pinsir": { "always_catch": true },
  "Scyther": { "always_catch": true },
  "Tentacruel": { "always_catch": true },
  "Gengar": { "always_catch": true },
  "Hypno": { "always_catch": true },
  "Pidgeot": { "always_catch": true },
  "Rhydon": { "always_catch": true },
  "Seaking": { "always_catch": true },
  "Kangaskhan": { "always_catch": true }
},
"release": {
  "any": {"release_below_cp": 0, "release_below_iv": 0, "logic": "or" },

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

}

}

Other Information

OS: Windows 10
Branch: dev
Git Commit: fff1eac
Python Version: Python 2.7.12

@zyh84
Copy link
Author

zyh84 commented Aug 13, 2016

@GitPupper I am sure the config.json is named exactly config.json.
And I run using python pokecli.py still give me the same error

F:\document\tongxuan\poke\PokemonGo-Bot>python pokecli.py
2016-08-13 09:50:32,368 [ cli] [INFO] PokemonGO Bot v1.0
2016-08-13 09:50:32,371 [ cli] [INFO] No config argument specified, checking for /configs/config.json
2016-08-13 09:50:32,375 [ cli] [INFO] Configuration initialized
2016-08-13 09:50:32,377 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-08-13 09:50:32,378 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-08-13 09:50:32,388 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
2016-08-13 09:50:32,463 [PokemonGoBot] [INFO] [set_start_location] Setting start location.
2016-08-13 09:50:32,466 [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding.
2016-08-13 09:50:32,467 [PokemonGoBot] [INFO] [location_found] Location found: 1.3609234,103.8741148 (1.3609234, 103.8741148, 0.0)
2016-08-13 09:50:32,471 [PokemonGoBot] [INFO] [position_update] Now at (1.3609234, 103.8741148, 0)
2016-08-13 09:50:32,476 [PokemonGoBot] [INFO] [login_started] Login procedure started.
2016-08-13 09:51:04,216 [PokemonGoBot] [INFO] [login_failed] Login error, server busy. Waiting 10 seconds to try again.
2016-08-13 09:51:15,084 [PokemonGoBot] [INFO] [login_successful] Login successful.
2016-08-13 09:51:46,486 [PokemonGoBot] [INFO]
2016-08-13 09:51:46,486 [PokemonGoBot] [INFO] --- Zyh93 ---
2016-08-13 09:51:46,487 [PokemonGoBot] [INFO] Level: 1 (Next Level: 350 XP) (Total: 650 XP)
2016-08-13 09:51:46,490 [PokemonGoBot] [INFO] Pokemon Captured: 1 | Pokestops Visited: 1
2016-08-13 09:51:46,492 [PokemonGoBot] [INFO] Pokemon Bag: 1/250
2016-08-13 09:51:46,494 [PokemonGoBot] [INFO] Items: 57/350
2016-08-13 09:51:46,496 [PokemonGoBot] [INFO] Stardust: 100 | Pokecoins: 0
2016-08-13 09:51:46,499 [PokemonGoBot] [INFO] PokeBalls: 53 | GreatBalls: 0 | UltraBalls: 0
2016-08-13 09:51:46,500 [PokemonGoBot] [INFO] RazzBerries: 0 | BlukBerries: 0 | NanabBerries: 0
2016-08-13 09:51:46,503 [PokemonGoBot] [INFO] LuckyEgg: 0 | Incubator: 0 | TroyDisk: 0
2016-08-13 09:51:46,505 [PokemonGoBot] [INFO] Potion: 0 | SuperPotion: 0 | HyperPotion: 0 | MaxPotion: 0
2016-08-13 09:51:46,507 [PokemonGoBot] [INFO] Incense: 2 | IncenseSpicy: 0 | IncenseCool: 0
2016-08-13 09:51:46,509 [PokemonGoBot] [INFO] Revive: 0 | MaxRevive: 0
2016-08-13 09:51:46,510 [PokemonGoBot] [INFO]
2016-08-13 09:51:46,513 [PokemonGoBot] [INFO] Found encrypt_64.dll! Platform: win32 Encrypt.so directory: F:\document\tongxuan\poke\PokemonGo-Bot
2016-08-13 09:51:46,516 [PokemonGoBot] [INFO]
2016-08-13 09:51:47,194 [SleepSchedule] [INFO] [next_sleep] Next sleep at 2016-08-13 22:36:10.195000
2016-08-13 09:51:47,484 [ cli] [INFO]
2016-08-13 09:51:47,486 [ cli] [INFO] Ran for 0:01:15
2016-08-13 09:51:47,487 [ cli] [INFO] Total XP Earned: 0 Average: 0.00/h
2016-08-13 09:51:47,490 [ cli] [INFO] Travelled 0.00km
2016-08-13 09:51:47,490 [ cli] [INFO] Visited 0 stops
2016-08-13 09:51:47,493 [ cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before
2016-08-13 09:51:47,496 [ cli] [INFO] Threw 0 pokeballs
2016-08-13 09:51:47,497 [ cli] [INFO] Earned 0 Stardust
2016-08-13 09:51:47,500 [ cli] [INFO]
2016-08-13 09:51:47,503 [ cli] [INFO] Highest CP Pokemon:
2016-08-13 09:51:47,505 [ cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
File "pokecli.py", line 559, in
main()
File "pokecli.py", line 83, in main
tree = TreeConfigBuilder(bot, config.raw_tasks).build()
File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\tree_config_builder.py", line 63, in build
instance = worker(self.bot, task_config)
File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\base_task.py", line 13, in init
self.initialize()
File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\cell_workers\recycle_items.py", line 46, in initialize
self._validate_item_filter()
File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\cell_workers\recycle_items.py", line 61, in _validate_item_filter
config_item_name))
pokemongo_bot.tree_config_builder.ConfigException: item Greateball does not exist, spelling mistake? (check for valid item names in data/items.json)
2016-08-13 09:51:47,549 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\raven\transport\threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "C:\Python27\lib\site-packages\raven\transport\http.py", line 47, in send
ca_certs=self.ca_certs,
File "C:\Python27\lib\site-packages\raven\utils\http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 494, in open
response = self._open(req, data)
File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 512, in _open
'_open', req)
File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 466, in _call_chain
result = func(*args)
File "C:\Python27\lib\site-packages\raven\utils\http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "C:\Python27\lib\site-packages\future\backports\urllib\request.py", line 1284, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "C:\Python27\lib\httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "C:\Python27\lib\httplib.py", line 1097, in _send_request
self.endheaders(body)
File "C:\Python27\lib\httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "C:\Python27\lib\httplib.py", line 895, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-13 09:51:47,572 [sentry.errors.uncaught] [ERROR] [u'ConfigException: item Greateball does not exist, spelling mistake? (check for valid item names in data/items.json)', u' File "pokecli.py", line 559, in ', u' File "pokecli.py", line 83, in main', u' File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\tree_config_builder.py", line 63, in build', u' File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\base_task.py", line 13, in init', u' File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\cell_workers\recycle_items.py", line 46, in initialize', u' File "F:\document\tongxuan\poke\PokemonGo-Bot\pokemongo_bot\cell_workers\recycle_items.py", line 61, in _validate_item_filter']

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

No branches or pull requests

2 participants
@zyh84 and others