【问题标题】:Problem with google assistant on RaspberryPi树莓派上的谷歌助手问题
【发布时间】:2019-10-02 17:45:43
【问题描述】:
尝试在我的 Raspberry 上运行“googlesamples-assistant-pushtotalk”时出现此错误。
有谁知道如何解决这个问题?
导入错误:/home/pi/env/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-gnueabihf.so:未定义符号:__atomic_exchange_8
【问题讨论】:
标签:
raspberry-pi3
home-assistant
【解决方案1】:
我在使用 google 云视觉库时遇到了同样的问题。这为我解决了问题:
pip3 install 'grpcio==1.23.0' --force-reinstall
【解决方案2】:
另一种解决方法是添加:
export LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libatomic.so.1.2.0
或您拥有的任何 libatomic 版本。
例如:
export LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libatomic.so.1.2.0
python3 some_script_using_grpcio.py