Closed ThaayP closed 1 year ago
Metoo, same error. I just noticed we both have a blank in our user name. And the second part is absent from the FileNotFound path. Is this related?
Ah... right, the space in your user names. I split the "pip --version" command output by space, and clearly it also splits at user names and break the pip file path.
Could you confirm the above commit resolves the FileNotFoundError error?
Where do I get this pip thing? Is it on the Python for Windows download page? I'm not a techie, and I followed the steps for Windows.
[Edit} It seems I already have this pip thing in my computer (version 22.3). I opened a command prompt and searched for it, thanks to a guide on the Internet, and it's showing that I have it because it shows a menu and lots of different options. So what's next?
The default install setting("Install Now" button) in the Python installer will install pip.
You can find the test plugin zip file from GitHub Actions Artifacts: https://github.com/xxyzz/WordDumb/actions/runs/3588500837. Then install the test plugin in calibre GUI or command calibre-customize -a worddumb.zip
.
After downloading the test plugin zip file, I installed it on Calibre and then decided to test it with six different books on Calibre (it worked well with four of them, and two showed the same Tonnere de Brest! error message). Should I worry about that or?
Please post the error messages. I don't think they would be the same as the error message in your first comment.
And when I click to see more, I get this message for both books:
calibre, version 6.9.0 (win32, embedded-python: True) Tonnerre de Brest!: An error occurred, please copy error message then report bug at GitHub.
Starting job: Generating X-Ray for King of Battle and Blood Job: "Generating X-Ray for King of Battle and Blood" 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 168, in do_job File "calibre_plugins.worddumb.parse_job", line 303, in create_files File "calibre_plugins.worddumb.x_ray", line 189, in finish File "calibre_plugins.worddumb.mediawiki", line 322, in query_mediawiki File "calibre_plugins.worddumb.mediawiki", line 127, in query File "calibre_plugins.worddumb.mediawiki", line 171, in get_section_text UnboundLocalError: local variable 'e' referenced before assignment
Called with args: ((288, 'AZW3', 'C:\Users\Thais Passos\Calibre Library\Scarlett St. Clair\King of Battle and Blood (288)\King of Battle and Blood - Scarlett St. Clair.azw3', <calibre.ebooks.metadata.book.base.Metadata object at 0x000001EB02A77BE0>, {'spacy': 'en_coreweb', 'wiki': 'en', 'kaikki': 'English', 'gloss': True, 'has_trf': True}), False, True) {'notifications': <queue.Queue object at 0x000001EB02A77190>, 'abort': <threading.Event object at 0x000001EB02A77310>, 'log': <calibre.utils.logging.GUILog object at 0x000001EB02A773D0>}
and
calibre, version 6.9.0 (win32, embedded-python: True) Tonnerre de Brest!: An error occurred, please copy error message then report bug at GitHub.
Starting job: Generating X-Ray for A Touch of Malice Job: "Generating X-Ray for A Touch of Malice" 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 168, in do_job File "calibre_plugins.worddumb.parse_job", line 303, in create_files File "calibre_plugins.worddumb.x_ray", line 189, in finish File "calibre_plugins.worddumb.mediawiki", line 322, in query_mediawiki File "calibre_plugins.worddumb.mediawiki", line 127, in query File "calibre_plugins.worddumb.mediawiki", line 171, in get_section_text UnboundLocalError: local variable 'e' referenced before assignment
Called with args: ((286, 'AZW3', 'C:\Users\Thais Passos\Calibre Library\Scarlett St. Clair\A Touch of Malice (286)\A Touch of Malice - Scarlett St. Clair.azw3', <calibre.ebooks.metadata.book.base.Metadata object at 0x000001EB02A76A10>, {'spacy': 'en_coreweb', 'wiki': 'en', 'kaikki': 'English', 'gloss': True, 'has_trf': True}), False, True) {'notifications': <queue.Queue object at 0x000001EB02A766B0>, 'abort': <threading.Event object at 0x000001EB02B4A710>, 'log': <calibre.utils.logging.GUILog object at 0x000001EB02B4A860>}
This error should be fixed by https://github.com/xxyzz/WordDumb/commit/117d064104bb761e30442d83c7f15fe2fbf35993.
Do I put this on the command prompt?
You only need to install the zip file from GitHub Actions Artifacts https://github.com/xxyzz/WordDumb/actions/runs/3611180794.
But I did! It even worked with some of the books I was converting :s
You need to install the new zip file from the above link, that zip file contains the changed code which should fix the "UnboundLocalError" error. Every time when new code pushed, GitHub Actions will upload new zip file at here.
I just noticed that it's a different file from the one I downloaded earlier. I'm installing it right now and testing with the same two books, and it worked so far. If it happens again, should I follow the same steps?
You can create new issue on GitHub if you encounter new errors in the future. I don't think you would get the same error again. Since the bugs are resolved, I'll close this issue now.
Checkboxes
Describe the bug
Since I updated both Calibre and plugin a couple of days ago, I always get the same error message over and over, saying that there's an error while creating the X-Ray feature for the books. I followed the plugin guide, and even the settings are the same, and I noticed that Word Wise was okay for the books I tried.
I've tried everything: uninstalling the plugin, updating Python, restarting the program and my computer and nothing worked. Not only that, but I even tried with different book formats (epub, azw3, mobi), and got nothing. I also tried posting on Reddit and people there told me to post in here and MobileRead Forum, so here I am! I'm not a techie or anything like that, so what do I do now?
System Information
OS: Windows 10 Pro 32bit Calibre: version 6.9.0 64bit Python: version 3,11,0 64bit Plugin: version 3.27.1
Error message
Reproduce steps
Screenshots or videos
No response