【问题标题】:Having trouble with the aiy-python-wheels on Raspberry Pi 3. How do I resolve incompatible glibc issue?Raspberry Pi 3 上的 aiy-python-wheels 出现问题。如何解决不兼容的 glibc 问题?
【发布时间】:2021-11-20 01:36:19
【问题描述】:

我得到了一个 AIY 语音工具包 v1 并且卡在了 assistant_grpc_demo.py 中,因为它在 grpc 的导入语句中失败了。我应该已经安装了所有东西,但 google.auth.transport 似乎找不到它。我正在使用 pi 3 A+。以下是我使用的终端命令及其输出。

pi@raspberrypi:~ $ cat testinput.py 
import google.auth.transport.grpc
pi@raspberrypi:~ $ python3 testinput.py
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/google/auth/transport/grpc.py", line 30, 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)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "testinput.py", line 1, in <module>
    import google.auth.transport.grpc
  File "/home/pi/.local/lib/python3.7/site-packages/google/auth/transport/grpc.py", line 37, in <module>
    caught_exc,
  File "<string>", line 3, in raise_from
ImportError: gRPC is not installed, please install the grpcio package to use the gRPC transport.

*也许 glibc 部分是问题所在。不知道如何解决这个问题,因为我已经有了 libc6 2.28。有没有办法让 aiy-python-wheels 与我的设置或以前的版本一起使用。已经尝试过在 2018 年 4 月 13 日构建的预构建官方镜像,所有内容都已设置好,但无法启动。尝试手动下载所有软件包。 assistant_library_with_button.sh 虽然有效。

【问题讨论】:

    标签: python raspberry-pi grpc glibc google-authentication


    【解决方案1】:

    不知道如何解决,因为我已经有 libc6 2.28

    错误消息说:.../site-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-gnueabihf.so 需要 GLIBC_2.33

    您的libc6 太旧了该 gRPC 包无法工作 - 它是在较新的系统上编译的。

    您必须:

    • 获取不同的 gRPC 包 - 一个编译并适合在基于 GLIBC-2.28(或更早版本)的系统上运行的包,或者
    • 获取不同的 GLIBC 包(2.33 或更高版本)。

    【讨论】:

      猜你喜欢
      • 2012-09-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-24
      相关资源
      最近更新 更多