|
|
#1 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,915
Karma: 207182180
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Inherent "Open With" feature error
A cursory search turned up nothing on this, so apologies if it's already been covered. Please note that this has to do with Calibre's built-in Open With feature and not the third-party plugin of the same name.
The gist is that I can't configure the Open With feature. As soon as I right-click on the ebook format in the Book Details, get the following error: Code:
calibre, version 5.3.0
ERROR: Unhandled exception: <b>TypeError</b>:string argument without an encoding
calibre 5.3 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.18362-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.18362')
Python 3.8.5
Windows: ('10', '10.0.18362', 'SP0', 'Multiprocessor Free')
Interface language: None
Traceback (most recent call last):
File "calibre\gui2\book_details.py", line 668, in contextMenuEvent
File "calibre\gui2\book_details.py", line 310, in details_context_menu_event
File "calibre\gui2\book_details.py", line 251, in add_item_specific_entries
File "calibre\gui2\book_details.py", line 224, in add_format_entries
File "calibre\gui2\open_with.py", line 349, in populate_menu
File "calibre\gui2\open_with.py", line 62, in entry_to_icon_text
TypeError: string argument without an encoding
|
|
|
|
|
|
#2 | |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,383
Karma: 79699999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
It's a bug with corrupted icon_data. See this bug (including a fix for it):
https://bugs.launchpad.net/calibre/+bug/1900299 Quote:
Last edited by ownedbycats; 10-18-2020 at 06:25 PM. |
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,383
Karma: 79699999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
If you're not comfortable trying to fix the windows_open_with.json file yourself (note that doing it wrong can wipe all your open_with settings), attach it and I can remove the garbage data for you.
|
|
|
|
|
|
#4 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,915
Karma: 207182180
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Oh, I'm quite comfortable doing that sort of diddling.
Thanks for the pointer.But my main concern is that I didn't do any sort of similar manual tampering to cause corruption of any kind. This is a fairly new/clean install of Calibre 5.3 with no 3rd-party plugins installed. I just configured an external app to open EPUBs through the usual Calibre Open With configuration interface. *shrug* But a fixed bug is a fixed bug, I guess. ![]() Can confirm that a manual cleanup of the windows_open_with.json file got me back in business, though, thanks. |
|
|
|
|
|
#5 | |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,383
Karma: 79699999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
Thankfully Kovid was able to fix the issue like 10 minutes after I posted the bug report. It took me longer to write the bug report than it took him to identify and fix it. ![]() I'm not really a programmer, but if I understand the code correctly:
Last edited by ownedbycats; 10-18-2020 at 09:29 PM. |
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Touch "Error Dialog: Cannot open book" | tecweston | Barnes & Noble NOOK | 1 | 10-21-2011 01:12 AM |
| Feature Request: configurable space setting for "Insert blank line" in "Look & Feel" | therealjoeblow | Calibre | 15 | 07-25-2011 04:14 PM |
| Keep getting "Page Error" on epub file when I open it on my PRS-300 (filesize > 25MB) | ryancolm | Sigil | 6 | 09-03-2010 11:45 AM |
| PRS-300 Book won't open "Page Error!" | danalynn | Sony Reader | 9 | 08-23-2010 06:46 PM |
| "Unexpected Error" - Won't Open Books | Nola_Gal | Amazon Kindle | 13 | 12-29-2008 07:07 AM |