krmanik / Sentence-Adder-Anki-Addon

Add sentences to Anki editor window in one click
GNU Affero General Public License v3.0
14 stars 6 forks source link

ModuleNotFoundError: No module named 'PyQt5' on MacOs #25

Open Lenanetka opened 8 months ago

Lenanetka commented 8 months ago

Other addons don't need it so I guess that it's not ok?

Anki 23.10.1 (fac9e0ee) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3 Platform: macOS-13.5.2-arm64-arm-64bit Flags: frz=True ao=True sv=3 Add-ons, last update check: 2023-12-23 21:25:04

When loading Sentence adder for any language with batch add option: Traceback (most recent call last): File "aqt.addons", line 245, in loadAddons File "/Users/lenanetka/Library/Application Support/Anki2/addons21/1682655437/init.py", line 22, in from PyQt5 import QtWidgets, QtCore ModuleNotFoundError: No module named 'PyQt5'

Lilneo786 commented 8 months ago

open a terminal in ur macoS and check if you have pip installed: pip --version

if you dont have it installed then install it: python -m ensurepip --default-pip

Activate your Anki Python environment and install:

pip install PyQt5

Lenanetka commented 8 months ago

Thank you, I thought about it but raised a bug because it was not mentioned as "must do" in description and all my other addons don't need to install something. You can close the bug if you are sure that it doesn't need any changes.

krmanik commented 8 months ago

Next version will have the fix.

krmanik commented 6 months ago

I have updated the addon try again and let me know if it is solved or not.