I'm simply trying to add the Firebase Admin SDK to my Python script, but am unable to import the database module due to a TypeError in one of the library's python scripts.
I installed the library as instructed:
sudo pip install firebase-admin
I initialized the Firebase Admin SDK as instructed:
import firebase_admin
from firebase_admin import credentials
from firebase_admin import db
But it breaks:
>>> import firebase_admin
>>> from firebase_admin import credentials
>>> from firebase_admin import db
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/anaconda/lib/python3.6/site-packages/firebase_admin/db.py", line 33, in <module>
from firebase_admin import _http_client
File "/anaconda/lib/python3.6/site-packages/firebase_admin/_http_client.py", line 30, in <module>
raise_on_status=False, backoff_factor=0.5)
TypeError: __init__() got an unexpected keyword argument 'status'
I peeked into the problematic script _http_client.py
and saw that it imports requests
, so I updated that with pip, to no avail.
No idea what could be the problem here. Any help would be much appreciated! Thank you!