I am working through a Udemy course in python and I am working with pandas. Currently, I am using geopy in order to attempt to return the coordinates for an input address. In particular, I am running the ArcGIS geocode but when I run it I am getting an SSL error saying it can't get the SSL certificate. I will include the code and error here:

This is the code I am trying to run along with the output I should get. Below this is the output I am actually getting:

```
In [1]: from geopy.geocoders import ArcGIS
...: nom = ArcGIS()
...: nom.geocode("3995 23rd St, San Francisco, CA 94114")
Out[1]: Location(3995 23rd St, San Francisco, California, 94114,      (37.75298458728149, -122.4317017142651, 0.0))

>>> import geopy
>>> from geopy import ArcGIS
>>> nom = ArcGIS()
>>> nom.geocode("3995 23rd St, San Francisco, CA 94114")

```

> 
> Traceback (most recent call last):
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1317, in do\_open
>  encode\_chunked=req.has\_header('Transfer-encoding'))
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
>  self.\_send\_request(method, url, body, headers, encode\_chunked)
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in \_send\_request
>  self.endheaders(body, encode\_chunked=encode\_chunked)
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
>  self.\_send\_output(message\_body, encode\_chunked=encode\_chunked)
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1016, in \_send\_output
>  self.send(msg)
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
>  self.connect()
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1392, in connect
>  server\_hostname=server\_hostname)
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 412, in wrap\_socket
>  session=session
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 853, in \_create
>  self.do\_handshake()
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 1117, in do\_handshake
>  self.\_sslobj.do\_handshake()
>  ssl.SSLCertVerificationError: [SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed: unable to get local issuer certificate (\_ssl.c:1056)
> 
> 
> During handling of the above exception, another exception occurred:
> 
> 
> Traceback (most recent call last):
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/geopy/geocoders/base.py", line 344, in \_call\_geocoder
>  page = requester(req, timeout=timeout, \*\*kwargs)
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 525, in open
>  response = self.\_open(req, data)
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 543, in \_open
>  '\_open', req)
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 503, in \_call\_chain
>  result = func(\*args)
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1360, in https\_open
>  context=self.\_context, check\_hostname=self.\_check\_hostname)
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1319, in do\_open
>  raise URLError(err)
>  urllib.error.URLError: 
> 
> 
> During handling of the above exception, another exception occurred:
> 
> 
> Traceback (most recent call last):
>  File "", line 1, in 
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/geopy/geocoders/arcgis.py", line 195, in geocode
>  response = self.\_call\_geocoder(url, timeout=timeout)
>  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/geopy/geocoders/base.py", line 375, in \_call\_geocoder
>  raise GeocoderServiceError(message)
>  geopy.exc.GeocoderServiceError: [SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed: unable to get local issuer certificate (\_ssl.c:1056)
> 
> 
>