`GLIBC_2.33' not found

4399 views
Skip to first unread message

p.o.seidon

unread,
Oct 20, 2021, 7:56:36 AM10/20/21
to grpc.io
I use gRPC in my program, where it reads

import grpc

which calls

from grpc import _compression

which calls

from grpc import _compression

which causes

builtins.ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /usr/local/lib/python3.7/dist-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-gnueabihf.so)

I am on a RasPi 4 / 8 GB, Raspberry OS / Buster, installed a few days ago. I installed gRPC by issueing

sudo pip3 install grpcio -U
sudo pip3 install grpcio -tools -U

Issueing ldd --version yields

ldd (Debian GLIBC 2.28-10+rpt2+rpi1) 2.28

What am I supposed to do now?

Cheers Paul


Richard Belleville

unread,
Oct 20, 2021, 2:15:44 PM10/20/21
to grpc.io
If the precompiled binaries do not meet the constraints of your runtime environment, you can also build from source using pip install --no-binary. Alternatively, you could check out the artifacts hosted at piwheels.

p.o.seidon

unread,
Oct 21, 2021, 2:07:03 PM10/21/21
to grpc.io
--no-binary=grpcio
--no-binary=grpcio-tools

Worx. Thank you so much!

Cheers Paul

Antonio Orozco

unread,
Oct 25, 2021, 11:14:36 PM10/25/21
to grpc.io
Hi,

Running into the same problem, "--no-binary=grpcio" did not work for me. What are the exact commands that you ran?

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

p.o.seidon

unread,
Nov 27, 2021, 6:07:54 AM11/27/21
to grpc.io
sudo pip3 install grpcio -tools -U --no-binary=grpcio --no-binary=grpcio-tools

p.o.seidon

unread,
Nov 27, 2021, 6:16:59 AM11/27/21
to grpc.io
Had a look into my install script to be precise. There it reads:
os.system( "sudo pip3 install -U grpcio --no-binary=grpcio")
os.system( "sudo pip3 install -U grpcio-tools --no-binary=grpcio-tools")

Cheers
Paul

Christopher Connor

unread,
Jan 4, 2022, 9:33:52 AMJan 4
to grpc.io
Hi,  

I am running into the same issue with Google Cloud IOT API  on Raspberry PI 4.  Tried the above commands to re-install the grpcio modules, but still not working.  

  File "/home/pi/.local/lib/python3.7/site-packages/google/cloud/iot_v1/__init__.py", line 17, in <module>
    from .services.device_manager import DeviceManagerClient
  File "/home/pi/.local/lib/python3.7/site-packages/google/cloud/iot_v1/services/device_manager/__init__.py", line 16, in <module>
    from .client import DeviceManagerClient
  File "/home/pi/.local/lib/python3.7/site-packages/google/cloud/iot_v1/services/device_manager/client.py", line 25, in <module>
    from google.api_core import gapic_v1  # type: ignore
  File "/home/pi/.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/pi/.local/lib/python3.7/site-packages/google/api_core/gapic_v1/config.py", line 23, in <module>
    import grpc
  File "/home/pi/.local/lib/python3.7/site-packages/grpc/__init__.py", line 22, in <module>
    from grpc import _compression
  File "/home/pi/.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/pi/.local/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-gnueabihf.so)

Info of the Pi:

OS Release notes:

$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Debian version:
$ cat /etc/debian_version
10.11

Kernel version:
$ uname -a
Linux raspberrypi 5.10.63-v7l+ #1496 SMP Wed Dec 1 15:58:56 GMT 2021 armv7l GNU/Linux

Richard Mejia

unread,
Jan 27, 2022, 3:43:17 PMJan 27
to grpc.io

Hola, tenego el mismo problema, alguna solucion?

Antonio Orozco

unread,
Jan 27, 2022, 5:35:59 PMJan 27
to grpc.io
No solution yet. If you really want to use python api package, you may need to install ubuntu or other supported os. Otherwise, use other package for C++, Go (those work for me).

Richard Mejia

unread,
Jan 27, 2022, 6:43:39 PMJan 27
to grpc.io
Mi problema sucedía con el raspbian buster recien descargado en raspberry pi4, al momento de llamar a la biblioteca de google cloud vision. Encontré que tenia instalado la versión de grpcio==1.43.0, he degradado a la version grpcio==1.40.0. El problema ha desaparecido.

Antonio Orozco

unread,
Jan 27, 2022, 11:01:29 PMJan 27
to grpc.io
That is great to know. I think I tried installing that version of grpcio, but was not able to. When you get the chance, please post the commands you ran to downgrade/reinstall version 1.40.0, thanks.

Iestyn Lloyd

unread,
May 7, 2022, 3:53:26 AMMay 7
to grpc.io
I found this thread via Google, and have fixed for me, so thought i'd share for future Googlers.
I tried everything, including breaking everything and having to re-image my Pi from a backup..

1. Uninstall the offending packages. 
Using pip list, check your virtual env if you're using one, and remove from there too. Remove from everywhere. Set it on fire.

pip uninstall grpcio 
pip uninstall grpcio-status 

Then install an earlier version of grpcio and grpcio-status. Not sure if something broke in a recent one? 

pip install grpcio==1.44.0 --no-binary=grpcio 
pip install grpcio-tools==1.44.0 --no-binary=grpcio-tools

This then fixed the GLIBC_2.33 not found for me.

Kenny Tovar

unread,
May 9, 2022, 11:36:24 PMMay 9
to grpc.io
Thank you for this.  I had the same issue and your instructions resolved it for me.

Nick Locascio

unread,
May 26, 2022, 5:19:04 PMMay 26
to grpc.io
How long did it take for this solution to work? I ran the first new install command and it is taking forever to install. Just wanted to see if this is normal or not.

Jithish J

unread,
May 30, 2022, 11:05:36 PMMay 30
to grpc.io
Worked for me too!. Takes 15-20 minutes.

obinna _Ac

unread,
Jun 27, 2022, 1:59:03 AMJun 27
to grpc.io
thanks, this worked for me

Amanda Reich

unread,
Aug 9, 2022, 11:26:21 AMAug 9
to grpc.io
hello! I'm still having this issue and this solution has not worked. I get the message "running setup.py install for grpcio", and it never completes the installation. I've even let it run for a full day. are there any other solutions? 
Reply all
Reply to author
Forward
0 new messages