View Single Post
Old 05-17-2024, 10:57 AM   #3
dandman
Enthusiast
dandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watchdandman is clearly one to watch
 
Posts: 29
Karma: 10545
Join Date: May 2024
Device: none
the spell issue was in the referenced post i mentioned, thanks for that, i fixed it, but now i get:

Code:
calibre, version 7.10.0
שגיאה: Unhandled exception: <b>ModuleNotFoundError</b>:No module named 'fuzzywuzzy'

calibre 7.10  embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.11.5
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: he
EXE path: C:\Program Files\Calibre2\calibre.exe
Successfully initialized third party plugins: Library Genesis (1, 2, 0) && Reading List (1, 15, 4)
Traceback (most recent call last):
  File "calibre\gui2\preferences\plugins.py", line 322, in add_plugin
  File "calibre\customize\ui.py", line 525, in add_plugin
  File "calibre\customize\ui.py", line 76, in load_plugin
  File "calibre\customize\zipplugin.py", line 306, in load
  File "importlib\__init__.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "calibre\customize\zipplugin.py", line 205, in exec_module
  File "calibre_plugins.evrit2.__init__", line 9, in <module>
  File "calibre\customize\zipplugin.py", line 205, in exec_module
  File "calibre_plugins.evrit2.fuzzywuzzy.fuzz", line 14, in <module>
  File "calibre\customize\zipplugin.py", line 205, in exec_module
  File "calibre_plugins.evrit2.fuzzywuzzy.utils", line 5, in <module>
ModuleNotFoundError: No module named 'fuzzywuzzy'
my zip structure is:

Code:
evrit2/
│
├── __init__.py
├── readme.txt
├── fuzzywuzzy/
│   ├── __init__.py
│   ├── fuzz.py
│   └── ... (more files)
and my code import looks like this:

Code:
import json
import re
import time
import unicodedata
from collections.abc import Iterable, Mapping
from queue import Empty, Queue
from threading import Event
from typing import Callable
from calibre_plugins.evrit2.fuzzywuzzy import fuzz
from calibre.ebooks.BeautifulSoup import BeautifulSoup
from calibre.ebooks.metadata.book.base import Metadata
from calibre.ebooks.metadata.sources.base import Source
from calibre.utils.logging import Log
from calibre.utils.date import parse_date, utcnow

...

Last edited by dandman; 05-17-2024 at 11:01 AM.
dandman is offline   Reply With Quote