getting the following error:
Traceback (most recent call last):
File "", line 1, in
restaurant_dictionary = zomato.get_nearby_restaurants(latitude = 18.984248, longitude =72.831619 )
File "C:\Users\saikat.sarkar\AppData\Local\Continuum\anaconda3\lib\site-packages\zomatopy\zomatopy.py", line 181, in get_nearby_restaurants
r = (requests.get(base_url + "geocode?lat=" + str(latitude) + "&lon=" + str(longitude), headers=headers).content).decode("utf-8")
File "C:\Users\saikat.sarkar\AppData\Local\Continuum\anaconda3\lib\site-packages\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "C:\Users\saikat.sarkar\AppData\Local\Continuum\anaconda3\lib\site-packages\requests\api.py", line 57, in request
with sessions.Session() as session:
File "C:\Users....\AppData\Local\Continuum\anaconda3\lib\site-packages\requests\sessions.py", line 392, in init
self.mount('https://', HTTPAdapter())
File "C:\Users\saikat.sarkar\AppData\Local\Continuum\anaconda3\lib\site-packages\requests\adapters.py", line 120, in init
super(HTTPAdapter, self).init()
TypeError: super(type, obj): obj must be an instance or subtype of type
the code that I am running:
restaurant_dictionary = zomato.get_nearby_restaurants(latitude = 18.984248, longitude =72.831619 )
Please advise.
getting the following error:
Traceback (most recent call last):
File "", line 1, in
restaurant_dictionary = zomato.get_nearby_restaurants(latitude = 18.984248, longitude =72.831619 )
File "C:\Users\saikat.sarkar\AppData\Local\Continuum\anaconda3\lib\site-packages\zomatopy\zomatopy.py", line 181, in get_nearby_restaurants
r = (requests.get(base_url + "geocode?lat=" + str(latitude) + "&lon=" + str(longitude), headers=headers).content).decode("utf-8")
File "C:\Users\saikat.sarkar\AppData\Local\Continuum\anaconda3\lib\site-packages\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "C:\Users\saikat.sarkar\AppData\Local\Continuum\anaconda3\lib\site-packages\requests\api.py", line 57, in request
with sessions.Session() as session:
File "C:\Users....\AppData\Local\Continuum\anaconda3\lib\site-packages\requests\sessions.py", line 392, in init
self.mount('https://', HTTPAdapter())
File "C:\Users\saikat.sarkar\AppData\Local\Continuum\anaconda3\lib\site-packages\requests\adapters.py", line 120, in init
super(HTTPAdapter, self).init()
TypeError: super(type, obj): obj must be an instance or subtype of type
the code that I am running:
restaurant_dictionary = zomato.get_nearby_restaurants(latitude = 18.984248, longitude =72.831619 )
Please advise.