Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<urlopen error [Errno 11001] getaddrinfo failed> #108

Open
AnitaSP opened this issue Nov 13, 2017 · 0 comments
Open

<urlopen error [Errno 11001] getaddrinfo failed> #108

AnitaSP opened this issue Nov 13, 2017 · 0 comments

Comments

@AnitaSP
Copy link

AnitaSP commented Nov 13, 2017

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant