You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.9.0 docker启动报错:
/usr/local/lib/python3.12/site-packages/stanza/models/common/beam.py:6: SyntaxWarning: invalid escape sequence '\ '
"""
Traceback (most recent call last):
File "/usr/local/bin/pdf2zh", line 4, in
from pdf2zh.pdf2zh import main
File "/usr/local/lib/python3.12/site-packages/pdf2zh/init.py", line 2, in
from pdf2zh.high_level import translate, translate_stream
File "/usr/local/lib/python3.12/site-packages/pdf2zh/high_level.py", line 25, in
from pdf2zh.doclayout import OnnxModel
File "/usr/local/lib/python3.12/site-packages/pdf2zh/doclayout.py", line 4, in
import cv2
File "/usr/local/lib/python3.12/site-packages/cv2/init.py", line 181, in
bootstrap()
File "/usr/local/lib/python3.12/site-packages/cv2/init.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
问题描述
1.9.0 docker启动报错:
/usr/local/lib/python3.12/site-packages/stanza/models/common/beam.py:6: SyntaxWarning: invalid escape sequence '\ '
"""
Traceback (most recent call last):
File "/usr/local/bin/pdf2zh", line 4, in
from pdf2zh.pdf2zh import main
File "/usr/local/lib/python3.12/site-packages/pdf2zh/init.py", line 2, in
from pdf2zh.high_level import translate, translate_stream
File "/usr/local/lib/python3.12/site-packages/pdf2zh/high_level.py", line 25, in
from pdf2zh.doclayout import OnnxModel
File "/usr/local/lib/python3.12/site-packages/pdf2zh/doclayout.py", line 4, in
import cv2
File "/usr/local/lib/python3.12/site-packages/cv2/init.py", line 181, in
bootstrap()
File "/usr/local/lib/python3.12/site-packages/cv2/init.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
测试文档
services:
pdfmathtranslate:
image: byaidu/pdf2zh:v1.9.0
container_name: pdfmathtranslate
restart: unless-stopped
ports:
- 7860:7860
volumes:
- ./data/pdf2zh_files:/app/pdf2zh_files
The text was updated successfully, but these errors were encountered: