View Single Post
Old 01-19-2024, 03:30 PM   #635
jiobiee
Junior Member
jiobiee began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2024
Device: Kindle Paperwhite
Error in Using WordDumb

Hey everyone, trying to use WordDumb on Calibre for Mac to generate X-Ray and WordWise for my books. Not sure why I keep getting errors; I've been trying to send to my Kindle PaperWhite and I'm not sure what to do to fix it. Any help would be much appreciated. Thanks!

---

Quote:
calibre, version 7.4.0 (darwin, 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 Hike
Job: "Generating Word Wise and X-Ray for The Hike" failed with error:
Traceback (most recent call last):
File "calibre/gui2/threaded_jobs.py", line 82, in start_work
File "calibre_plugins.worddumb.parse_job", line 202, in do_job
run_subprocess(args, input_str)
File "calibre_plugins.worddumb.utils", line 56, in run_subprocess
return subprocess.run(
^^^^^^^^^^^^^^^
File "subprocess.py", line 571, in run
subprocess.CalledProcessError: Command '['/usr/bin/python3', '/Users/jo/Library/Preferences/calibre/plugins/WordDumb.zip', '{"book_id": 3, "book_path": "/Users/jo/Calibre Library/Drew Magary/The Hike (3)/The Hike - Drew Magary.azw3", "mi": null, "book_fmt": "AZW3", "book_lang": "en", "useragent": "WordDumb/3.30.0 (https://github.com/xxyzz/WordDumb)", "plugin_path": "/Users/jo/Library/Preferences/calibre/plugins/WordDumb.zip", "spacy_model": "en_core_web_md", "create_ww": true, "create_x": true, "asin": "BBZ1C9D3Y2", "acr": "The_Hike", "revision": "debbab8f", "kfx_json": null, "mobi_html": null, "mobi_codec": "utf-8"}', '{"use_pos": true, "search_people": true, "model_size": "md", "zh_wiki_variant": "cn", "fandom": "", "add_locator_map": false, "preferred_formats": ["AZW3", "KFX", "AZW", "MOBI", "EPUB"], "use_all_formats": false, "minimal_x_ray_count": 1, "en_ipa": "ga_ipa", "zh_ipa": "pinyin", "choose_format_manually": true, "wiktionary_gloss_lang": "en", "kindle_gloss_lang": "en", "use_gpu": false, "cuda": "cu121", "last_opened_kindle_lemmas_language": "en", "last_opened_wiktionary_lemmas_language": "ca", "use_wiktionary_for_kindle": false, "python_path": "", "ca_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, "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}']' returned non-zero exit status 1.

Called with args: (ParseJobData(book_id=3, book_path='/Users/jo/Calibre Library/Drew Magary/The Hike (3)/The Hike - Drew Magary.azw3', mi=<calibre.ebooks.metadata.book.base.Metadata object at 0x12aafa390>, book_fmt='AZW3', book_lang='en', useragent='WordDumb/3.30.0 (https://github.com/xxyzz/WordDumb)', plugin_path='/Users/jo/Library/Preferences/calibre/plugins/WordDumb.zip', spacy_model='en_core_web_md', create_ww=True, create_x=True, asin='BBZ1C9D3Y2', acr='The_Hike', revision='debbab8f', kfx_json=None, mobi_html=None, mobi_codec='utf-8'),) {'notifications': <queue.Queue object at 0x12d928250>, 'abort': <threading.Event at 0x1283d79d0: unset>, 'log': <calibre.utils.logging.GUILog object at 0x12ad07150>}
Traceback (most recent call last):
File "/Users/jo/Library/Preferences/calibre/plugins/WordDumb.zip/dump_lemmas.py", line 5, in <module>
ImportError: attempted relative import with no known parent package

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/jo/Library/Preferences/calibre/plugins/WordDumb.zip/__main__.py", line 13, in <module>
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
File "<frozen zipimport>", line 259, in load_module
File "/Users/jo/Library/Preferences/calibre/plugins/WordDumb.zip/dump_lemmas.py", line 13, in <module>
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
File "<frozen zipimport>", line 259, in load_module
File "/Users/jo/Library/Preferences/calibre/plugins/WordDumb.zip/utils.py", line 51, in <module>
TypeError: unsupported operand type(s) for |: 'type' and 'type'
jiobiee is offline   Reply With Quote