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

xray fails #239

Closed
3 tasks done
jwp123x opened this issue Jul 7, 2024 · 2 comments
Closed
3 tasks done

xray fails #239

jwp123x opened this issue Jul 7, 2024 · 2 comments

Comments

@jwp123x
Copy link

jwp123x commented Jul 7, 2024

Checkboxes

  • I have read the installation and usage documents.
  • I have not found similar open/closed issue or disscussion.
  • Reboot doesn't fix the problem.

Describe the bug and copy the error message

calibre, version 7.13.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 and X-Ray for The Cloisters: The Secret History for a New Generation
Job: "Generating Word Wise and X-Ray for The Cloisters: The Secret History for a New Generation" 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 211, in do_job
File "calibre_plugins.worddumb.utils", line 53, in run_subprocess
File "subprocess.py", line 571, in run
subprocess.CalledProcessError: Command '['py', 'C:\Users\adminx\AppData\Roaming\calibre\plugins\WordDumb.zip', '{"book_id": 448, "book_path": "D:\\Users\\Adminx\\Documents\\Calibre Library\\Katy Hays\\The Cloisters_ The Secret History f (448)\\The Cloisters_ The Secret Histo - Katy Hays.azw3", "mi": null, "book_fmt": "AZW3", "book_lang": "en", "useragent": "WordDumb/3.32.0 (https://github.com/xxyzz/WordDumb)", "plugin_path": "C:\\Users\\adminx\\AppData\\Roaming\\calibre\\plugins\\WordDumb.zip", "spacy_model": "en_core_web_md", "create_ww": true, "create_x": true, "asin": "BBWD2OZ7XK", "acr": "The_Cloisters__The_Secret_Histo", "revision": "2a6ad846", "kfx_json": null, "mobi_html": null, "mobi_codec": "utf-8"}', '{"use_pos": true, "search_people": true, "model_size": "md", "zh_wiki_variant": "cn", "mediawiki_api": "", "add_locator_map": true, "preferred_formats": ["KFX", "AZW3", "AZW", "MOBI", "EPUB"], "use_all_formats": false, "minimal_x_ray_count": 1, "choose_format_manually": true, "wiktionary_gloss_lang": "en", "kindle_gloss_lang": "en", "use_gpu": false, "cuda": "cu121", "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, "fandom": "", "last_opened_kindle_lemmas_language": "en", "last_opened_wiktionary_lemmas_language": "en"}']' returned non-zero exit status 1.

Called with args: (ParseJobData(book_id=448, book_path='D:\Users\Adminx\Documents\Calibre Library\Katy Hays\The Cloisters_ The Secret History f (448)\The Cloisters_ The Secret Histo - Katy Hays.azw3', mi=<calibre.ebooks.metadata.book.base.Metadata object at 0x00000263AA1EFAD0>, book_fmt='AZW3', book_lang='en', useragent='WordDumb/3.32.0 (https://github.com/xxyzz/WordDumb)', plugin_path='C:\Users\adminx\AppData\Roaming\calibre\plugins\WordDumb.zip', spacy_model='en_core_web_md', create_ww=True, create_x=True, asin='BBWD2OZ7XK', acr='The_Cloisters__The_Secret_Histo', revision='2a6ad846', kfx_json=None, mobi_html=None, mobi_codec='utf-8'),) {'notifications': <queue.Queue object at 0x00000263AA24BF50>, 'abort': <threading.Event at 0x263aa24bb10: unset>, 'log': <calibre.utils.logging.GUILog object at 0x00000263AA24BA90>}
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\adminx\AppData\Roaming\calibre\plugins\WordDumb.zip_main
.py", line 37, in
File "C:\Users\adminx\AppData\Roaming\calibre\plugins\WordDumb.zip\parse_job.py", line 237, in create_files
File "C:\Users\adminx\AppData\Roaming\calibre\plugins\WordDumb.zip\parse_job.py", line 763, in load_spacy
File "C:\Users\adminx\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\spacy_init
.py", line 13, in
from . import pipeline # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\adminx\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\spacy\pipeline_init_.py", line 1, in
from .attributeruler import AttributeRuler
File "C:\Users\adminx\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\spacy\pipeline\attributeruler.py", line 8, in
from ..language import Language
File "C:\Users\adminx\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\adminx\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\spacy\pipe_analysis.py", line 6, in
from .tokens import Doc, Span, Token
File "C:\Users\adminx\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\spacy\tokens_init_.py", line 1, in
from .serialize import DocBin
File "C:\Users\adminx\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\adminx\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\spacy\schemas.py", line 195, in
class TokenPatternString(BaseModel):
File "C:\Users\adminx\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\pydantic\v1\main.py", line 286, in new
cls.try_update_forward_refs()
File "C:\Users\adminx\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\pydantic\v1\main.py", line 808, in try_update_forward_refs
update_model_forward_refs(cls, cls.fields.values(), cls.config.json_encoders, localns, (NameError,))
File "C:\Users\adminx\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\adminx\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\adminx\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\pydantic\v1\typing.py", line 520, in update_field_forward_refs
field.type
= evaluate_forwardref(field.type_, globalns, localns or None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\adminx\AppData\Roaming\calibre\plugins\worddumb-libs-py3.12\pydantic\v1\typing.py", line 66, in evaluate_forwardref
return cast(Any, type_)._evaluate(globalns, localns, set())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: 'recursive_guard'

Plugin settings and reproduce steps

Running word wise and xray

Generated files, screenshots or videos

See caubre bug report

@jwp123x
Copy link
Author

jwp123x commented Jul 7, 2024

Now working... windows was blocking app from writing in a protected directory

@xxyzz
Copy link
Owner

xxyzz commented Jul 8, 2024

Delete "worddumb-libs-py3.12" than try again.

@xxyzz xxyzz closed this as completed Jul 8, 2024
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