ModelScope这个是缺少GLIBCXX_3.4.29'吗?参考:[2023-12-04 10:59:41] Traceback (most recent call last):
[2023-12-04 10:59:41] File "app.py", line 20, in <module>
[2023-12-04 10:59:41] from infer import infer, latest_version, get_net_g, infer_multilang
[2023-12-04 10:59:41] File "/home/studio_service/studio_file/PROJECT/infer.py", line 13, in <module>
[2023-12-04 10:59:41] from text import cleaned_text_to_sequence, get_bert
[2023-12-04 10:59:41] File "/home/studio_service/studio_file/PROJECT/text/__init__.py", line 57, in <module>
[2023-12-04 10:59:41] init_openjtalk()
[2023-12-04 10:59:41] File "/home/studio_service/studio_file/PROJECT/text/__init__.py", line 52, in init_openjtalk
[2023-12-04 10:59:41] import pyopenjtalk
[2023-12-04 10:59:41] File "/opt/conda/lib/python3.8/site-packages/pyopenjtalk/__init__.py", line 11, in <module>
[2023-12-04 10:59:41] from pyopenjtalk.openjtalk import OpenJTalk
[2023-12-04 10:59:41] ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version
GLIBCXX_3.4.29' not found (required by /opt/conda/lib/python3.8/site-packages/pyopenjtalk/openjtalk.cpython-38-x86_64-linux-gnu.so)
[2023-12-04 10:59:41] [2023-12-04 10:59:41 +0800] [1039] [INFO] 127.0.0.1:36448 GET /service/status 1.0 200 43 3906
[2023-12-04 10:59:41] [2023-12-04 10:59:41 +0800] [1039] [INFO] 127.0.0.1:36448 GET /service/status 1.0 - - 4780
[2023-12-04 10:59:42] [2023-12-04 10:59:42,993][ERROR] project_working_process exit code 1
[2023-12-04 10:59:42] [2023-12-04 10:59:42,993][INFO] change status to FAILED
这个错误是由于你的系统中缺少 GLIBCXX_3.4.29
版本的 C++ 库。libstdc++.so.6
是一个重要的C++标准库,它包含了很多基本的数据结构和算法,而 GLIBCXX_3.4.29
是其中的一个版本。
要解决这个问题,你可以尝试以下方法:
升级你的系统中的 libstdc++.so.6
库:
sudo apt-get update && sudo apt-get upgrade libstdc++6
命令。安装或更新支持 GLIBCXX_3.4.29
的软件包: