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

安裝時發生錯誤 #402

Open
TTUGrice opened this issue Mar 13, 2024 · 2 comments
Open

安裝時發生錯誤 #402

TTUGrice opened this issue Mar 13, 2024 · 2 comments

Comments

@TTUGrice
Copy link

錯誤資訊
ImportError: cannot import name 'is_arabic' from 'charset_normalizer.utils'

請問我該如何修復它?

@TTUGrice
Copy link
Author

更新一下完整的log

E:\BallonTranslator\BallonsTranslator_dev_src_with_gitpython>cd E:\BallonTranslator\BallonsTranslator_dev_src_with_gitpython
E:\BallonTranslator\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: E:\BallonTranslator\BallonsTranslator_dev_src_with_gitpython\python.exe
version: 1.4.0
branch: dev
Commit hash: 00b3896
Traceback (most recent call last):
File "E:\BallonTranslator\BallonsTranslator_dev_src_with_gitpython\lib\site-packages\requests\compat.py", line 11, in
import chardet
ModuleNotFoundError: No module named 'chardet'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "E:\BallonTranslator\BallonsTranslator_dev_src_with_gitpython\launch.py", line 273, in
main()
File "E:\BallonTranslator\BallonsTranslator_dev_src_with_gitpython\launch.py", line 149, in main
from utils import config as program_config
File "E:\BallonTranslator\BallonsTranslator_dev_src_with_gitpython\utils\config.py", line 8, in
from .io_utils import json_dump_nested_obj
File "E:\BallonTranslator\BallonsTranslator_dev_src_with_gitpython\utils\io_utils.py", line 9, in
import requests
File "E:\BallonTranslator\BallonsTranslator_dev_src_with_gitpython\lib\site-packages\requests_init_.py", line 45, in
from .exceptions import RequestsDependencyWarning
File "E:\BallonTranslator\BallonsTranslator_dev_src_with_gitpython\lib\site-packages\requests\exceptions.py", line 9, in
from .compat import JSONDecodeError as CompatJSONDecodeError
File "E:\BallonTranslator\BallonsTranslator_dev_src_with_gitpython\lib\site-packages\requests\compat.py", line 13, in
import charset_normalizer as chardet
File "E:\BallonTranslator\BallonsTranslator_dev_src_with_gitpython\lib\site-packages\charset_normalizer_init_.py", line 24, in
from .api import from_bytes, from_fp, from_path, normalize
File "E:\BallonTranslator\BallonsTranslator_dev_src_with_gitpython\lib\site-packages\charset_normalizer\api.py", line 7, in
from .cd import (
File "E:\BallonTranslator\BallonsTranslator_dev_src_with_gitpython\lib\site-packages\charset_normalizer\cd.py", line 9, in
from .md import is_suspiciously_successive_range
File "charset_normalizer\md.py", line 10, in
ImportError: cannot import name 'is_arabic' from 'charset_normalizer.utils' (E:\BallonTranslator\BallonsTranslator_dev_src_with_gitpython\lib\site-packages\charset_normalizer\utils.py)

@dmMaze
Copy link
Owner

dmMaze commented Mar 13, 2024

BallonsTranslator_dev_src_with_gitpython 这个目录下的 python 是你自己下了塞进去的?这个包不需要额外下 python,我建议你重新解压出一个干净的 BallonsTranslator_dev_src_with_gitpython 然后直接运行 launch_win.bat

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