Search
[Python] ImportError: Failed to import the Cloud Firestore library for Python.
- M.R

- Oct 19, 2021
- 1 min read
Phenomenon
I get a title error when trying to import firestore with raspberry pi.
from from firebase_admin import firestoreImportError: Failed to import the Cloud Firestore library for Python. Make sure to install the "google-cloud-firestore" module.The message says "Make sure to install the "google-cloud-firestore" module.", but I made shure to install the google-cloud-firestore.
pip3 list・・・
google-cloud-core 2.1.0
google-cloud-firestore 2.3.4
google-cloud-storage 1.42.3
・・・
Cause and Solution
So let's change the import method.
from google.cloud import firestoreThen the error message changes as follows.
importError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /home/****/.local/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-gnueabihf.so)In other words, it seems that an error occurs because the version of glibc requested by grpcio is different from the actual version.
The current version of grpcio is 1.41.0, so when I downgraded it to 1.40.0, the error disappeared.






Comments