Skip to content
Advertisement

SSL Error (Port=443) Max retries exceeded when trying to import osmnx data in Jupiter Notebook

When trying to run this line G = ox.graph_from_place(‘Piedmont, CA, USA’, network_type=’drive’) I get this error:

JavaScript

I googled and found this could be a solution but I got the same error message:

JavaScript

(I changed my/app_1 to “ABC” in the code above)

I also tried – since that was in another solution on stackoverflow, this:

JavaScript

but the same SSL-error appeared.

I’m using Anaconda Navigator 2.1.1 on Mac (OS Big Sur) and Jupiter Notebook 6.3.0

Can someone tell me what I’m doing wrong please? I’m behind a company proxy and assume that’s the issue.

Advertisement

Answer

Does this URL work in your browser: https://nominatim.openstreetmap.org//search?format=json&polygon_geojson=1&dedupe=0&limit=50&q=Piedmont%2C+CA%2C+USA

you can also set request params: ox.config(request_kwargs={})

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement