BallonsTranslator
BallonsTranslator copied to clipboard
Update requirements.txt
chatgpt helped me to fix the requirements file for "ModuleNotFoundError: No module named 'urllib3.packages.six.moves'" issues
It seems like the issue you're facing is with the urllib3 package. To fix this, you can try specifying a version of urllib3 that is compatible with your other packages. You can also try upgrading urllib3 to the latest version. Here's an updated requirements.txt file with a fixed urllib3 version and some other minor adjustments:
PyQt6-Qt6==6.4.2 # for qt>6.4.2 , framelesswindow is broken on windows, and text rendering is wrong on macOS PyQt6==6.4.2 #PyQt5>=5.15.9 numpy urllib3>=1.26.6 # https://github.com/psf/requests/issues/5740 jaconv torch torchvision transformers fugashi unidic_lite tqdm opencv-python shapely pyclipper einops termcolor bs4 deepl qtpy spacy-pkuseg sentencepiece ctranslate2 python-docx docx2txt piexif keyboard ordered-set opencc-python-reimplemented requests Pillow beautifulsoup4 colorama openai pyyaml natsort py7zr multivolumefile httpx[socks,brotli] langdetect pywin32; sys_platform == 'win32' winsdk; sys_platform == 'win32' brotlicffi; sys_platform == 'win32' pyobjc-core; sys_platform == 'darwin' pyobjc-framework-cocoa; sys_platform == 'darwin' pyobjc-framework-coreml; sys_platform == 'darwin' pyobjc-framework-quartz; sys_platform == 'darwin' pyobjc-framework-vision; sys_platform == 'darwin'
https://github.com/dmMaze/BallonsTranslator/pull/446
After testing, it does not need to be changed so much, and as long as the latest urllib3 is used on macOS, there will be no error
@aymanharrawi @dmMaze
well, in windows its big problem, just update this line urllib3>=1.26.6 To prevent crashing while trying to launch
#446
After testing, it does not need to be changed so much, and as long as the latest urllib3 is used on macOS, there will be no error
@aymanharrawi @dmMaze
well, in windows its big problem, just update this line
No, so far you're the first to report such problem, and urllib3==1.25.11 works fine with my win11/win10 PCs. Besides, there's a problem with urllib3 != 1.25.11 if system proxy is enabled https://github.com/psf/requests/issues/5740
but using urllib3>=1.26.6 may fix problem if system proxy enabled ? I just used urllib3>=1.26.6 in my requirements file and worked fine perfectly, i didn't able to launch with urllib3 != 1.25.11 , is there a problem just to use urllib3>=1.26.6??
but using urllib3>=1.26.6 may fix problem if system proxy enabled ? I just used urllib3>=1.26.6 in my requirements file and worked fine perfectly, i didn't able to launch with urllib3 != 1.25.11 , is there a problem just to use urllib3>=1.26.6??
What is the major version of your Python environment? Is it 3.11 or 3.12? I am using 3.12 on MacOS, updated urllib3
to the latest version while keeping other dependencies unchanged, and it can run normally. I haven't tried it on Windows yet.
but using urllib3>=1.26.6 may fix problem if system proxy enabled ? I just used urllib3>=1.26.6 in my requirements file and worked fine perfectly, i didn't able to launch with urllib3 != 1.25.11 , is there a problem just to use urllib3>=1.26.6??
What is the major version of your Python environment? Is it 3.11 or 3.12? I am using 3.12 on MacOS, updated
urllib3
to the latest version while keeping other dependencies unchanged, and it can run normally. I haven't tried it on Windows yet.
3.12
this this error that happens when use urllib3 != 1.25.11, it fixed when i used urllib3>=1.26.6 instead
C:\Users\dell\my files\manga\BallonsTranslator>cd C:\Users\dell\my files\manga\BallonsTranslator
C:\Users\dell\my files\manga\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.12.0 (tags/v3.12.0:0fb18b0, Oct 2 2023, 13:03:39) [MSC v.1935 64 bit (AMD64)]
py executable: C:\Users\dell\AppData\Local\Programs\Python\Python312\python.exe
version: 1.4.0
branch: dev
Commit hash: 00e4c9f143971b8541eb54050a620a9a0a53678a
Traceback (most recent call last):
File "C:\Users\dell\my files\manga\BallonsTranslator\launch.py", line 285, in