Grpc 在 arm CPU 上要求 glibc 2.33 debian buster。

huangapple go评论84阅读模式
英文:

Grpc requiring glibc 2.33 debian buster on arm cpu

问题

以下是代码部分的翻译:

Traceback (most recent call last):
  File "/home/steven/GassistPi/src/main.py", line 25, in <module>
    from google.cloud import speech
  File "/home/steven/env/lib/python3.7/site-packages/google/cloud/speech.py", line 19, in <module>
    from google.cloud.speech_v1 import SpeechClient
  File "/home/steven/env/lib/python3.7/site-packages/google/cloud/speech_v1/__init__.py", line 17, in <module>
    from google.cloud.speech_v1.gapic import speech_client
  File "/home/steven/env/lib/python3.7/site-packages/google/cloud/speech_v1/gapic/speech_client.py", line 22, in <module>
    import google.api_core.gapic_v1.client_info
  File "/home/steven/env/lib/python3.7/site-packages/google/api_core/gapic_v1/__init__.py", line 16, in <module>
    from google.api_core.gapic_v1 import config
  File "/home/steven/env/lib/python3.7/site-packages/google/api_core/gapic_v1/config.py", line 23, in <module>
    import grpc
  File "/home/steven/env/lib/python3.7/site-packages/grpc/__init__.py", line 22, in <module>
    from grpc import _compression
  File "/home/steven/env/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/steven/env/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-gnueabihf.so)

我正在尝试设置这个项目GassistPi,但是当我运行主要的Python脚本时,出现了上面的错误。

Debian Buster默认版本是2.28。我正在一个Python虚拟环境中运行它。有没有办法告诉Python虚拟环境使用我已经在不同文件夹中编译和安装的glibc?

我通过运行测试脚本来测试glibc的安装,针对我的Hello World C程序。它可以正常工作。

英文:
Traceback (most recent call last):
  File &quot;/home/steven/GassistPi/src/main.py&quot;, line 25, in &lt;module&gt;
    from google.cloud import speech
  File &quot;/home/steven/env/lib/python3.7/site-packages/google/cloud/speech.py&quot;, line 19, in &lt;module&gt;
    from google.cloud.speech_v1 import SpeechClient
  File &quot;/home/steven/env/lib/python3.7/site-packages/google/cloud/speech_v1/__init__.py&quot;, line 17, in &lt;module&gt;
    from google.cloud.speech_v1.gapic import speech_client
  File &quot;/home/steven/env/lib/python3.7/site-packages/google/cloud/speech_v1/gapic/speech_client.py&quot;, line 22, in &lt;module&gt;
    import google.api_core.gapic_v1.client_info
  File &quot;/home/steven/env/lib/python3.7/site-packages/google/api_core/gapic_v1/__init__.py&quot;, line 16, in &lt;module&gt;
    from google.api_core.gapic_v1 import config
  File &quot;/home/steven/env/lib/python3.7/site-packages/google/api_core/gapic_v1/config.py&quot;, line 23, in &lt;module&gt;
    import grpc
  File &quot;/home/steven/env/lib/python3.7/site-packages/grpc/__init__.py&quot;, line 22, in &lt;module&gt;
    from grpc import _compression
  File &quot;/home/steven/env/lib/python3.7/site-packages/grpc/_compression.py&quot;, line 15, in &lt;module&gt;
    from grpc._cython import cygrpc
ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33&#39; not found (required by /home/steven/env/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-gnueabihf.so)

I am trying to setup this project GassistPi but I am getting the error above when I run the main python script.

The default version that came with debian buster is 2.28. I am running this in a python virtual envirorment. Is there a way I can tell the python virtual enviroment to use the glibc I have compiled and installed in a different folder?

I have tested the glibc install by running the testrun script againest my hello world c program. It works.

答案1

得分: 0

没有。详细答案在这里

英文:

> Is there a way I can tell the python virtual enviroment to use the glibc I have compiled and installed in a different folder?

No. Detailed answer here.

huangapple
  • 本文由 发表于 2023年8月4日 08:52:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/76832348.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定