{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4815","repository_url":"https://api.github.com/repos/rethinkdb/rethinkdb","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4815/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4815/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4815/events","html_url":"https://github.com/rethinkdb/rethinkdb/issues/4815","id":105491700,"number":4815,"title":"Python driver SSL only works with Python 3.2+","user":{"login":"danielmewes","id":505365,"avatar_url":"https://avatars.githubusercontent.com/u/505365?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmewes","html_url":"https://github.com/danielmewes","followers_url":"https://api.github.com/users/danielmewes/followers","following_url":"https://api.github.com/users/danielmewes/following{/other_user}","gists_url":"https://api.github.com/users/danielmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmewes/subscriptions","organizations_url":"https://api.github.com/users/danielmewes/orgs","repos_url":"https://api.github.com/users/danielmewes/repos","events_url":"https://api.github.com/users/danielmewes/events{/privacy}","received_events_url":"https://api.github.com/users/danielmewes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/labels/pr:high","name":"pr:high","color":"e10c02"},{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/labels/Python","name":"Python","color":"fef2c0"}],"state":"open","locked":false,"assignee":{"login":"larkost","id":7431361,"avatar_url":"https://avatars.githubusercontent.com/u/7431361?v=3","gravatar_id":"","url":"https://api.github.com/users/larkost","html_url":"https://github.com/larkost","followers_url":"https://api.github.com/users/larkost/followers","following_url":"https://api.github.com/users/larkost/following{/other_user}","gists_url":"https://api.github.com/users/larkost/gists{/gist_id}","starred_url":"https://api.github.com/users/larkost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larkost/subscriptions","organizations_url":"https://api.github.com/users/larkost/orgs","repos_url":"https://api.github.com/users/larkost/repos","events_url":"https://api.github.com/users/larkost/events{/privacy}","received_events_url":"https://api.github.com/users/larkost/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/119","html_url":"https://github.com/rethinkdb/rethinkdb/milestones/2.3.x","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/119/labels","id":1687920,"number":119,"title":"2.3.x","description":null,"creator":{"login":"danielmewes","id":505365,"avatar_url":"https://avatars.githubusercontent.com/u/505365?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmewes","html_url":"https://github.com/danielmewes","followers_url":"https://api.github.com/users/danielmewes/followers","following_url":"https://api.github.com/users/danielmewes/following{/other_user}","gists_url":"https://api.github.com/users/danielmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmewes/subscriptions","organizations_url":"https://api.github.com/users/danielmewes/orgs","repos_url":"https://api.github.com/users/danielmewes/repos","events_url":"https://api.github.com/users/danielmewes/events{/privacy}","received_events_url":"https://api.github.com/users/danielmewes/received_events","type":"User","site_admin":false},"open_issues":51,"closed_issues":0,"state":"open","created_at":"2016-04-06T18:05:18Z","updated_at":"2016-04-28T01:36:59Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-09-09T00:02:58Z","updated_at":"2016-04-28T18:54:55Z","closed_at":null,"body":"In Python 2.7, I'm getting\r\n```\r\nrethinkdb.errors.ReqlDriverError: Could not connect to aws-us-east-1-portal.3.dblayer.com:10575. Error: 'module' object has no attribute 'SSLContext'\r\n```\r\nwhen trying to connect through SSL.\r\n\r\nThe problem I think is that `ssl.SSLContext` was only added in Python 3.2, see https://docs.python.org/dev/library/ssl.html#ssl.SSLContext"},"comment":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/comments/215527505","html_url":"https://github.com/rethinkdb/rethinkdb/issues/4815#issuecomment-215527505","issue_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4815","id":215527505,"user":{"login":"larkost","id":7431361,"avatar_url":"https://avatars.githubusercontent.com/u/7431361?v=3","gravatar_id":"","url":"https://api.github.com/users/larkost","html_url":"https://github.com/larkost","followers_url":"https://api.github.com/users/larkost/followers","following_url":"https://api.github.com/users/larkost/following{/other_user}","gists_url":"https://api.github.com/users/larkost/gists{/gist_id}","starred_url":"https://api.github.com/users/larkost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larkost/subscriptions","organizations_url":"https://api.github.com/users/larkost/orgs","repos_url":"https://api.github.com/users/larkost/repos","events_url":"https://api.github.com/users/larkost/events{/privacy}","received_events_url":"https://api.github.com/users/larkost/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T18:54:55Z","updated_at":"2016-04-28T18:54:55Z","body":"I should also mention that for those users who are interested in the more secure behavior on Python versions that don't support it natively they could import `backports.ssl` and use their monkey-patching to enable this on those versions."}}