Trying to integrate Google firestore API at python server
...
File "/home/daffolap-355/repos/subscriptions/appvendor/firebase_admin/firestore.py", line 28, in <module>
raise ImportError('Failed to import the Cloud Firestore library for Python. Make sure '
ImportError: Failed to import the Cloud Firestore library for Python. Make sure to install the "google-cloud-firestore" module.
I get this error here:
from firebase_admin import credentials, auth, firestore
I installed the firebase-admin
module:
pip install --upgrade -t libs firebase-admin
And run the app
dev_appserver app.yaml
Google Cloud Firestore requires
grpc
.However, there are additional steps depending on your OS. Check out https://github.com/grpc/grpc/blob/master/INSTALL.md
To solve the "google-cloud-firestore" module error do this:
And then import like this: