[Python] ImportError: Failed to import the Cloud Firestore library for Python.
Phenomenon
I get a title error when trying to import firestore with raspberry pi.
from from firebase_admin import firestore
ImportError: 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 firestore
Then 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.
Recent Posts
See AllSummary Data analysis is performed using python. The analysis itself is performed using pandas, and the final results are stored in...
Overview If you want to do fitting, you can do it with scipy.optimize.leastsq etc. in python. However, when doing fitting, there are many...
Phenomenon A title error occurs when trying to fit with the least squares method in the leastsq of spicy.optimize. from scipy import...
Comments