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

Python error ./run.sh #5469

Closed
neXusBRA opened this issue Sep 16, 2016 · 11 comments
Closed

Python error ./run.sh #5469

neXusBRA opened this issue Sep 16, 2016 · 11 comments

Comments

@neXusBRA
Copy link

## Expected Behavior
Use the bot

## Actual Behavior
Bot crashing

Config.json FULL

`{
"websocket_server": false,
"heartbeat_threshold": 10,
"enable_social": true,
"live_config_update": {
"enabled": false,
"tasks_only": false
},
"tasks": [
{
"type": "TelegramTask",
"config": {
"enabled": false,
"master": null,
"// old syntax, still supported: alert_catch": ["all"],
"// new syntax:": {},
"alert_catch": {
"all": {"operator": "and", "cp": 1300, "iv": 0.95},
"Snorlax": {"operator": "or", "cp": 900, "iv": 0.9}
}
}
},
{
"//NOTE: This task MUST be placed on the top of task list": {},
"type": "RandomAlivePause",
"config": {
"enabled": false,
"min_duration": "00:00:10",
"max_duration": "00:10:00",
"min_interval": "00:05:00",
"max_interval": "01:30:00"
}
},
{
"type": "HandleSoftBan"
},
{
"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": "",
"// 0 = No Team, 1 = Blue, 2 = Red, 3 = Yellow": "",
"team": 0
}
},
{
"type": "CollectLevelUpReward",
"config": {
"collect_reward": true,
"level_limit": -1
}
},
{
"type": "IncubateEggs",
"config": {
"enabled": true,
"infinite_longer_eggs_first": false,
"breakable_longer_eggs_first": true,
"min_interval": 120,
"infinite": [2,5,10],
"breakable": [2,5,10]
}
},
{
"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": "ShowBestPokemon",
"config": {
"enabled": true,
"min_interval": 60,
"amount": 5,
"order_by": "cp",
"info_to_show": ["cp", "ivcp", "dps", "hp"]
}
},
{
"type": "TransferPokemon",
"config": {
"enabled": true,
"min_free_slot": 5,
"transfer_wait_min": 3,
"transfer_wait_max": 7
}
},
{
"type": "NicknamePokemon",
"config": {
"enabled": false,
"nickname_above_iv": 0.9,
"nickname_template": "{iv_pct}_{iv_ads}",
"nickname_wait_min": 3,
"nickname_wait_max": 5
}
},
{
"type": "EvolvePokemon",
"config": {
"enabled": false,

        "// evolve only pidgey and drowzee": "",
        "// evolve_list": "pidgey, drowzee",
        "// donot_evolve_list": "none",

        "// evolve all but pidgey and drowzee": "",
        "// evolve_list": "all",
        "// donot_evolve_list": "pidgey, drowzee",

        "evolve_list": "all",
        "donot_evolve_list": "none",

      "first_evolve_by": "cp",
      "evolve_above_cp": 780,
      "evolve_above_iv": 0.8,
      "logic": "or",
      "min_evolve_speed": 25,
      "max_evolve_speed": 30,
      "use_lucky_egg": false
    }
  },
  {
    "type": "UseIncense",
    "config": {
      "use_incense": false,
      "use_order": [
        "ordinary",
        "spicy",
        "cool",
        "floral" 
      ]
    }
  },
  {
    "type": "RecycleItems",
    "config": {
      "enabled": true,
      "min_empty_space": 15,
      "max_balls_keep": 150,
      "max_potions_keep": 50,
      "max_berries_keep": 70,
      "max_revives_keep": 70,
      "item_filter": {
        "Pokeball":       { "keep" : 80 },
        "Potion":         { "keep" : 10 },
        "Super Potion":   { "keep" : 20 },
        "Hyper Potion":   { "keep" : 30 },
        "Revive":         { "keep" : 30 },
        "Razz Berry":     { "keep" : 100 }
      },
      "recycle_wait_min": 3,
      "recycle_wait_max": 5,
      "recycle_force": true,
      "recycle_force_min": "00:01:00",
      "recycle_force_max": "00:05:00"
    }
  },
  {
    "type": "CatchPokemon",
    "config": {
      "enabled": true,
      "catch_visible_pokemon": true,
      "catch_lured_pokemon": true,
      "min_ultraball_to_keep": 5,
      "berry_threshold": 0.35,
      "vip_berry_threshold": 0.9,
      "treat_unseen_as_vip": true,
      "daily_catch_limit": 800,
      "vanish_settings": {
        "consecutive_vanish_limit": 10,
        "rest_duration_min": "02:00:00",
        "rest_duration_max": "04:00:00"
      },
      "catch_throw_parameters": {
        "excellent_rate": 0.2,
        "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": 3,
        "catch_wait_max": 6,
        "berry_wait_min": 3,
        "berry_wait_max": 5,
        "changeball_wait_min": 3,
        "changeball_wait_max": 5,
        "newtodex_wait_min": 20, 
        "newtodex_wait_max": 30
      }
    }
  },
  {
    "type": "SpinFort",
    "config": {
      "enabled": true,
      "spin_wait_min": 3,
      "spin_wait_max": 5,
      "daily_spin_limit": 1900
    }
  },
  { "type": "UpdateWebInventory",
    "config": {
      "enabled": true
    }
  },
  {
    "type": "MoveToFort",
    "config": {
      "enabled": true,
      "lure_attraction": true,
      "lure_max_distance": 2000,
      "walker": "StepWalker",
      "log_interval": 5
    }
  },
  {
    "type": "FollowSpiral",
    "config": {
      "enabled": true,
      "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,
  "// if 'show_candies' is true, it will show the amount of candies for each pokemon": {},
  "show_candies": 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,
"sleep_schedule": [
  {
    "time": "12:00",
    "duration": "5:30",
    "time_random_offset": "00:30",
    "duration_random_offset": "00:30",
    "wake_up_at_location": ""
  },
  {
    "time": "17:45",
    "duration": "3:00",
    "time_random_offset": "01:00",
    "duration_random_offset": "00:30",
    "wake_up_at_location": ""
  }
],
"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": false,
"test": false,
"walker_limit_output": false,
"health_record": true,
"location_cache": true,
"distance_unit": "km",
"reconnecting_timeout": 15,
"logging": {
  "color": true,
  "show_datetime": true,
  "show_process_name": true,
  "show_log_level": true,
  "show_thread_name": false
},
"catch": {
  "any": {"candy_threshold" : 400 ,"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},
  "// Keep no more than 3 best IV pokemon for every pokemon type": {},
  "// any": {"keep_best_iv": 3},
  "// Discard all pokemon in bag except 100 pokemon with best CP": {},
  "// all": {"keep_best_cp": 100},
  "// 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": {}
},
"websocket": {
    "start_embedded_server": true,
    "server_url": "127.0.0.1:4000"
}

}
`

Output when issue occurred

`

root@Nexus:~/PokemonGo-Bot# ./run.sh
2016-09-16 05:24:07,347 [ cli] [INFO] PokemonGO Bot v1.0
2016-09-16 05:24:07,387 [ cli] [INFO] commit: 11123a8
2016-09-16 05:24:07,399 [ cli] [INFO] Configuration initialized
2016-09-16 05:24:07,400 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-09-16 05:24:07,400 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-09-16 05:24:07,411 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
(22674) wsgi starting up on http://127.0.0.1:4000
2016-09-16 05:24:07,525 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): 127.0.0.1
[2016-09-16 05:24:07] [SleepSchedule] [INFO] Next sleep at 11:59:32, for a duration of 5:46:15
[2016-09-16 05:24:07] [PokemonGoBot] [INFO] Setting start location.
[2016-09-16 05:24:07] [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding.
[2016-09-16 05:24:07] [PokemonGoBot] [INFO] Location found: 40.758895,-73.9873197 (40.758895, -73.9873197, 8.0)
[2016-09-16 05:24:07] [PokemonGoBot] [INFO] Now at (40.758895, -73.9873197, 8.0)
[2016-09-16 05:24:07] [PokemonGoBot] [INFO] Login procedure started.
Traceback (most recent call last):
File "pokecli.py", line 802, in
main()
File "pokecli.py", line 238, in main
report_summary(bot)
File "pokecli.py", line 286, in report_summary
metrics.capture_stats()
File "/root/PokemonGo-Bot/pokemongo_bot/metrics.py", line 105, in capture_stats
self.dust['latest'] = self.bot.stardust
File "/root/PokemonGo-Bot/pokemongo_bot/init.py", line 72, in stardust
return filter(lambda y: y['name'] == 'STARDUST', self._player['currencies'])[0]['amount']
AttributeError: 'PokemonGoBot' object has no attribute '_player'
[2016-09-16 05:24:08] [sentry.errors] [ERROR] Sentry responded with an error: 'utf8' codec can't decode byte 0x9c in position 1: invalid start byte (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "/root/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/root/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/root/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "/root/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
response = self._open(req, data)
File "/root/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
'_open', req)
File "/root/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/root/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "/root/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 1284, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python2.7/httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 895, in _send_output
msg += message_body
File "/root/PokemonGo-Bot/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9c in position 1: invalid start byte
[2016-09-16 05:24:08] [sentry.errors.uncaught] [ERROR] [u"AttributeError: 'PokemonGoBot' object has no attribute '_player'", u' File "pokecli.py", line 802, in ', u' File "pokecli.py", line 238, in main', u' File "pokecli.py", line 286, in report_summary', u' File "pokemongo_bot/metrics.py", line 105, in capture_stats', u' File "pokemongo_bot/init.py", line 72, in stardust']
Fri Sep 16 05:24:08 UTC 2016 Pokebot Stopped.
Press any button or wait 20 seconds to continue.
`

Steps to Reproduce

./run.sh

Other Information

Operacional System: Ubuntu x64
Python 2.7.5

@damaketo
Copy link

Same issue on my side, on raspbian.

@mmeulstee
Copy link

Same here on raspian (Ubuntu xenial)

@dogeatdog
Copy link

dogeatdog commented Sep 16, 2016

Same here. Did a clean install, just to be sure. And getting this on Ubuntu and Python 2.7 :

~/PokemonGo-Bot$ ./run.sh
2016-09-16 10:07:30,081 [ cli] [INFO] PokemonGO Bot v1.0
2016-09-16 10:07:30,088 [ cli] [INFO] commit: ce7a7ec
2016-09-16 10:07:30,091 [ cli] [INFO] Configuration initialized
2016-09-16 10:07:30,091 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-09-16 10:07:30,092 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-09-16 10:07:30,098 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
[2016-09-16 10:07:30] [yoyo.migrations] [INFO] Applying pokemongobot
[2016-09-16 10:07:30] [yoyo.migrations] [INFO] - applying step 0
[2016-09-16 10:07:30] [yoyo.migrations] [INFO] Marking pokemongobot applied
[2016-09-16 10:07:30] [yoyo.migrations] [INFO] Applying catch_log
[2016-09-16 10:07:30] [yoyo.migrations] [INFO] - applying step 0
[2016-09-16 10:07:30] [yoyo.migrations] [INFO] Marking catch_log applied
[2016-09-16 10:07:30] [yoyo.migrations] [INFO] Applying eggs_hatched_log
[2016-09-16 10:07:30] [yoyo.migrations] [INFO] - applying step 0
[2016-09-16 10:07:30] [yoyo.migrations] [INFO] Marking eggs_hatched_log applied
[2016-09-16 10:07:30] [yoyo.migrations] [INFO] Applying evolve_log
[2016-09-16 10:07:30] [yoyo.migrations] [INFO] - applying step 0
[2016-09-16 10:07:30] [yoyo.migrations] [INFO] Marking evolve_log applied
[2016-09-16 10:07:31] [yoyo.migrations] [INFO] Applying pokestop_log
[2016-09-16 10:07:31] [yoyo.migrations] [INFO] - applying step 0
[2016-09-16 10:07:31] [yoyo.migrations] [INFO] Marking pokestop_log applied
[2016-09-16 10:07:31] [yoyo.migrations] [INFO] Applying softban_log
[2016-09-16 10:07:31] [yoyo.migrations] [INFO] - applying step 0
[2016-09-16 10:07:31] [yoyo.migrations] [INFO] Marking softban_log applied
[2016-09-16 10:07:31] [yoyo.migrations] [INFO] Applying transfer_log
[2016-09-16 10:07:31] [yoyo.migrations] [INFO] - applying step 0
[2016-09-16 10:07:31] [yoyo.migrations] [INFO] Marking transfer_log applied
[2016-09-16 10:07:31] [yoyo.migrations] [INFO] Applying vanish_log
[2016-09-16 10:07:31] [yoyo.migrations] [INFO] - applying step 0
[2016-09-16 10:07:31] [yoyo.migrations] [INFO] Marking vanish_log applied
(24521) wsgi starting up on http://127.0.0.1:4000
[2016-09-16 10:07:32] [SleepSchedule] [INFO] Next sleep at 12:21:15, for a duration of 05:35:29
[2016-09-16 10:07:32] [PokemonGoBot] [INFO] Setting start location.
[2016-09-16 10:07:32] [PokemonGoBot] [INFO] Favorite location found:
[2016-09-16 10:07:32] [PokemonGoBot] [INFO] Location found:
[2016-09-16 10:07:32] [PokemonGoBot] [INFO] Now at (, 8.0)
[2016-09-16 10:07:32] [PokemonGoBot] [INFO] Login procedure started.
[2016-09-16 10:07:33] [PokemonGoBot] [INFO] Login successful.
[2016-09-16 10:07:34] [PokemonGoBot] [INFO] Found encrypt.so! Platform: linux2 encrypt.so directory: /home/dogeatdog/PokemonGo-Bot
[2016-09-16 10:07:34] [PokemonGoBot] [INFO]
[2016-09-16 10:07:34] [PokemonGoBot] [INFO] [x] Error while opening cached forts: [Errno 2] No such file or directory: u'/home/dogeatdog/PokemonGo-Bot/pokemongo_bot/../data/recent-forts-flappertje.json'
[2016-09-16 10:07:35] [PokemonGoBot] [INFO] No inventory file /home/dogeatdog/PokemonGo-Bot/pokemongo_bot/../web/inventory-dogeatdog.json found. Creating a new one
[2016-09-16 10:07:35] [PokemonGoBot] [INFO] Level: 28 (Next Level: 129862 XP) (Total: 1520138 XP)
[2016-09-16 10:07:35] [PokemonGoBot] [INFO] Pokemon Captured: 3988 | Pokestops Visited: 6458
[2016-09-16 10:07:36] [PokemonGoBot] [INFO]
[2016-09-16 10:07:36] [PokemonGoBot] [INFO] --- dogeatdog ---
[2016-09-16 10:07:37] [PokemonGoBot] [INFO] Pokemon Bag: 221/250
[2016-09-16 10:07:37] [PokemonGoBot] [INFO] Items: 315/350
[2016-09-16 10:07:37] [PokemonGoBot] [INFO] Stardust: 9705 | Pokecoins: 50
[2016-09-16 10:07:37] [PokemonGoBot] [INFO] PokeBalls: 14 | GreatBalls: 38 | UltraBalls: 99 | MasterBalls: 0
[2016-09-16 10:07:37] [PokemonGoBot] [INFO] RazzBerries: 68 | BlukBerries: 0 | NanabBerries: 0
[2016-09-16 10:07:37] [PokemonGoBot] [INFO] LuckyEgg: 1 | Incubator: 0 | TroyDisk: 6
[2016-09-16 10:07:37] [PokemonGoBot] [INFO] Potion: 0 | SuperPotion: 1 | HyperPotion: 0 | MaxPotion: 51
[2016-09-16 10:07:37] [PokemonGoBot] [INFO] Incense: 5 | IncenseSpicy: 0 | IncenseCool: 0
[2016-09-16 10:07:37] [PokemonGoBot] [INFO] Revive: 30 | MaxRevive: 0
[2016-09-16 10:07:37] [PokemonGoBot] [INFO]
[2016-09-16 10:07:37] [PokemonGoBot] [INFO] Pokemon:
[2016-09-16 10:07:37] [PokemonGoBot] [INFO] #1 Bulbasaur: (CP 460, IV 0.33)
....
[2016-09-16 10:07:37] [PokemonGoBot] [INFO] #148 Dragonair: (CP 1231, IV 0.91)
[2016-09-16 10:07:37] [PokemonGoBot] [INFO]
[2016-09-16 10:07:37] [RandomAlivePause] [INFO] Next random alive pause at 11:27:47, for a duration of 0:07:28
[2016-09-16 10:07:37] [RandomPause] [INFO] Next random pause at 11:17:05, for a duration of 0:04:36
[2016-09-16 10:07:37] [RecycleItems] [INFO] Next forced item recycle at 10:08:47
[2016-09-16 10:07:37] [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
[2016-09-16 10:07:37] [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
[2016-09-16 10:07:37] [PokemonGoBot] [INFO] Starting bot...
[2016-09-16 10:07:37] [CollectLevelUpReward] [INFO] Received level up reward:
[2016-09-16 10:07:37] [IncubateEggs] [INFO] Eggs incubating: [0.72/5.0 km](Eggs left: 8, Incubating: 1)
[2016-09-16 10:07:37] [ShowBestPokemon] [INFO] Best Pokemons (Snorlax, CP 2387, IVCP 0.82, DPS 13.14, HP 231/231) | (Gyarados, CP 2201, IVCP 0.79, DPS 15.04, HP 145/145) | (Lapras, CP 2079, IVCP 0.83, DPS 13.7, HP 182/182) | (Arcanine, CP 2018, IVCP 0.75, DPS 13.94, HP 124/124) | (Slowbro, CP 1964, IVCP 0.28, DPS 11.1, HP 141/141)
[2016-09-16 10:07:39] [ cli] [INFO]
[2016-09-16 10:07:39] [ cli] [INFO] Ran for 0:00:07
[2016-09-16 10:07:39] [ cli] [INFO] Total XP Earned: 0 Average: 0.00/h
[2016-09-16 10:07:39] [ cli] [INFO] Travelled 0.00km
[2016-09-16 10:07:39] [ cli] [INFO] Visited 0 stops
[2016-09-16 10:07:39] [ cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before ()
[2016-09-16 10:07:39] [ cli] [INFO] Threw 0 pokeballs
[2016-09-16 10:07:39] [ cli] [INFO] Earned 0 Stardust
[2016-09-16 10:07:39] [ cli] [INFO] Hatched eggs 0
[2016-09-16 10:07:39] [ cli] [INFO] Next egg hatches in 4.28 km
[2016-09-16 10:07:39] [ cli] [INFO]
[2016-09-16 10:07:39] [ cli] [INFO] Highest CP Pokemon:
[2016-09-16 10:07:39] [ cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
File "pokecli.py", line 841, in
main()
File "pokecli.py", line 200, in main
bot.tick()
File "/home/dogeatdog/PokemonGo-Bot/pokemongo_bot/init.py", line 713, in tick
if worker.work() == WorkerResult.RUNNING:
File "/home/dogeatdog/PokemonGo-Bot/pokemongo_bot/cell_workers/transfer_pokemon.py", line 30, in work
self._release_pokemon_worst_in_group(group, pokemon_name)
File "/home/dogeatdog/PokemonGo-Bot/pokemongo_bot/cell_workers/transfer_pokemon.py", line 59, in _release_pokemon_worst_in_group
pokemon_name)
TypeError: 'NoneType' object is not iterable
[2016-09-16 10:07:39] [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/dogeatdog/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/dogeatdog/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/home/dogeatdog/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-09-16 10:07:39] [sentry.errors.uncaught] [ERROR] [u"TypeError: 'NoneType' object is not iterable", u' File "pokecli.py", line 841, in ', u' File "pokecli.py", line 200, in main', u' File "pokemongo_bot/init.py", line 713, in tick', u' File "pokemongo_bot/cell_workers/transfer_pokemon.py", line 30, in work', u' File "pokemongo_bot/cell_workers/transfer_pokemon.py", line 59, in _release_pokemon_worst_in_group']
Fri Sep 16 10:07:39 CEST 2016 Pokebot Stopped.
Press any button or wait 20 seconds to continue.

@Pjumpod
Copy link

Pjumpod commented Sep 16, 2016

Me too on Debian after today update.

@dogeatdog
Copy link

Ah, hotfix. 7947c7f

Just did another update and now on a8ee312. Seems to be resolved (at least, my error is).

@Pjumpod
Copy link

Pjumpod commented Sep 16, 2016

yes, it resolved when a8ee312

@damaketo
Copy link

damaketo commented Sep 16, 2016

Still an issue here, even after cloning everything in a new folder.

Any idea ?

root@raspberrypi:/home/pi/pokebot/PokemonGo-Bot# ./run.sh
2016-09-16 11:49:40,757 [ cli] [INFO] PokemonGO Bot v1.0
2016-09-16 11:49:40,842 [ cli] [INFO] commit: a8ee312
2016-09-16 11:49:40,970 [ cli] [INFO] Configuration initialized
2016-09-16 11:49:40,977 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-09-16 11:49:40,981 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-09-16 11:49:41,095 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
(21515) wsgi starting up on http://127.0.0.1:3001
[2016-09-16 11:49:41] [SleepSchedule] [INFO] Next sleep at 12:03:34, for a duration of 05:13:29
[2016-09-16 11:49:41] [PokemonGoBot] [INFO] Setting start location.
[2016-09-16 11:49:42] [PokemonGoBot] [INFO] Location found: rue de lourmel, Nantes, France (47.2160751, -1.5420679, 0.0)
[2016-09-16 11:49:42] [PokemonGoBot] [INFO] Now at (47.2160751, -1.5420679, 0.0)
[2016-09-16 11:49:42] [PokemonGoBot] [INFO] Login procedure started.
_inventory was not initialized
_inventory was not initialized
[2016-09-16 11:49:42] [ cli] [INFO]
[2016-09-16 11:49:42] [ cli] [INFO] Ran for 0:00:01
[2016-09-16 11:49:42] [ cli] [INFO] Total XP Earned: 0 Average: 0.00/h
[2016-09-16 11:49:42] [ cli] [INFO] Travelled 0.00km
[2016-09-16 11:49:42] [ cli] [INFO] Visited 0 stops
[2016-09-16 11:49:42] [ cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before ()
[2016-09-16 11:49:42] [ cli] [INFO] Threw 0 pokeballs
[2016-09-16 11:49:42] [ cli] [INFO] Earned 0 Stardust
[2016-09-16 11:49:42] [ cli] [INFO] Hatched eggs 0
[2016-09-16 11:49:42] [ cli] [INFO]
[2016-09-16 11:49:42] [ cli] [INFO] Highest CP Pokemon:
[2016-09-16 11:49:42] [ cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
File "pokecli.py", line 841, in
main()
File "pokecli.py", line 189, in main
bot = start_bot(bot, config)
File "pokecli.py", line 144, in start_bot
bot.start()
File "/home/pi/pokebot/PokemonGo-Bot/pokemongo_bot/init.py", line 142, in start
self._setup_api()
File "/home/pi/pokebot/PokemonGo-Bot/pokemongo_bot/init.py", line 952, in _setup_api
self.login()
File "/home/pi/pokebot/PokemonGo-Bot/pokemongo_bot/init.py", line 886, in login
str(self.config.password))
File "/home/pi/pokebot/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 96, in login
password=password
File "/home/pi/pokebot/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 94, in set_authentication
if not self._auth_provider.user_login(username, password):
File "/home/pi/pokebot/PokemonGo-Bot/src/pgoapi/pgoapi/auth_google.py", line 58, in user_login
user_login = perform_master_login(username, password, self.GOOGLE_LOGIN_ANDROID_ID)
File "/home/pi/pokebot/PokemonGo-Bot/local/lib/python2.7/site-packages/gpsoauth/init.py", line 66, in perform_master_login
return _perform_auth_request(data)
File "/home/pi/pokebot/PokemonGo-Bot/local/lib/python2.7/site-packages/gpsoauth/init.py", line 22, in _perform_auth_request
headers={'User-Agent': useragent})
File "/home/pi/pokebot/PokemonGo-Bot/local/lib/python2.7/site-packages/requests/api.py", line 111, in post
return request('post', url, data=data, json=json, *_kwargs)
File "/home/pi/pokebot/PokemonGo-Bot/local/lib/python2.7/site-packages/requests/api.py", line 57, in request
return session.request(method=method, url=url, *_kwargs)
File "/home/pi/pokebot/PokemonGo-Bot/local/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
resp = self.send(prep, *_send_kwargs)
File "/home/pi/pokebot/PokemonGo-Bot/local/lib/python2.7/site-packages/requests/sessions.py", line 585, in send
r = adapter.send(request, *_kwargs)
File "/home/pi/pokebot/PokemonGo-Bot/local/lib/python2.7/site-packages/requests/adapters.py", line 477, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)
[2016-09-16 11:49:43] [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 "/home/pi/pokebot/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/pi/pokebot/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/home/pi/pokebot/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "/home/pi/pokebot/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
response = self._open(req, data)
File "/home/pi/pokebot/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
'_open', req)
File "/home/pi/pokebot/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/pi/pokebot/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "/home/pi/pokebot/PokemonGo-Bot/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 1284, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python2.7/httplib.py", line 1001, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1035, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 997, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 848, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
[2016-09-16 11:49:43] [sentry.errors.uncaught] [ERROR] [u'SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)', u' File "pokecli.py", line 841, in ', u' File "pokecli.py", line 189, in main', u' File "pokecli.py", line 144, in start_bot', u' File "pokemongo_bot/init.py", line 142, in start', u' File "pokemongo_bot/init.py", line 952, in _setup_api', u' File "pokemongo_bot/init.py", line 886, in login', u' File "pokemongo_bot/api_wrapper.py", line 96, in login', u' File "pgoapi/pgoapi.py", line 94, in set_authentication', u' File "pgoapi/auth_google.py", line 58, in user_login', u' File "gpsoauth/init.py", line 66, in perform_master_login', u' File "gpsoauth/init.py", line 22, in _perform_auth_request', u' File "requests/api.py", line 111, in post', u' File "requests/api.py", line 57, in request', u' File "requests/sessions.py", line 475, in request', u' File "requests/sessions.py", line 585, in send', u' File "requests/adapters.py", line 477, in send']
Sentry is attempting to send 1 pending error messages
Waiting up to 10 seconds
Press Ctrl-C to quit
vendredi 16 septembre 2016, 11:49:43 (UTC+0200) Pokebot Stopped.
Press any button or wait 20 seconds to continue.

@damaketo
Copy link

Certificate to access google looks to be corrupted, have i forget something ?
SSL: CERTIFICATE_VERIFY_FAILED

@ukos-git
Copy link
Contributor

@damaketo probably related to #5450

@BaiqingL
Copy link

Do ./setup.sh -r, try to clear the config file and recreating a new one. Also use apt-get to upgrade if anything needs to be updated. See if that will fix it.

@Gobberwart
Copy link
Contributor

Issue is resolved. Closing.

@dameketo your issue is not the same thing. See #5450.

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

8 participants