Getting an error saying TypeError: super(type, obj): obj must be an instance or subtype of type when trying to run the below code part

from pyrebase import pyrebase

config = { "apiKey": "AIzaSyAkk15EfQ_sng9SIVc8M9xLb62VsH40jKw", "authDomain": "summarizer-7cdea.firebaseapp.com", "databaseURL": "https://summarizer-7cdea.firebaseio.com", "projectId": "summarizer-7cdea", "storageBucket": "summarizer-7cdea.appspot.com", "messagingSenderId": "1095367000107" }

firebase = pyrebase.initialize_app(config)

Error: Traceback (most recent call last):

File "", line 12, in firebase = pyrebase.initialize_app(config)

File "C:\Users\Dell\Anaconda3\lib\site-packages\pyrebase\pyrebase.py", line 28, in initialize_app return Firebase(config)

File "C:\Users\Dell\Anaconda3\lib\site-packages\pyrebase\pyrebase.py", line 39, in init self.requests = requests.Session()

File "C:\Users\Dell\Anaconda3\lib\site-packages\requests\sessions.py", line 346, in init self.mount('https://', HTTPAdapter())

File "C:\Users\Dell\Anaconda3\lib\site-packages\requests\adapters.py", line 117, in init super(HTTPAdapter, self).init()

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

0 Answers