ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found

10,340 views
Skip to first unread message

Antonio Orozco

unread,
Oct 25, 2021, 11:22:28 PM10/25/21
to grpc.io
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)

Antonio Orozco

unread,
Oct 25, 2021, 11:33:16 PM10/25/21
to grpc.io
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)

Richard Belleville

unread,
Oct 27, 2021, 1:21:07 PM10/27/21
to grpc.io

How did you install grpcio? If you used pip install grpcio, can you please include the installation logs?

Did this work on previous versions?

Antonio Orozco

unread,
Oct 27, 2021, 11:44:54 PM10/27/21
to grpc.io
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.
Collecting grpcio
    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.

jeremy scott

unread,
Dec 1, 2021, 12:15:53 AM12/1/21
to grpc.io
I'm having the same exact issue. Did this issue ever get resolved?

Dayton Turner

unread,
Dec 1, 2021, 2:20:10 PM12/1/21
to grpc.io
Same, I'm also just running into this and looking for a solution too! please let us know if you figure it out!

Antonio Orozco

unread,
Dec 2, 2021, 12:19:39 PM12/2/21
to grpc.io
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

Inovosystems Software company

unread,
Jan 9, 2022, 8:12:44 AM1/9/22
to grpc.io
same issue here for hrs .... any work around that does not involve reinstalling OS 

Anurag Gorkar

unread,
Feb 13, 2022, 11:13:48 AM2/13/22
to grpc.io
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.

Johnny Oshika

unread,
Jun 2, 2022, 8:44:35 PM6/2/22
to grpc.io
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?

Rolando Medina

unread,
Jul 6, 2022, 12:50:53 PM7/6/22
to grpc.io
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

Anton Toernblom

unread,
Dec 6, 2022, 9:56:45 AM12/6/22
to grpc.io
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 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



Raajesh

unread,
Jun 9, 2023, 4:55:59 PM6/9/23
to grpc.io
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.
Reply all
Reply to author
Forward
0 new messages