Closed lucasccdias closed 2 years ago
Hello everyone. I found yesterday (2021-Dec-23) the same issue that @lucasccdias found it. I tried to 'bypass' the SSL verification using:
import ssl ssl._create_default_https_context = ssl._create_unverified_context mun = read_municipality(code_muni=1200179, year=2017)
and I got the following error message:
` . . . raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='www.ipea.gov.br', port=443): Max retries exceeded with url: /geobr/data_gpkg/municipality/2017/12municipality_2017_simplified.gpkg (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)')))
. . .
Exception: Some internal url is broken. Please report to https://github.com/ipeaGIT/geobr/issues `
Looks like the source or changed his SSL or changed the link.
Hi all. Thanks for opening this issue. This kind o problem can occur sometimes when our data server is unstable, hence de message Problem connecting to data server. Please try geobr again in a few minutes.
. The problem has been solved now.
Hello @rafapereirabr, thanks for your reply. I just tried again (using one of the examples from the README.md) and I still have the SSL error.
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
Is there something that I need to do on my side to get the fix, for example, reinstall the lib?
Many thanks in advance and best regards,
Luiz
Are you using the R package or the Python package?
I'm using python. I don't have any VPN or Firewall on my side. Thanks again.
I found this problem while trying to use
geobr
. It happened in my machine (Ubuntu 20.04) and the same error appears in the Python package via Google Colab.Created on 2021-12-23 by the reprex package (v2.0.1)