dmMaze / BallonsTranslator

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

运行launch_win.bat時出現ImportError 无法启动 #419

Closed Kuro-Bit closed 5 months ago

Kuro-Bit commented 5 months ago

C:\Program Files\BallonsTranslator_dev_src_with_gitpython>cd C:\Program Files\BallonsTranslator_dev_src_with_gitpython\ C:\Program Files\BallonsTranslator_dev_src_with_gitpython\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.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] py executable: C:\Program Files\BallonsTranslator_dev_src_with_gitpython\ballontrans_pylibs_win\python.exe version: 1.4.0 branch: dev Commit hash: 5d7aec993a9fc60bd954cb0168d902fd2ef642ca Traceback (most recent call last): File "C:\Program Files\BallonsTranslator_dev_src_with_gitpython\launch.py", line 285, in main() File "C:\Program Files\BallonsTranslator_dev_src_with_gitpython\launch.py", line 152, in main from utils import config as program_config File "C:\Program Files\BallonsTranslator_dev_src_with_gitpython\utils\config.py", line 5, in from .fontformat import FontFormat File "C:\Program Files\BallonsTranslator_dev_src_with_gitpython\utils\fontformat.py", line 3, in from .textblock import TextBlock File "C:\Program Files\BallonsTranslator_dev_src_with_gitpython\utils\textblock.py", line 6, in import cv2 File "C:\Program Files\BallonsTranslator_dev_src_with_gitpython\ballontrans_pylibs_win\lib\site-packages\cv2__init.py", line 181, in bootstrap() File "C:\Program Files\BallonsTranslator_dev_src_with_gitpython\ballontrans_pylibs_win\lib\site-packages\cv2\init.py", line 153, in bootstrap native_module = importlib.import_module("cv2") File "importlib\init__.py", line 126, in import_module if sys.path[0] == BASE_DIR or os.path.realpath(sys.path[0]) == BASE_DIR: ImportError: DLL load failed while importing cv2: The specified module could not be found. Press any key to continue . . .

请问我是少安装了什么程序或是什么步骤呢?

dmMaze commented 5 months ago

试试装这条提到的两个库 https://stackoverflow.com/a/58699644

Kuro-Bit commented 5 months ago

试试装这条提到的两个库 https://stackoverflow.com/a/58699644

非常感谢!我已经成功解决!