10-31-2019, 11:50 AM | #1 |
Plugin Developer
Posts: 6,329
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Reader Pipe Error Running from Source?
I'm seeing errors opening the book reader on epubs while running from source on windows.
I have 4.2.0 binaries installed and I'm current to 6e2122df1754cdc2c5ab32cc13402281b75d19c3 in the source. The error I get is: Code:
calibre, version 4.2.0 ERROR: Loading book failed: Failed to open the book at C:\Users\user\Documents\Library\Temporal Knight\Mutant Deviations (9651)\Mutant Deviations - Temporal Knight.epub. Click "Show details" for more info. Traceback (most recent call last): File "C:\Users\user\Desktop\nook\calibre\src\calibre\gui2\viewer\ui.py", line 328, in _load_ebook_worker File "C:\Users\user\Desktop\nook\calibre\src\calibre\gui2\viewer\convert_book.py", line 182, in prepare_book File "C:\Users\user\Desktop\nook\calibre\src\calibre\gui2\viewer\convert_book.py", line 144, in do_convert ConversionFailure: Failed to convert book: C:\Users\user\Documents\Library\Temporal Knight\Mutant Deviations (9651)\Mutant Deviations - Temporal Knight.epub with error: InputFormatPlugin: EPUB Input running on C:\Users\user\Documents\Library\Temporal Knight\Mutant Deviations (9651)\Mutant Deviations - Temporal Knight.epub Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main() P Debug mode doesn't show any additional output. So am I doing something dumb or is anyone else seeing this? |
10-31-2019, 12:05 PM | #2 |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
FWIW Someone else posted a couple of logs with that single P
|
10-31-2019, 12:09 PM | #3 |
Grand Sorcerer
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
|
10-31-2019, 12:46 PM | #4 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Try running just the render worker like this:
calibre-debug src/calibre/srv/render_book.py file.epub that will hopefully give you more details on what the error is. |
10-31-2019, 01:04 PM | #5 |
Plugin Developer
Posts: 6,329
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Spoiler output:
Spoiler:
I've replaced the character '^@' (AKA \0, or NULL) in the output with the string "^@" so it's visible. That's the source of the single P, I bet. For legibility, the string without NULLs is: "Python function terminated unexpectedly 'NoneType' object has no attribute 'serialize' (Error Code: 1)" |
10-31-2019, 01:15 PM | #6 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
that should take care of it, the prepare book process has been greatly speeded up, but you need a native code module for it which you wont get till calibre 4.3 is released https://github.com/kovidgoyal/calibr...a71e4cad2d38b2
|
10-31-2019, 01:22 PM | #7 |
Plugin Developer
Posts: 6,329
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Confirmed--I'm not getting that error now. Thanks!
And thanks for the upcoming pre-process speed up, that's great news! |
10-31-2019, 02:06 PM | #8 |
Grand Sorcerer
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Is is possible to also fix Python exception error messages so that they do not contains null characters?
I am seeing these whenever any of the calibre command line programs errors out. |
11-01-2019, 01:20 AM | #9 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yeah its a windows specific thing, need to look into it when I am next on a windows machine.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Plugin error: IOError: [Errno 32] Broken pipe | stoduk | Development | 6 | 12-30-2015 07:14 AM |
ERROR: Unhandled exception: <b>IOError</b>:[Errno 32] Broken pipe | Martin77 | Calibre | 3 | 12-24-2015 07:50 AM |
running from source dbus error | eschwartz | Calibre | 7 | 10-30-2014 12:15 AM |
Error while running calibre with source | Lev667 | Development | 3 | 03-05-2011 09:55 AM |
Running from source after V0.7.32 | chaley | Calibre | 0 | 12-04-2010 12:08 PM |