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

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

Closed
Kuro-Bit opened this issue Mar 28, 2024 · 2 comments
Closed

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

Kuro-Bit opened this issue Mar 28, 2024 · 2 comments

Comments

@Kuro-Bit
Copy link

Kuro-Bit commented Mar 28, 2024

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: 5d7aec9
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 . . .

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

@Kuro-Bit Kuro-Bit changed the title 運行launch_win.bat時出現ImportError 無法啓動 运行launch_win.bat時出現ImportError 无法启动 Mar 28, 2024
@dmMaze
Copy link
Owner

dmMaze commented Mar 28, 2024

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

@Kuro-Bit
Copy link
Author

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

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

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

2 participants