Ich habe Probleme bei der Verbindung mit https mit urllib2 unter Python 2.7.10.SSLv3 Alarm Handshake Fehler mit Urllib2
Irgendwelche Gedanken, was ich vermisse?
Python 2.7.10 (default, Jun 18 2015, 10:53:24)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl, urllib2
>>> ssl.HAS_SNI
True
>>> ssl.OPENSSL_VERSION
'OpenSSL 0.9.8o 01 Jun 2010'
>>> opener = urllib2.build_opener()
>>> opener.open('https://twitrss.me/')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/python2.7/lib/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/usr/local/python2.7/lib/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/usr/local/python2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/usr/local/python2.7/lib/python2.7/urllib2.py", line 1240, in https_open
context=self._context)
File "/usr/local/python2.7/lib/python2.7/urllib2.py", line 1197, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:590)>
Dieses Problem passiert mir unter Windows mit Python 2.7.10 nicht. Aber es passiert mir unter OS X mit Python 2.7.11. Ich versuche PayPal zu öffnen. – user2233706
Ich habe bestätigt, dass dieses Problem auf OS X mit Python 2.7.10 passiert. Also Windows mit Python 2.7.10 funktioniert gut. – user2233706