google python-speech sample is broken on raspberry pi after grpcio 1.41.0

241 views
Skip to first unread message

Louie

unread,
Dec 23, 2021, 2:18:36 PM12/23/21
to grp...@googlegroups.com, googleapi...@google.com
Hi,

okay i not sure i am sending this feedback to right group at google but hopefully you can forward it to the group that maintains google cloud python samples
( Leah Cole  @ google is the lead for google cloud python samples  you could forward this to Leah)

i am using this https://github.com/googleapis/python-speech  sample to test google-cloud-speech on a raspberry pi running the latest buster os version

reproduce case
---------------------
open python-speech in pycharm
create venv using python 3.7
install google-cloud-speech  (this install grpcio 1.43.0)
install pyaudio
run python-speech/samples/microphone/transcribe_streaming_infinite.py  and the following error appears:

ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /[prj path]/python-speech-main/venv/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-gnueabihf.so)


one fix
----------
- uninstall grpcio 1.43
- install grpcio 1.41
- sample now works


bottom line
--------------
the raspberry pi buster or bullseye os versions currently does use glibc 2.33

Louie Genduso
Westfield, IN usa




Lidi Zheng

unread,
Dec 29, 2021, 1:07:08 PM12/29/21
to grpc.io
Hi Louie,

After 1.41, I'm not aware of a change that might require a newer glibc. Usually, pip will read the wheel's metadata and advice on if the given wheel will work or not on that platform.

For immediate fix, I would recommend using Raspberry Pi officially supported Python wheels: https://www.piwheels.org/project/grpcio/

glibc 2.33 is definitely too new. Can you open an issue on GitHub to track this problem? https://github.com/grpc/grpc/issues

Cheers,
Lidi Zheng
Reply all
Reply to author
Forward
0 new messages