After installed pyrebase using "pip install pyrebase", I faced the
AttributeError: module 'collections' has no attribute 'MutableMapping'
Pyrebase's version enter image description here
Then, I saw people using pyrebase4 to fix it so I uninstall the old pyrebase and install the new one by "pip install pyrebase4 but there is another error:
AttributeError: module 'pyrebase' has no attribute 'initialize_app'
Pyrebase4's version enter image description here
here is my code:
import pyrebase
firebaseConfig = {
'apiKey': "AIzaSyCdjchW9VDCwJa38sSmM5GqNu8GuLMmhNE",
'authDomain': "fir-login-78707.firebaseapp.com",
'databaseURL': "https://fir-login-78707-default-rtdb.firebaseio.com",
'projectId': "fir-login-78707",
'storageBucket': "fir-login-78707.appspot.com",
'messagingSenderId': "589888925876",
'appId': "1:589888925876:web:24d05ad6224c5934d567e1"
}
firebase = pyrebase.initialize_app(firebaseConfig)
auth = firebase.auth()