grpc / grpc

The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)

Home Page:https://grpc.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`GLIBC_2.29' not found error when runing the helloworld server example in python

malith1992 opened this issue · comments

What version of gRPC and what language are you using?

grpcio==1.46.3
grpcio-tools==1.46.3

Python Language

What operating system (Linux, Windows,...) and version?

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

What runtime / compiler are you using (e.g. python version or version of gcc)

python

What did you do?

I was trying to run the "greeter_server.py" file from the "/grpc/examples/python/helloworld" directory.

What did you expect to see?

I was excepting to see the server start without any error.

What did you see instead?

I got the following error message

Traceback (most recent call last):
File "greeter_server.py", line 19, in
import grpc
File "/home/tqc_adm/.local/lib/python3.7/site-packages/grpc/init.py", line 22, in
from grpc import _compression
File "/home/tqc_adm/.local/lib/python3.7/site-packages/grpc/_compression.py", line 15, in
from grpc._cython import cygrpc
ImportError: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29' not found (required by /home/tqc_adm/.local/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-gnueabihf.so)

Anything else we should know about your project / environment?

How did you install grpcio? pip? Can you please include the install logs?

This error message suggests that the artifact you installed is not compatible with your environment (wrong libc version). Have you tried installing from piwheel?

How did you install grpcio? pip? Can you please include the install logs?

This error message suggests that the artifact you installed is not compatible with your environment (wrong libc version). Have you tried installing from piwheel?

I have reinstalled the grpcio package from piwheel and the error is not there anymore. Thank you,

I'm getting a very similar error with all versions above 1.44.0:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/ben/.local/lib/python3.9/site-packages/snsary/contrib/google/__init__.py", line 1, in <module>
    from .bigquery import BigQueryOutput
  File "/home/ben/.local/lib/python3.9/site-packages/snsary/contrib/google/bigquery.py", line 51, in <module>
    from google.cloud import bigquery_storage_v1
  File "/home/ben/.local/lib/python3.9/site-packages/google/cloud/bigquery_storage_v1/__init__.py", line 25, in <module>
    from google.cloud.bigquery_storage_v1 import client
  File "/home/ben/.local/lib/python3.9/site-packages/google/cloud/bigquery_storage_v1/client.py", line 24, in <module>
    import google.api_core.gapic_v1.method
  File "/home/ben/.local/lib/python3.9/site-packages/google/api_core/gapic_v1/__init__.py", line 16, in <module>
    from google.api_core.gapic_v1 import config
  File "/home/ben/.local/lib/python3.9/site-packages/google/api_core/gapic_v1/config.py", line 23, in <module>
    import grpc
  File "/home/ben/.local/lib/python3.9/site-packages/grpc/__init__.py", line 22, in <module>
    from grpc import _compression
  File "/home/ben/.local/lib/python3.9/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/ben/.local/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-arm-linux-gnueabihf.so)

I can't work out what has changed after 1.44.0 that's causing the problem. My libc version is 2.31 and the source package is as up-to-date as it can be (apt update && apt install libc6).

ldd --version
ldd (Debian GLIBC 2.31-13+rpt2+rpi1+deb11u3) 2.31

Here's the install log:

pip install --upgrade grpcio
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: grpcio in ./.local/lib/python3.9/site-packages (1.44.0)
Collecting grpcio
  Using cached grpcio-1.47.0-cp39-cp39-linux_armv7l.whl (69.6 MB)
Requirement already satisfied: six>=1.5.2 in ./.local/lib/python3.9/site-packages (from grpcio) (1.16.0)
Installing collected packages: grpcio