![]() |
#1246 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Version 1.19.
|
![]() |
![]() |
![]() |
#1247 |
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Jul 2023
Device: KindleOasis10thGen
|
![]()
Hello,
I've found the following bug in Action Chains: when using the "Convert Books" action, configured to convert "any" to "EPUB", on an imported HTML format ebook (which, it seems, automatically becomes a ZIP when importing into Calibre), the following error appears: ERROR: Unhandled Exception NameError:name 'input_fromat' (instead of "format") is not defined. Converting using Calibre's Conversion dialog works fine. calibre, version 7.4.0 ERROR: Unhandled exception: <b>NameError</b>:name 'input_fromat' is not defined calibre 7.4 embedded-python: True Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE') (...) Traceback (most recent call last): File "calibre_plugins.action_chains.action", line 451, in run_chain File "calibre_plugins.action_chains.chains", line 403, in run File "calibre_plugins.action_chains.chains", line 208, in _run_loop File "calibre_plugins.action_chains.chains", line 181, in _run_loop File "calibre_plugins.action_chains.actions.convert_boo ks", line 315, in run NameError: name 'input_fromat' is not defined |
![]() |
![]() |
Advert | |
|
![]() |
#1248 |
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Jul 2023
Device: KindleOasis10thGen
|
typo in Single Field Edit
Additionally found the following typo:
in action "Single Field Edit", "Remove all format except spcefied" => should be "specified" instead. Greetings, Frank. |
![]() |
![]() |
![]() |
#1249 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
|
![]() |
![]() |
![]() |
#1250 |
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Jul 2023
Device: KindleOasis10thGen
|
bug hunt
Update on Action Chains conversion of ZIP files:
- with the current version, no error anymore, but html (= zip files) are skipped without error message - new: IMP files are also skipped without error. (EDIT: these files are not supported by Calibre, so it's understandable, but error messages are suppressed). I tested with an Action Chain that has no other action than convert "any" to "EPUB". Last edited by Zillion_; 01-24-2024 at 01:55 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#1251 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
|
|
![]() |
![]() |
![]() |
#1252 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,229
Karma: 63194753
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Question: Using something similar to Switch to VL View, is it possible to automatically clear additional restrictions when switching to 'all books'?
View Manager doesn't allow to have a view without changing the columns, unfortunately. |
![]() |
![]() |
![]() |
#1253 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
|
|
![]() |
![]() |
![]() |
#1254 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 519
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Dear @capink,
I'm now using "Selection Modifier" to search Search: New search Search option: Select all book in current view (or another option) If the search finds something, the action continues well. But if it finds nothing an error shows up Code:
File "calibre\db\view.py", line 226, in index_to_id IndexError: tuple index out of range Last edited by nqk; 01-29-2024 at 11:46 PM. |
![]() |
![]() |
![]() |
#1255 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
I need the full log to see what part in Action Chains is causing this. The log you provided only shows what happens after the plugin calls the relevant parts of calibre. Also a couple of things:
|
|
![]() |
![]() |
![]() |
#1256 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
|
|
![]() |
![]() |
![]() |
#1257 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 519
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Dear @caplink
My action chain includes 1) Selection Modifier (to search for books with specified tags) 2) Chain Caller (several actions, including action by Editor Chain) 3) Calibre Actions (page count) 4) Single field edit (to remove the specified tags) Following is the debug code Code:
ApplicationPaletteChange event ignored Using calibre Qt style: True ApplicationPaletteChange event received EpubMerge: DEBUG: 2024-02-01 11:37:09,624: calibre_plugins.epubmerge.epubmerge_plugin(156): macmenuhack file_path:Roaming_folder_path\calibre\plugins\fanficfare_macmenuhack.txt calibre Debug log calibre 7.4 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: None Successfully initialized third party plugins: Action Chains (1, 19, 3) && Count Pages (1, 13, 4) && Editor Chains (1, 1, 4) && EpubMerge (2, 17, 0) && Goodreads (1, 7, 9) && Goodreads Sync (1, 16, 4) && Markdown Output (1, 0, 3) && Resize Cover (1, 2, 0) calibre 7.4 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: None Successfully initialized third party plugins: Action Chains (1, 19, 3) && Count Pages (1, 13, 4) && Editor Chains (1, 1, 4) && EpubMerge (2, 17, 0) && Goodreads (1, 7, 9) && Goodreads Sync (1, 16, 4) && Markdown Output (1, 0, 3) && Resize Cover (1, 2, 0) QPA platform: windows devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 92.53889943074003 x 92.67567567567568 [0.00] Starting up... [0.00] Showing splash screen... [0.25] splash screen shown [0.25] Initializing db... [0.64] db initialized [0.64] Constructing main UI... [4.05] GUI main window shown [4.69] main UI initialized... [4.69] Hiding splash screen Traceback (most recent call last): File "calibre_plugins.action_chains.chains", line 181, in _run_loop File "calibre_plugins.action_chains.actions.open_with", line 302, in run File "calibre_plugins.action_chains.scopes.scope_tools", line 40, in get_current_book_id File "calibre_plugins.action_chains.scopes.base", line 65, in get_current_book_id File "calibre\gui2\library\models.py", line 799, in id File "calibre\db\view.py", line 226, in index_to_id IndexError: tuple index out of range Traceback (most recent call last): File "calibre_plugins.action_chains.chains", line 181, in _run_loop File "calibre_plugins.action_chains.actions.chain_caller", line 141, in run File "calibre_plugins.action_chains.chains", line 403, in run File "calibre_plugins.action_chains.chains", line 208, in _run_loop File "calibre_plugins.action_chains.chains", line 181, in _run_loop File "calibre_plugins.action_chains.actions.open_with", line 302, in run File "calibre_plugins.action_chains.scopes.scope_tools", line 40, in get_current_book_id File "calibre_plugins.action_chains.scopes.base", line 65, in get_current_book_id File "calibre\gui2\library\models.py", line 799, in id File "calibre\db\view.py", line 226, in index_to_id IndexError: tuple index out of range Traceback (most recent call last): File "calibre_plugins.action_chains.chains", line 181, in _run_loop File "calibre_plugins.action_chains.actions.chain_caller", line 141, in run File "calibre_plugins.action_chains.chains", line 403, in run File "calibre_plugins.action_chains.chains", line 208, in _run_loop File "calibre_plugins.action_chains.chains", line 181, in _run_loop File "calibre_plugins.action_chains.actions.chain_caller", line 141, in run File "calibre_plugins.action_chains.chains", line 403, in run File "calibre_plugins.action_chains.chains", line 208, in _run_loop File "calibre_plugins.action_chains.chains", line 181, in _run_loop File "calibre_plugins.action_chains.actions.open_with", line 302, in run File "calibre_plugins.action_chains.scopes.scope_tools", line 40, in get_current_book_id File "calibre_plugins.action_chains.scopes.base", line 65, in get_current_book_id File "calibre\gui2\library\models.py", line 799, in id File "calibre\db\view.py", line 226, in index_to_id IndexError: tuple index out of range calibre 7.4 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: None Successfully initialized third party plugins: Action Chains (1, 19, 3) && Count Pages (1, 13, 4) && Editor Chains (1, 1, 4) && EpubMerge (2, 17, 0) && Goodreads (1, 7, 9) && Goodreads Sync (1, 16, 4) && Markdown Output (1, 0, 3) && Resize Cover (1, 2, 0) Traceback (most recent call last): File "calibre_plugins.action_chains.action", line 451, in run_chain File "calibre_plugins.action_chains.chains", line 403, in run File "calibre_plugins.action_chains.chains", line 208, in _run_loop File "calibre_plugins.action_chains.chains", line 181, in _run_loop File "calibre_plugins.action_chains.actions.chain_caller", line 141, in run File "calibre_plugins.action_chains.chains", line 403, in run File "calibre_plugins.action_chains.chains", line 208, in _run_loop File "calibre_plugins.action_chains.chains", line 181, in _run_loop File "calibre_plugins.action_chains.actions.chain_caller", line 141, in run File "calibre_plugins.action_chains.chains", line 403, in run File "calibre_plugins.action_chains.chains", line 208, in _run_loop File "calibre_plugins.action_chains.chains", line 181, in _run_loop File "calibre_plugins.action_chains.actions.open_with", line 302, in run File "calibre_plugins.action_chains.scopes.scope_tools", line 40, in get_current_book_id File "calibre_plugins.action_chains.scopes.base", line 65, in get_current_book_id File "calibre\gui2\library\models.py", line 799, in id File "calibre\db\view.py", line 226, in index_to_id IndexError: tuple index out of range |
![]() |
![]() |
![]() |
#1258 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,134
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
Last edited by capink; 02-01-2024 at 09:02 AM. |
|
![]() |
![]() |
![]() |
#1259 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 519
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Thank you for your response, the following error shows up
Code:
calibre, version 7.4.0 ERROR: Unhandled exception: <b>IndexError</b>:tuple index out of range calibre 7.4 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: None Successfully initialized third party plugins: Action Chains (1, 19, 4) && Count Pages (1, 13, 4) && Editor Chains (1, 1, 4) && EpubMerge (2, 17, 0) && Goodreads (1, 7, 9) && Goodreads Sync (1, 16, 4) && Markdown Output (1, 0, 3) && Resize Cover (1, 2, 0) Traceback (most recent call last): File "calibre_plugins.action_chains.action", line 451, in run_chain File "calibre_plugins.action_chains.chains", line 403, in run File "calibre_plugins.action_chains.chains", line 208, in _run_loop File "calibre_plugins.action_chains.chains", line 181, in _run_loop File "calibre_plugins.action_chains.actions.chain_caller", line 141, in run File "calibre_plugins.action_chains.chains", line 403, in run File "calibre_plugins.action_chains.chains", line 208, in _run_loop File "calibre_plugins.action_chains.chains", line 181, in _run_loop File "calibre_plugins.action_chains.actions.chain_caller", line 141, in run File "calibre_plugins.action_chains.chains", line 403, in run File "calibre_plugins.action_chains.chains", line 208, in _run_loop File "calibre_plugins.action_chains.chains", line 181, in _run_loop File "calibre_plugins.action_chains.actions.open_with", line 302, in run File "calibre_plugins.action_chains.scopes.scope_tools", line 40, in get_current_book_id File "calibre_plugins.action_chains.scopes.base", line 66, in get_current_book_id File "calibre\gui2\library\models.py", line 799, in id File "calibre\db\view.py", line 226, in index_to_id IndexError: tuple index out of range |
![]() |
![]() |
![]() |
#1260 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,911
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
@capink: this might have nothing to do with the problem, but this exception can happen if a search reduces the number of books that would be shown in the book list. The "index" is the row number of the book list. The exception is thrown if that row number no longer exists. For example, imagine 30 books being displayed, with book 20 selected. A search reduces the number displayed to 15, moving the selected book to row 10. Even though the current book is still there, the fact that there isn't a book 20 causes the exception to be thrown. If it wasn't thrown then you would most likely have the wrong book.
Also note that if the GUI hasn't been told about a db.search() then it will think that it has current data, which is likely wrong. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Editor Plugin] Editor Chains | capink | Plugins | 94 | 07-03-2024 07:26 PM |
Action Chains Resources | capink | Plugins | 65 | 07-01-2024 03:12 PM |
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB | lrpirlet | Plugins | 2 | 08-18-2022 03:15 PM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM |