Closed jwainwright87 closed 2 years ago
Looks as if this is grpc related.
This workaround resolved the issue: https://github.com/grpc/grpc/issues/25720#issuecomment-969002768
Here are the full steps I took to work around this issue for python Firestore running Raspberry Pi OS (Bullseye) and Python 3.9 on a Raspberry Pi 4.
Please follow ALL steps exactly:
sudo apt-get update && sudo apt-get upgrade -y && sudo reboot
sudo apt-get install python3-pip python3-grpcio python3-grpc-tools patchelf -y
pip install firebase-admin
cd ~/.local/lib/python3.9/site-packages/grpc/_cython
patchelf cygrpc.cpython-39-arm-linux-gnueabihf.so --add-needed /lib/arm-linux-gnueabihf/libatomic.so.1
You should now be able to run from firebase_admin import firestore
in python now.
I don't take any credit for this fix. I have just patched the processes together to get Firebase working on the relevant OS and hardware.
See post above for link to the fix relating to grpc.
I've moved this back to open as I think this still needs looking into
Another update from further investigations into this issue.
It appears that libatomic.so.1
linking patch has been updated and is available in the latest pre-release version of grpc 1.44.0rc2
.
Installing this via pip install grpcio --pre
resolves any issues related to the firestore import.
Closing again.
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Please run down the following list and make sure you've tried the usual "quick fixes":
If you are still having issues, please be sure to include as much information as possible:
Environment details
google-cloud-firestore
version: 2.3.4Steps to reproduce
Code example
Import the module in python3 :
This is what happens:
This is my pip list output:
These are the things I have tried without success:
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!