Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45850

Re: Error with python 3.3.2 and https

Path csiph.com!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'socket': 0.07; 'subject:Error': 0.07; 'latter': 0.09; 'supported,': 0.09; 'windows,': 0.09; 'python': 0.11; 'windows': 0.15; '24,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hrm.': 0.16; 'https': 0.16; 'inclined': 0.16; 'module?': 0.16; 'subject:https': 0.16; 'subject:python': 0.16; 'followed': 0.16; 'do,': 0.16; 'wrote:': 0.18; 'case.': 0.24; 'directory.': 0.24; 'ssl': 0.24; 'mention': 0.26; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'disabled': 0.31; 'url:05': 0.31; 'url:2008': 0.31; 'fri,': 0.33; 'third': 0.33; "i'd": 0.34; 'subject:with': 0.35; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'shows': 0.36; 'error.': 0.37; 'received:209': 0.37; 'skip:o 20': 0.38; 'checks': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'skip:u 10': 0.60; 'url:blogspot': 0.65; 'online': 0.71; 'checks.': 0.84; 'anywhere,': 0.93; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=G+jRa6hWgu3yyZ8xKxX55f92VtnvX/WE/3uc26m9L3E=; b=pXKNAAyiHxrjYAucO/HKhejud2uI8om1/cg2y1laj6u2ykM8GimsUIzyJfxtczCZTy 6fZBzN8dk/TPGEiBAUM2ZprL3fP+oRmj1XimWBfiJgDmZR7YSdFBuEavyAEBsUy6mOjy Bi2/Y/WZTCZMvb6/UMBhh6xDsCuqMa2tMK5DuTeEBu2GBn+C4QcJSWdpYKMq0ppZsxPv wb2MF90m5kkHaTXSENcjhLbLvrAizvqq2EozqXjWLjgsID9xVPtp2qq0eKDdR1jY1Sbs mgXRvk0bS7khMj3OqlMI8XSCe79KG0MNs8qYNkvuA1tR5nMTP7ITtgIB27DEiuWEbaQ2 WMFQ==
MIME-Version 1.0
X-Received by 10.58.172.67 with SMTP id ba3mr6656599vec.58.1369347835853; Thu, 23 May 2013 15:23:55 -0700 (PDT)
In-Reply-To <f90d099d-e794-4164-b796-4db3a9f95cc5@googlegroups.com>
References <683480d3-9b36-40f3-af61-e767178ceb87@googlegroups.com> <mailman.2019.1369324579.3114.python-list@python.org> <77525aba-65fc-41c3-aeb5-428d66719bee@googlegroups.com> <mailman.2021.1369325893.3114.python-list@python.org> <f90d099d-e794-4164-b796-4db3a9f95cc5@googlegroups.com>
Date Fri, 24 May 2013 08:23:55 +1000
Subject Re: Error with python 3.3.2 and https
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2041.1369347839.3114.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1369347839 news.xs4all.nl 15948 [2001:888:2000:d::a6]:42626
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:45850

Show key headers only | View raw


On Fri, May 24, 2013 at 3:49 AM,  <asianavatar@gmail.com> wrote:
>
> Yeah that is the case. Once I change the f = opener.open('website') line to a link that has a https I get that socket error. Nothing else changes. I was reading online and came across this site which shows you how if the version of python installed supports ssl.
>
> http://morlockhq.blogspot.ca/2008/05/python-tip-checking-to-see-if-your.html
>
> When I followed the instructions I got that it wasn't supported, although the ssl.py is in the lib directory. Python was installed from the official python page using the windows installer. Is somehow ssl disabled by default? Do I need to get a third party ssl module?

Hrm. Unfortunately those instructions don't work for Python 3... or at
least, if they do, then both of my handy installations (one Windows,
one Linux) don't have SSL. However, I *can* do 'import ssl' and
'import _ssl', the latter of which is what Lib/socket.py checks for.
In Python 3.3's Lib/socket.py there's no mention of ssl anywhere, so
I'd be inclined to look elsewhere for support checks.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Error with python 3.3.2 and https asianavatar@gmail.com - 2013-05-23 08:48 -0700
  Re: Error with python 3.3.2 and https Chris Angelico <rosuav@gmail.com> - 2013-05-24 01:56 +1000
    Re: Error with python 3.3.2 and https asianavatar@gmail.com - 2013-05-23 09:12 -0700
      Re: Error with python 3.3.2 and https Chris Angelico <rosuav@gmail.com> - 2013-05-24 02:18 +1000
        Re: Error with python 3.3.2 and https asianavatar@gmail.com - 2013-05-23 10:49 -0700
          Re: Error with python 3.3.2 and https Chris Angelico <rosuav@gmail.com> - 2013-05-24 08:23 +1000
            Re: Error with python 3.3.2 and https asianavatar@gmail.com - 2013-05-24 11:08 -0700

csiph-web