![]() |
#151 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,094
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Editor-Spell check
I double clicked on a word in the spell check list (should jump to where used)
Code:
calibre, version 5.99.6 ERROR: Unhandled exception: <b>TypeError</b>:index 0 has type 'str' but 'QTextLength' is expected calibre 5.99.6 embedded-python: True Windows-10-10.0.19044 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19044') Python 3.10.1 Windows: ('10', '10.0.19044', '', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 46, 0) && Package KFX (from KFX Input) (1, 46, 0) && APNX Generator (1, 1, 0) && Count Pages (1, 11, 2) && Diaps Editing Toolbag (0, 3, 7) && EpubMerge (2, 12, 0) && EpubSplit (3, 2, 0) && Extract ISBN (1, 5, 0) && Fantastic Fiction (1, 5, 1) && Fantastic Fiction Adults (1, 2, 0) && Find Duplicates (1, 9, 2) && Generate Cover (2, 1, 0) && Goodreads (1, 5, 3) && Import List (1, 8, 1) && Job Spy (1, 0, 190) && KFX metadata reader (from KFX Input) (1, 46, 0) && KFX Input (1, 46, 0) && Set KFX metadata (from KFX Output) (1, 58, 0) && KFX Output (1, 58, 0) && KePub Input (3, 4, 3) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && KePub Output (3, 5, 3) && Kindle Collections (1, 7, 29) && KindleUnpack - The Plugin (0, 83, 1) && Kobo Books (1, 8, 3) && Kobo Utilities (2, 15, 1) && KoboTouchExtended (3, 5, 4) && LanguageTool (0, 1, 2) && Manage Series (1, 3, 0) && Modify ePub (1, 7, 0) && Obok DeDRM (6, 7, 0) && Open With (1, 7, 0) && Quality Check (1, 12, 0) && Resize Cover (1, 1, 0) && Search The Internet (1, 8, 1) && Smashwords Metadata (1, 0, 2) && Sort CSS (0, 2, 0) Traceback (most recent call last): File "calibre\gui2\tweak_book\boss.py", line 1156, in find_word File "calibre\gui2\tweak_book\spell.py", line 1434, in find_next File "calibre\gui2\tweak_book\editor\widget.py", line 325, in find_spell_word File "calibre\gui2\tweak_book\editor\text.py", line 552, in find_spell_word File "calibre\gui2\tweak_book\editor\text.py", line 722, in spellcheck_locale_for_cursor File "calibre\gui2\tweak_book\editor\syntax\base.py", line 217, in parse_single_block File "calibre\gui2\tweak_book\editor\syntax\base.py", line 24, in run_loop File "calibre\gui2\tweak_book\editor\syntax\html.py", line 307, in normal File "calibre\gui2\tweak_book\editor\syntax\html.py", line 244, in process_text File "calibre\gui2\tweak_book\editor\syntax\html.py", line 74, in spell_property TypeError: index 0 has type 'str' but 'QTextLength' is expected |
![]() |
![]() |
![]() |
#152 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,400
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#153 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 441
Karma: 77256
Join Date: Sep 2011
Device: none
|
Perhaps you’re waiting for more fixes for a new build. One particular fix not related to Qt 6 affects my daily use; plus I am on macOS arm64 so using v6. If it’s not too much to ask, a new build sometime would be very helpful. Thanks.
|
![]() |
![]() |
![]() |
#154 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,400
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#155 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 167
Karma: 1497966
Join Date: Jul 2021
Device: N/A
|
(linux, calibre 5.99.6)
When an epub is read-only, the action "Save" fails, which is logical. What is not expected is that the action "save as" also fails. Is it normal ? Spoiler:
A remark: With "Save", even if it written that is a permission problem, it is not obvious to understand that the epub is R/O since the error msg gives the name of the cached file, not of the epub. Would it be possible to name the original file, not the cache ? Here is what we get with "Save": Spoiler:
Last edited by lomkiri; 02-08-2022 at 08:53 AM. |
![]() |
![]() |
![]() |
#156 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,400
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
In oder to ensure you are never left with corrupted files, the editor does atomic writing, which means it writes to a temp file and then renames it. There is no generally robust method to change filenames in errors.
As for save as, there is a permissions problem in the path you chose for the save as, as well. And note that r/o error is a permissions error, r/o means you dont have write permission. |
![]() |
![]() |
![]() |
#157 | ||
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 167
Karma: 1497966
Join Date: Jul 2021
Device: N/A
|
errata: I was speaking about "save a copy" (since "save as" is not an existing action)
Quote:
Quote:
In fact, giving w/r permission to the original epub (and no other action) solves the case and I can "save a copy" (perms of /data/temp/ didn't change) Code:
calibre, version 5.99.6 Copy saved: Copy saved to /data/temp/Test notes calibre.epub Anyway, not a big deal, thank you. Last edited by lomkiri; 02-08-2022 at 11:55 AM. |
||
![]() |
![]() |
![]() |
#158 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,400
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#159 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 243
Karma: 291844
Join Date: Oct 2019
Device: Kobo Nia
|
Running from QT6 source seeing this warning at startup
Code:
[0.27] Constructing main UI... DEBUG: 0.0 obok::utilities.py - loading translations DEBUG: 0.0 obok::dialogs.py - loading translations DEBUG: 0.0 obok::config.py - loading translations DEBUG: 0.3 obok::action_err.py - loading translations qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile [3.86] main UI initialized... |
![]() |
![]() |
![]() |
#160 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,400
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's harmless
|
![]() |
![]() |
![]() |
#161 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 167
Karma: 1497966
Join Date: Jul 2021
Device: N/A
|
Thank you.
But running from source (downloaded today) with "calibre-debug -t" gives this error: Spoiler:
If I run the same command with the source of the 5.99.4 (or 5.99.3, I don't remember, but the changelog date is 2022-01-21), then I get no error. |
![]() |
![]() |
![]() |
#162 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 243
Karma: 291844
Join Date: Oct 2019
Device: Kobo Nia
|
@kovid I couldn't see any harm but thought it worth raising. Thanks for checking.
|
![]() |
![]() |
![]() |
#163 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,400
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Update to the just released 5.99.7 and you will be fine.
|
![]() |
![]() |
![]() |
#164 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 167
Karma: 1497966
Join Date: Jul 2021
Device: N/A
|
Thanks again :-)
Binary is ok, but running calibre-debug -t from source (calibre-5.99.7.tar.xz) gives me another exception: Spoiler:
"Save" and "Save a copy" are now both able to save even if the file is r/o |
![]() |
![]() |
![]() |
#165 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,400
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Is your source checkout clean? Try recreating it.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Suggestion for PI Devs | BetterRed | Plugins | 11 | 09-27-2020 06:18 PM |
Attn plugin devs: porting to python 3 | kovidgoyal | Plugins | 129 | 06-16-2020 01:31 AM |
Attention All Plugin Devs: Remove vestiges from python 2? | KevinH | Plugins | 11 | 05-29-2020 03:16 PM |
Plugin Devs: Should we include a License or COPYING file? | KevinH | Plugins | 3 | 08-15-2017 01:09 PM |
New Plugin Features in the upcoming Sigil 0.8.900 | KevinH | Plugins | 6 | 09-14-2015 02:48 PM |