top of page

[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 All

[Python] Conditionally fitting

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...

Comments


category

Let's do our best with our partner:​ ChatReminder

iphone6.5p2.png

It is an application that achieves goals in a chat format with partners.

google-play-badge.png
Download_on_the_App_Store_Badge_JP_RGB_blk_100317.png

Let's do our best with our partner:​ ChatReminder

納品:iPhone6.5①.png

It is an application that achieves goals in a chat format with partners.

google-play-badge.png
Download_on_the_App_Store_Badge_JP_RGB_blk_100317.png

Theme diary: Decide the theme and record for each genre

It is a diary application that allows you to post and record with themes and sub-themes for each genre.

google-play-badge.png
Download_on_the_App_Store_Badge_JP_RGB_blk_100317.png
bottom of page