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

TypeError: super(type, obj): obj must be an instance or subtype of type #1

Open
sarkarsaikat opened this issue Jul 4, 2018 · 0 comments

Comments

@sarkarsaikat
Copy link

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.

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