Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker error when start v 1.9.0 #580

Closed
hskun opened this issue Feb 8, 2025 · 4 comments
Closed

docker error when start v 1.9.0 #580

hskun opened this issue Feb 8, 2025 · 4 comments

Comments

@hskun
Copy link

hskun commented Feb 8, 2025

raceback (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
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

@zhanghanduo
Copy link

zhanghanduo commented Feb 8, 2025

I also got such error for 1.9.0 when pulling the latest docker image on arm PC. I don't know if #561 could solve such issue.

@H0u5er
Copy link

H0u5er commented Feb 12, 2025

I had encountered the same issue on my MacBook while pull the image version 1.9.0. However, the version 1.8.9 is running normally.

Environment:
macOS version: Sequoia 15.3
Docker desktop version: 4.38.0

The docker logs as below:

2025-02-12 10:22:09 /usr/local/lib/python3.12/site-packages/stanza/models/common/beam.py:6: SyntaxWarning: invalid escape sequence '\ '
2025-02-12 10:22:09 """
2025-02-12 10:22:09 Traceback (most recent call last):
2025-02-12 10:22:09 File "/usr/local/bin/pdf2zh", line 4, in
2025-02-12 10:22:09 from pdf2zh.pdf2zh import main
2025-02-12 10:22:09 File "/usr/local/lib/python3.12/site-packages/pdf2zh/init.py", line 2, in
2025-02-12 10:22:09 from pdf2zh.high_level import translate, translate_stream
2025-02-12 10:22:09 File "/usr/local/lib/python3.12/site-packages/pdf2zh/high_level.py", line 25, in
2025-02-12 10:22:09 from pdf2zh.doclayout import OnnxModel
2025-02-12 10:22:09 File "/usr/local/lib/python3.12/site-packages/pdf2zh/doclayout.py", line 4, in
2025-02-12 10:22:09 import cv2
2025-02-12 10:22:09 File "/usr/local/lib/python3.12/site-packages/cv2/init.py", line 181, in
2025-02-12 10:22:09 bootstrap()
2025-02-12 10:22:09 File "/usr/local/lib/python3.12/site-packages/cv2/init.py", line 153, in bootstrap
2025-02-12 10:22:09 native_module = importlib.import_module("cv2")
2025-02-12 10:22:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-12 10:22:09 File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
2025-02-12 10:22:09 return _bootstrap._gcd_import(name[level:], package, level)
2025-02-12 10:22:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-12 10:22:09 ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

@awwaawwa
Copy link
Collaborator

awwaawwa commented Feb 12, 2025

This issue has been fixed in the latest development version. Please wait patiently for the next release.

@awwaawwa awwaawwa marked this as a duplicate of #603 Feb 12, 2025
@awwaawwa awwaawwa pinned this issue Feb 12, 2025
@Ivesfsy
Copy link

Ivesfsy commented Feb 13, 2025

I encountered the same issue, and version 1.8.9 works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants