【发布时间】: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