dmMaze / BallonsTranslator

深度学习辅助漫画翻译工具, 支持一键机翻和简单的图像/文本编辑 | Yet another computer-aided comic/manga translation tool powered by deeplearning
GNU General Public License v3.0
2.25k stars 150 forks source link

fix ModuleNotFoundError: No module named 'cv2' #500

Closed lmhinnel closed 3 weeks ago

lmhinnel commented 3 weeks ago

Launch in Ubuntu 22.04.4 LTS get this error.

python3 launch.py

/home/lmhinnoc/Apps/BallonsTranslator/launch.py:10: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources py version: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] py executable: /usr/bin/python3 version: 1.4.0 branch: dev Commit hash: 330af93bdad410bccae8faadaaa2f831c8a2e6f1 Traceback (most recent call last): File "/home/lmhinnoc/Apps/BallonsTranslator/launch.py", line 288, in main() File "/home/lmhinnoc/Apps/BallonsTranslator/launch.py", line 156, in main from utils import config as program_config File "/home/lmhinnoc/Apps/BallonsTranslator/utils/config.py", line 5, in from .fontformat import FontFormat File "/home/lmhinnoc/Apps/BallonsTranslator/utils/fontformat.py", line 3, in from .textblock import TextBlock File "/home/lmhinnoc/Apps/BallonsTranslator/utils/textblock.py", line 6, in import cv2 ModuleNotFoundError: No module named 'cv2'