-
Notifications
You must be signed in to change notification settings - Fork 644
-
Notifications
You must be signed in to change notification settings - Fork 644
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
Error in geocoding example in README? #124
Comments
@khorton I can't reproduce. That your exception is a |
I get the same errors today, on two different computers. I note that the comments in geopy.geocoders.Nominatim state that "Nominatim does not support SSL". Does it support https, if it does not support SSL? When I saw the SSL-related error message, and the note in the docs that SSL is not supported, I looked for a way to ensure SSL was not involved, which lead me to "scheme='http'". What default scheme do you have set in your geopy?Kevin Horton |
"https" basically means HTTP over SSL, so no.
It does look like the default scheme is still "https" since it's imported from |
I got a very similar issue. For me On using |
With the python 3.6 changes to how certifications are handled, I thought I'd share my solution to having ssl problems with the geocoder example by monkey patching the Problematic code with no certifications:
Here we pass the certifi certificates into the urlopen method:
Not sure if it helps this old issue, but that was the solution I came up with. |
where to set scheme=http? I am also seeing SSL error on following example
|
Pass it as an argument to the Nominatim class:
|
#291 has added support for passing custom After geopy 1.14.0 is released (that'll be pretty soon), for anyone affected by this I suggest to do the following:
|
|
Im getting AttributeError: module 'geopy.geocoders' has no attribute 'options' and same SSL error thanks |
The first example in the README for v1.1.0 appears to have an error. If I run the example verbatim from the README, I get:
The example works without error if I add "scheme='http'" to the call to Nominatim(). E.g.
The text was updated successfully, but these errors were encountered: