-
Notifications
You must be signed in to change notification settings - Fork 10
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 2.7.6: _ssl.c:510: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure> #15
Comments
I've tested it with 2.7.10, this version also seems to work fine. @sanderjo It looks like the issue is part of the ssl module shipped with |
Yes, python 2.7.9+ works: "Python3 and Python 2.7.9+ include native support for SNI in their SSL modules."
I think so too. Maybe mention it as requirement in the documentation? And build in a try/except on this specific error message? |
Hello. I am using this with ODOO10 and i don't know how i can get address for P4 format postcode. i tried entering P4 format post code and house number but no luck. Thank You in anticipation for guidance. |
@ChintanModi just use the for examle: #!/usr/bin/python
from pyPostcode import Api
postcodeapi = Api('{YOUR_API_KEY}') # Set your own API-key
result = postcodeapi.getaddress('1011AC')
print result.street, result.town |
@steffex , yes i tried that but what i want is say for example postcode is 7766 and if i put this in from pyPostcode import Api postcodeapi = Api('{YOUR_API_KEY}') # Set your own API-key for this it will show me wrong query parameter error. |
"7766" is not a Dutch postcode. A valid Dutch postcode is "7766AA": alway 4 numbers + 2 letters. |
I will close this. I don't know whether it's solved or not. If not solved, just use python 2.7.9 or higher. |
FYI / FWIW:
On Ubuntu 14.04.5 LTS (with Python 2.7.6) the example.py does not work. See below.
The error
is a common problem with older python versions in combination with TLS and possibly SNI (Server Name Indication). So far I have not found a solution or workaround within python 2.7.6.
With python 2.7.11 it works fine.
It's easy to reproduce with three lines of code:
Output of example.py with Python 2.7.6:
With python 2.7.11 it works fine:
The text was updated successfully, but these errors were encountered: