Closed MorganWeiss closed 4 years ago
It looks like this may be an issue with the networking setup or SSL certificates on the machine. This does not look like an issue that would be specific to the censusdata package, which relies on the requests package for contacting the census API.
You could try manually going to the API in a web browser and seeing if you still get an error. If not, if you send me exactly where in the code you sent this error comes up I may be able to look into this further, although I suspect I will have a limited ability to troubleshoot this issue.
I am getting this error now when I am trying to download data with your api:
`SSLError: HTTPSConnectionPool(host='api.census.gov', port=443): Max retries exceeded with url: /data/2012/acs/acs5?get=NAME,B24123_377E,B24123_378E,B24123_379E,B24123_380E,B24123_381E,B24123_382E,B24123_383E,B24123_384E,B24123_385E,B24123_386E,B24123_387E,B24123_388E,B24123_389E,B24123_390E,B24123_391E,B24123_392E,B24123_393E,B24123_394E,B24123_395E,B24123_396E,B24123_397E,B24123_398E,B24123_399E,B24123_400E,B24123_401E,B24123_402E,B24123_403E,B24123_404E,B24123_405E,B24123_406E,B24123_407E,B24123_408E,B24123_409E,B24123_410E,B24123_411E,B24123_412E,B24123_413E,B24123_414E,B24123_415E,B24123_416E,B24123_417E,B24123_418E,B24123_419E,B24123_420E,B24123_421E,B24123_422E,B24123_423E,B24123_424E,B24123_425E&for=tract:&in=state:01+county:&key=e39a53c23358c749629da6f31d8f03878d4088d6 (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))
I tried the same code on another computer and it worked fine but I need it to work on this computer. How do I fix this?
Here is my entire code: