My raspberry pi 4 currently has GLIBC 2.28. ``` ldd --version ldd (Debian GLIBC 2.28-10+rpt2+rpi1+deb10u2) 2.28 ```
This setup works on mine with Python 3.7.17. For firebase-admin and its dependencies which causes these issues use this ``` firebase-admin==5.4.0 google-cloud-firestore==2.5.0 grpcio==1.42.0 grpcio-status==1.42.0 ``` If it works for you, its well and good. On Tuesday, December 6, 2022 at 8:26:45 PM UTC+5:30 Anton Toernblom wrote: > I was having the issue inside a docker container running on a Raspberry pi > 4 32bit OS. > > It worked if i ran it with -it bash then did your instructions. Fails with > a massive error log <https://pastebin.com/Axim5A8X> when added this to > the dockerfile however, > > > FROM python:3.11 > WORKDIR /usr/src/app > COPY main.py . > > RUN apt-get update > > RUN export PATH="$HOME/.local/bin:$PATH" && \ > pip uninstall grpcio && \ > pip uninstall grpcio-status && \ > pip install grpcio==1.44.0 --no-binary=grpcio && \ > pip install grpcio-tools==1.44.0 --no-binary=grpcio-tools > > > > On Wednesday, 6 July 2022 at 18:50:53 UTC+2 Rolando Medina wrote: > >> I was having the same issue with a Raspberry 4 running Raspberry Pi OS 32 >> bits >> >> The solution that worked for me is adding /home/user/.local/bin to PATH. >> For this you need to add the following line to your shell config file >> (.bashrc or .zshrc) >> *export PATH="$HOME/.local/bin:$PATH"* >> After doing this, run *source ~/.zshrc* or *source ~/.bashrc* >> This because apparently pip installs packages in a different source that >> is added to PATH by default >> >> After doing this the problem was still happening so I found this post >> https://groups.google.com/g/grpc-io/c/vjbL3IdZ2Vk/m/EcKSeD4eAgAJ >> According to my research the default installation of the OS manages a >> different version of GLIBC that is a dependency of grpcio so what finally >> fixed it for me was uninstalling grpcio and installing it again with the >> following commands >> 1. *pip uninstall grpcio* >> 2. *pip uninstall grpcio-status* >> >> 3. *pip install grpcio==1.44.0 --no-binary=grpcio* >> 4. *pip install grpcio-tools==1.44.0 --no-binary=grpcio-tools* >> NOTE: Te installation of each package takes a considerable amount of time >> (15-20 min) >> >> This fixed the issue for me. I'm sure that adding the ~/.local/bin to >> PATH was also necessary to make it work >> >> Hope it helps >> El jueves, 2 de junio de 2022 a la(s) 19:44:35 UTC-5, Johnny Oshika >> escribió: >> >>> This is a real shame. I've got this Raspberry Pi OK: >>> >>> *Raspbian GNU/Linux 11 (bullseye)* >>> >>> GLIBC version: 2.31 >>> >>> google-cloud-firestore worked fine before I flashed my SD card and >>> installed the latest Raspberry Pi OS. I don't know which version of >>> Raspberry Pi OS I had installed before, but now I'm wondering >>> if google-cloud-firestore will work again if I roll back the OS to an >>> older version. >>> >>> Has anyone gotten this working? >>> On Sunday, February 13, 2022 at 8:13:48 AM UTC-8 Anurag Gorkar wrote: >>> >>>> Hi, >>>> I am Anurag. I was working on a project involving a Firestore >>>> data-base and raspberry pi. I successfully installed firebase_admin by >>>> using "pip install firebase_admin". Typing "import firebase_admin" or >>>> "from >>>> firebase_admin import credentials" works just fine. However typing "from >>>> firebase admin import firestore" gives the "ImportError: >>>> /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found" error. >>>> >>>> >>>> On Sunday, 9 January 2022 at 18:42:44 UTC+5:30 Inovosystems Software >>>> company wrote: >>>> >>>>> same issue here for hrs .... any work around that does not involve >>>>> reinstalling OS >>>>> >>>>> On Thursday, 02 December 2021 at 19:19:39 UTC+2 Antonio Orozco wrote: >>>>> >>>>>> This was not resolved. I just re-installed Ubuntu on a >>>>>> RaspberryPi instead. I noticed that there's a new version of Debian for >>>>>> the >>>>>> RaspberryPi (Based on Debian version 11-bullseye), it might work now >>>>>> but I have not tried. >>>>>> Unfortunately, it seems like Google PubSub python package is just >>>>>> incompatible with *Debian GLIBC 2.28* >>>>>> >>>>>> On Wednesday, December 1, 2021 at 11:20:10 AM UTC-8 Dayton Turner >>>>>> wrote: >>>>>> >>>>>>> Same, I'm also just running into this and looking for a solution >>>>>>> too! please let us know if you figure it out! >>>>>>> >>>>>>> On Tuesday, 30 November 2021 at 21:15:53 UTC-8 jeremy scott wrote: >>>>>>> >>>>>>>> I'm having the same exact issue. Did this issue ever get resolved? >>>>>>>> >>>>>>>> >>>>>>>> On Wednesday, October 27, 2021 at 8:44:54 PM UTC-7 Antonio Orozco >>>>>>>> wrote: >>>>>>>> >>>>>>>>> This is the first time trying to use google pub/sub python package. >>>>>>>>> >>>>>>>>> Command that I used to install: >>>>>>>>> python3 -m pip --no-cache-dir install grpcio >>>>>>>>> >>>>>>>>> I tried many other ways, all yield the same result. "sudo >>>>>>>>> pip3..", "sudo pip...", "pip3 ...", "pip..." >>>>>>>>> It works perfectly on Ubuntu 20.04. >>>>>>>>> Looking in indexes: https://pypi.org/simple, >>>>>>>>> https://www.piwheels.org/simple >>>>>>>>> Collecting grpcio >>>>>>>>> Downloading >>>>>>>>> https://files.pythonhosted.org/packages/9e/68/721d94afa6fea6c559b1d795d2bae0147b3db9b43f4069d392371a2b8cab/grpcio-1.41.1-cp37-cp37m-linux_armv7l.whl >>>>>>>>> >>>>>>>>> (47.9MB) >>>>>>>>> 100% |████████████████████████████████| 48.0MB 12.8MB/s >>>>>>>>> Requirement already satisfied: six>=1.5.2 in >>>>>>>>> ./.local/lib/python3.7/site-packages (from grpcio) (1.16.0) >>>>>>>>> Installing collected packages: grpcio >>>>>>>>> Successfully installed grpcio-1.41.1 >>>>>>>>> >>>>>>>>> ldd --version >>>>>>>>> ldd (*Debian GLIBC 2.28-10+rpt2+rpi1*) 2.28 >>>>>>>>> Copyright (C) 2018 Free Software Foundation, Inc. >>>>>>>>> This is free software; see the source for copying conditions. >>>>>>>>> There is NO >>>>>>>>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR >>>>>>>>> PURPOSE. >>>>>>>>> Written by Roland McGrath and Ulrich Drepper. >>>>>>>>> >>>>>>>>> On Wednesday, October 27, 2021 at 10:21:07 AM UTC-7 >>>>>>>>> rbel...@google.com wrote: >>>>>>>>> >>>>>>>>>> >>>>>>>>>> How did you install grpcio? If you used pip install grpcio, can >>>>>>>>>> you please include the installation logs? >>>>>>>>>> >>>>>>>>>> Did this work on previous versions? >>>>>>>>>> On Monday, October 25, 2021 at 8:33:16 PM UTC-7 Antonio Orozco >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>>> Traceback (most recent call last): >>>>>>>>>>> File "fpl_notifications.py", line 4, in <module> >>>>>>>>>>> *from google.cloud import pubsub_v1* >>>>>>>>>>> File >>>>>>>>>>> "/home/antonio/.local/lib/python3.7/site-packages/google/cloud/pubsub_v1/__init__.py", >>>>>>>>>>> >>>>>>>>>>> line 17, in <module> >>>>>>>>>>> from google.cloud.pubsub_v1 import types >>>>>>>>>>> File >>>>>>>>>>> "/home/antonio/.local/lib/python3.7/site-packages/google/cloud/pubsub_v1/types.py", >>>>>>>>>>> >>>>>>>>>>> line 25, in <module> >>>>>>>>>>> from google.api_core import gapic_v1 >>>>>>>>>>> File >>>>>>>>>>> "/home/antonio/.local/lib/python3.7/site-packages/google/api_core/gapic_v1/__init__.py", >>>>>>>>>>> >>>>>>>>>>> line 16, in <module> >>>>>>>>>>> from google.api_core.gapic_v1 import config >>>>>>>>>>> File >>>>>>>>>>> "/home/antonio/.local/lib/python3.7/site-packages/google/api_core/gapic_v1/config.py", >>>>>>>>>>> >>>>>>>>>>> line 23, in <module> >>>>>>>>>>> import grpc >>>>>>>>>>> File >>>>>>>>>>> "/home/antonio/.local/lib/python3.7/site-packages/grpc/__init__.py", >>>>>>>>>>> line >>>>>>>>>>> 22, in <module> >>>>>>>>>>> from grpc import _compression >>>>>>>>>>> File >>>>>>>>>>> "/home/antonio/.local/lib/python3.7/site-packages/grpc/_compression.py", >>>>>>>>>>> >>>>>>>>>>> line 15, in <module> >>>>>>>>>>> from grpc._cython import cygrpc >>>>>>>>>>> *ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version >>>>>>>>>>> `GLIBC_2.33' not found* (required by >>>>>>>>>>> /home/antonio/.local/lib/python3.7/site-packages/grpc/_cython/ >>>>>>>>>>> cygrpc.cpython-37m-arm-linux-gnueabihf.so) >>>>>>>>>>> >>>>>>>>>>> On Monday, October 25, 2021 at 8:22:28 PM UTC-7 Antonio Orozco >>>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>>> Hello, >>>>>>>>>>>> >>>>>>>>>>>> Running into the following issue on a Raspberry Pi 4 >>>>>>>>>>>> >>>>>>>>>>>> $ lsb_release -a >>>>>>>>>>>> No LSB modules are available. >>>>>>>>>>>> Distributor ID: Raspbian >>>>>>>>>>>> Description: Raspbian GNU/Linux 10 (buster) >>>>>>>>>>>> Release: 10 >>>>>>>>>>>> Codename: buster >>>>>>>>>>>> $ uname -a >>>>>>>>>>>> Linux liverpool 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST >>>>>>>>>>>> 2021 armv7l GNU/Linux >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> Python 3.7.3 (default, Jan 22 2021, 20:04:44) >>>>>>>>>>>> [GCC 8.3.0] on linux >>>>>>>>>>>> Type "help", "copyright", "credits" or "license" for more >>>>>>>>>>>> information. >>>>>>>>>>>> >>> from grpc._cython import cygrpc >>>>>>>>>>>> Traceback (most recent call last): >>>>>>>>>>>> File "<stdin>", line 1, in <module> >>>>>>>>>>>> File >>>>>>>>>>>> "/home/antonio/.local/lib/python3.7/site-packages/grpc/__init__.py", >>>>>>>>>>>> line >>>>>>>>>>>> 22, in <module> >>>>>>>>>>>> from grpc import _compression >>>>>>>>>>>> File >>>>>>>>>>>> "/home/antonio/.local/lib/python3.7/site-packages/grpc/_compression.py", >>>>>>>>>>>> >>>>>>>>>>>> line 15, in <module> >>>>>>>>>>>> from grpc._cython import cygrpc >>>>>>>>>>>> ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version >>>>>>>>>>>> `GLIBC_2.33' not found (required by >>>>>>>>>>>> /home/antonio/.local/lib/python3.7/site-packages/grpc/_cython/ >>>>>>>>>>>> cygrpc.cpython-37m-arm-linux-gnueabihf.so) >>>>>>>>>>>> >>>>>>>>>>> -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/acf17bc1-388a-40b8-984e-c088a182b534n%40googlegroups.com.