slimkrazy/python-google-places

<urlopen error [Errno 11001] getaddrinfo failed>

AnitaSP opened this issue · 0 comments

I am running this code:
from googleplaces import GooglePlaces, types, lang
google_places = GooglePlaces('xxxxxx')

query_result = google_places.nearby_search(
lat_lng={'lat':-1.743103,'lng':-79.534646},
radius=600, sensor=True)](url)

I am getting this error:

File "", line 2, in
lat_lng={'lat':-1.743103,'lng':-79.534646})

File "C:\Users\NA401134\AppData\Local\Continuum\anaconda3\lib\site-packages\googleplaces_init_.py", line 304, in nearby_search
GooglePlaces.NEARBY_SEARCH_API_URL, self._request_params)

File "C:\Users\NA401134\AppData\Local\Continuum\anaconda3\lib\site-packages\googleplaces_init_.py", line 78, in _fetch_remote_json
request_url, response = _fetch_remote(service_url, params, use_http_post)

File "C:\Users\NA401134\AppData\Local\Continuum\anaconda3\lib\site-packages\googleplaces_init_.py", line 71, in _fetch_remote
return (request_url, urllib.request.urlopen(request))

File "C:\Users\NA401134\AppData\Local\Continuum\anaconda3\lib\urllib\request.py", line 223, in urlopen
return opener.open(url, data, timeout)

File "C:\Users\NA401134\AppData\Local\Continuum\anaconda3\lib\urllib\request.py", line 526, in open
response = self._open(req, data)

File "C:\Users\NA401134\AppData\Local\Continuum\anaconda3\lib\urllib\request.py", line 544, in _open
'_open', req)

File "C:\Users\NA401134\AppData\Local\Continuum\anaconda3\lib\urllib\request.py", line 504, in _call_chain
result = func(*args)

File "C:\Users\NA401134\AppData\Local\Continuum\anaconda3\lib\urllib\request.py", line 1361, in https_open
context=self._context, check_hostname=self._check_hostname)

File "C:\Users\NA401134\AppData\Local\Continuum\anaconda3\lib\urllib\request.py", line 1320, in do_open
raise URLError(err)

URLError: <urlopen error [Errno 11001] getaddrinfo failed>