xxyzz / WordDumb

A calibre plugin that generates Kindle Word Wise and X-Ray files for KFX, AZW3, MOBI and EPUB eBook.
https://xxyzz.github.io/WordDumb/
GNU General Public License v3.0
386 stars 19 forks source link

Suddenly it stops working, can send to my kindle #262

Closed gabrielrv13 closed 1 month ago

gabrielrv13 commented 1 month ago

Checkboxes

Describe the bug and copy the error message

calibre, version 7.18.0 (win32, embedded-python: True) Tonnerre de Brest!: An error occurred, please copy error message then report bug at GitHub.

Starting job: Generating Word Wise e X-Ray for A Fórmula Mágica de Joel Greenblatt para Bater o Mercado de Ações Job: "Generating Word Wise e X-Ray for A Fórmula Mágica de Joel Greenblatt para Bater o Mercado de Ações" failed with error: Traceback (most recent call last): File "calibre\gui2\threaded_jobs.py", line 85, in start_work File "calibre_plugins.worddumb.parse_job", line 210, in do_job File "calibre_plugins.worddumb.utils", line 50, in run_subprocess File "subprocess.py", line 571, in run subprocess.CalledProcessError: Command '['py', 'C:\Users\gabri\AppData\Roaming\calibre\plugins\WordDumb.zip', '{"book_id": 79, "book_path": "C:\\Users\\gabri\\Biblioteca do calibre\\Joel Greenblatt\\A Formula Magica de Joel Greenblatt (79)\\A Formula Magica de Joel Greenb - Joel Greenblatt_en.kfx", "mi": null, "book_fmt": "KFX", "book_lang": "pt", "useragent": "WordDumb/3.33.0 (https://github.com/xxyzz/WordDumb)", "plugin_path": "C:\\Users\\gabri\\AppData\\Roaming\\calibre\\plugins\\WordDumb.zip", "spacy_model": "pt_core_news_lg", "create_ww": true, "create_x": true, "asin": "B086K21JYZ", "acr": "CR!I749E2R4VUQ1ADLK3AD6W384XPWW", "revision": "", "kfx_json": null, "mobi_html": null, "mobi_codec": ""}', '{"search_people": true, "model_size": "lg", "zh_wiki_variant": "cn", "mediawiki_api": "", "add_locator_map": true, "preferred_formats": ["KFX", "EPUB", "AZW3", "AZW", "MOBI"], "use_all_formats": false, "minimal_x_ray_count": 1, "choose_format_manually": false, "wiktionary_gloss_lang": "en", "kindle_gloss_lang": "en", "use_wiktionary_for_kindle": false, "remove_link_styles": false, "python_path": "", "show_change_kindle_ww_lang_warning": true, "ca_wiktionary_difficulty_limit": 5, "cs_wiktionary_difficulty_limit": 5, "da_wiktionary_difficulty_limit": 5, "de_wiktionary_difficulty_limit": 5, "el_wiktionary_difficulty_limit": 5, "en_wiktionary_difficulty_limit": 5, "es_wiktionary_difficulty_limit": 5, "fi_wiktionary_difficulty_limit": 5, "fr_wiktionary_difficulty_limit": 5, "he_wiktionary_difficulty_limit": 5, "hr_wiktionary_difficulty_limit": 5, "it_wiktionary_difficulty_limit": 5, "ja_wiktionary_difficulty_limit": 5, "ko_wiktionary_difficulty_limit": 5, "lt_wiktionary_difficulty_limit": 5, "mk_wiktionary_difficulty_limit": 5, "nl_wiktionary_difficulty_limit": 5, "no_wiktionary_difficulty_limit": 5, "pl_wiktionary_difficulty_limit": 5, "pt_wiktionary_difficulty_limit": 5, "ro_wiktionary_difficulty_limit": 5, "ru_wiktionary_difficulty_limit": 5, "sl_wiktionary_difficulty_limit": 5, "sv_wiktionary_difficulty_limit": 5, "uk_wiktionary_difficulty_limit": 5, "zh_wiktionary_difficulty_limit": 5, "cuda": "cu121", "fandom": "", "last_opened_kindle_lemmas_language": "ca", "use_gpu": false, "use_pos": true}']' returned non-zero exit status 1.

Called with args: (ParseJobData(book_id=79, book_path='C:\Users\gabri\Biblioteca do calibre\Joel Greenblatt\A Formula Magica de Joel Greenblatt (79)\A Formula Magica de Joel Greenb - Joel Greenblatt_en.kfx', mi=<calibre.ebooks.metadata.book.base.Metadata object at 0x00000245BDCDC190>, book_fmt='KFX', book_lang='pt', useragent='WordDumb/3.33.0 (https://github.com/xxyzz/WordDumb)', plugin_path='C:\Users\gabri\AppData\Roaming\calibre\plugins\WordDumb.zip', spacy_model='pt_core_news_lg', create_ww=True, create_x=True, asin='B086K21JYZ', acr='CR!I749E2R4VUQ1ADLK3AD6W384XPWW', revision='', kfx_json=None, mobi_html=None, mobi_codec=''),) {'notifications': <queue.Queue object at 0x00000245B4A58750>, 'abort': <threading.Event at 0x245b4a5a650: unset>, 'log': <calibre.utils.logging.GUILog object at 0x00000245B4A58410>} Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users\gabri\AppData\Roaming\calibre\plugins\WordDumb.zip__main.py", line 37, in File "C:\Users\gabri\AppData\Roaming\calibre\plugins\WordDumb.zip\parse_job.py", line 236, in create_files File "C:\Users\gabri\AppData\Roaming\calibre\plugins\WordDumb.zip\parse_job.py", line 726, in load_spacy File "C:\Users\gabri\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\spacy__init.py", line 13, in from . import pipeline # noqa: F401 ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\gabri\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\spacy\pipeline\init.py", line 1, in from .attributeruler import AttributeRuler File "C:\Users\gabri\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\spacy\pipeline\attributeruler.py", line 8, in from ..language import Language File "C:\Users\gabri\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\spacy\language.py", line 43, in from .pipe_analysis import analyze_pipes, print_pipe_analysis, validate_attrs File "C:\Users\gabri\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\spacy\pipe_analysis.py", line 6, in from .tokens import Doc, Span, Token File "C:\Users\gabri\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\spacy\tokens\init__.py", line 1, in from ._serialize import DocBin File "C:\Users\gabri\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\spacy\tokens_serialize.py", line 14, in from ..vocab import Vocab File "spacy\vocab.pyx", line 1, in init spacy.vocab File "spacy\tokens\doc.pyx", line 49, in init spacy.tokens.doc File "C:\Users\gabri\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\spacy\schemas.py", line 195, in class TokenPatternString(BaseModel): File "C:\Users\gabri\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\pydantic\v1\main.py", line 286, in new cls.try_update_forward_refs() File "C:\Users\gabri\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\pydantic\v1\main.py", line 807, in try_update_forward_refs__ update_model_forward_refs(cls, cls.fields.values(), cls.config.json_encoders, localns, (NameError,)) File "C:\Users\gabri\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\pydantic\v1\typing.py", line 554, in update_model_forward_refs update_field_forward_refs(f, globalns=globalns, localns=localns) File "C:\Users\gabri\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\pydantic\v1\typing.py", line 529, in update_field_forward_refs update_field_forward_refs(sub_f, globalns=globalns, localns=localns) File "C:\Users\gabri\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\pydantic\v1\typing.py", line 520, in update_field_forwardrefs field.type = evaluateforwardref(field.type, globalns, localns or None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\gabri\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\pydantic\v1\typing.py", line 66, in evaluateforwardref return cast(Any, type)._evaluate(globalns, localns, set()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: 'recursive_guard'

Plugin settings and reproduce steps

  1. Conect Kindle via USB
  2. Selecet any book
  3. Run WordDumb
  4. Recive error

Generated files, screenshots or videos

No response

xxyzz commented 1 month ago

Please delete "C:\Users\gabri\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12" and try again.

panikinator commented 1 month ago

I too was facing the same issue removing the folder didn't work but removing/renaming the worddumb.json settings file did the trick for me, just sharing my findings