Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 09-27-2020, 01:58 PM   #1
MJLee
Connoisseur
MJLee began at the beginning.
 
Posts: 75
Karma: 10
Join Date: Jun 2009
Device: none
Problem opening ebook viewer

I updated to 5.0.1 and now the viewer won't open, or rather it will but but give a warning:

calibre, version 5.0.1
ERROR: Loading book failed: Failed to open the book at C:\Users\miamu\Calibre Library\Unknown 1001\Neon Snowman (1763)\Neon Snowman - Unknown 1001.kepub. Click "Show details" for more info.

Failed to convert book: C:\Users\miamu\Calibre Library\Unknown 1001\Neon Snowman (1763)\Neon Snowman - Unknown 1001.kepub with error:
Failed to initialize plugin: 'C:\\Users\\miamu\\AppData\\Roaming\\calibre\\plug ins\\KePub Metadata Writer.zip'
InputFormatPlugin: KePub Input running
on C:\Users\miamu\Calibre Library\Unknown 1001\Neon Snowman (1763)\Neon Snowman - Unknown 1001.kepub
KEPUBInput::convert - start
KEPUB appears to be invalid ZIP file, trying a more forgiving ZIP parser
Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main()
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 89, in <module>
File "site.py", line 84, in main
File "site.py", line 55, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 195, in main
File "<string>", line 1, in <module>
File "site-packages\calibre\srv\render_book.py", line 871, in viewer_main
File "site-packages\calibre\srv\render_book.py", line 862, in render_for_viewer
File "site-packages\calibre\srv\render_book.py", line 839, in render
File "site-packages\calibre\ebooks\oeb\iterator\book.py", line 63, in extract_book
File "site-packages\calibre\customize\conversion.py", line 245, in __call__
File "calibre_plugins.kepubin.conversion.kepub_inpu t", line 89, in convert
AttributeError: module 'os' has no attribute 'getcwdu'

4.9 had the same problem with some books but now this applies to all books. However if I manually open them in epub, no problem. Solutions?

It seems it's kepub which is the problem and calibre fails to open in kepub which is fine with me. How do I reset so it opens in epub?

Edit: I updated all Kobo plugins and the viewer opens the book but not before asking me to chose an app for viewing kepub. I've gone into the Preferences and clicked that I don't want to view it in kepub but it persists in asking me, which is very irritating.

Dubbel edit: ok, I directed it to open kepub in the viewer which is fine but now it opens in kepub first, while I want it to open in epub. Any suggestions on how to reverse the format order it opens in?

Edit 3: If I have dl a book (fanfic btw) in only epub it opens in epub without problem.

Last edited by MJLee; 09-27-2020 at 02:08 PM.
MJLee is offline   Reply With Quote
Old 09-27-2020, 02:03 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
thats a problem in the kepub_input plugin, report it in the thread of that plugin.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-27-2020, 08:19 PM   #3
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
@MJLee: From the line number in the error, you do not have the latest version of the Kepub Input plugin installed. It should be version 3.2.10. Can you reinstall the plugin?
davidfor is offline   Reply With Quote
Old 10-05-2020, 06:00 AM   #4
paddyrm
Connoisseur
paddyrm began at the beginning.
 
Posts: 69
Karma: 10
Join Date: Oct 2012
Device: Kindle 3
I get the same error since upgrading to 5.0.1:

calibre, version 5.1.0
ERROR: Loading book failed: Failed to open the book at C:\Users\Paddy\Documents\Calibre Library\calibre\The Guardian and The Observer (1770)\The Guardian and The Observer - calibre.mobi. Click "Show details" for more info.

Failed to convert book: C:\Users\Paddy\Documents\Calibre Library\calibre\The Guardian and The Observer (1770)\The Guardian and The Observer - calibre.mobi with error:
InputFormatPlugin: MOBI Input running
on C:\Users\Paddy\Documents\Calibre Library\calibre\The Guardian and The Observer (1770)\The Guardian and The Observer - calibre.mobi
MOBI markup appears to contain random bytes. Stripping.
MOBI markup appears to contain random bytes. Stripping.
Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main()
Traceback (most recent call last):
File "site-packages\calibre\ebooks\mobi\reader\mobi6.py", line 188, in extract_content
File "site-packages\lxml\html\__init__.py", line 875, in fromstring
File "site-packages\lxml\html\__init__.py", line 761, in document_fromstring
File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1896, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1777, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1082, in lxml.etree._BaseParser._parseUnicodeDoc
File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError
File "<string>", line 1
lxml.etree.XMLSyntaxError: encoding not supported USC4 little endian, line 1, column 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "site-packages\calibre\ebooks\conversion\plugins\mobi_in put.py", line 33, in convert
File "site-packages\calibre\ebooks\mobi\reader\mobi6.py", line 195, in extract_content
File "site-packages\lxml\html\__init__.py", line 875, in fromstring
File "site-packages\lxml\html\__init__.py", line 761, in document_fromstring
File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1896, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1777, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1082, in lxml.etree._BaseParser._parseUnicodeDoc
File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError
File "<string>", line 1
lxml.etree.XMLSyntaxError: encoding not supported USC4 little endian, line 1, column 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "site-packages\calibre\ebooks\mobi\reader\mobi6.py", line 188, in extract_content
File "site-packages\lxml\html\__init__.py", line 875, in fromstring
File "site-packages\lxml\html\__init__.py", line 761, in document_fromstring
File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1896, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1777, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1082, in lxml.etree._BaseParser._parseUnicodeDoc
File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError
File "<string>", line 1
lxml.etree.XMLSyntaxError: encoding not supported USC4 little endian, line 1, column 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 89, in <module>
File "site.py", line 84, in main
File "site.py", line 55, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 195, in main
File "<string>", line 1, in <module>
File "site-packages\calibre\srv\render_book.py", line 871, in viewer_main
File "site-packages\calibre\srv\render_book.py", line 862, in render_for_viewer
File "site-packages\calibre\srv\render_book.py", line 839, in render
File "site-packages\calibre\ebooks\oeb\iterator\book.py", line 63, in extract_book
File "site-packages\calibre\customize\conversion.py", line 245, in __call__
File "site-packages\calibre\ebooks\conversion\plugins\mobi_in put.py", line 39, in convert
File "site-packages\calibre\ebooks\mobi\reader\mobi6.py", line 195, in extract_content
File "site-packages\lxml\html\__init__.py", line 875, in fromstring
File "site-packages\lxml\html\__init__.py", line 761, in document_fromstring
File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1896, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1777, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1082, in lxml.etree._BaseParser._parseUnicodeDoc
File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError
File "<string>", line 1
lxml.etree.XMLSyntaxError: encoding not supported USC4 little endian, line 1, column 1

Last edited by paddyrm; 10-05-2020 at 06:06 AM.
paddyrm is offline   Reply With Quote
Old 10-05-2020, 06:37 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@paddyrm not the same error and this one is fixed in the next release.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-06-2020, 07:02 AM   #6
paddyrm
Connoisseur
paddyrm began at the beginning.
 
Posts: 69
Karma: 10
Join Date: Oct 2012
Device: Kindle 3
Quote:
Originally Posted by kovidgoyal View Post
@paddyrm not the same error and this one is fixed in the next release.
Thanks very much! 5.0.1 excellent otherwise...
paddyrm is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
eBook viewer not opening in Ubuntu 20 martinf Devices 5 03-01-2023 10:02 AM
Calibre ebook viewer not opening Inman Viewer 16 06-15-2022 10:29 PM
Problem opening books in E-book viewer furms Library Management 1 07-07-2018 06:47 AM
Can I use the ebook viewer without opening Calibre database? iridius Library Management 41 06-26-2018 08:24 PM
Ebook-viewer: fail when opening an ePub from Firefox Jellby Calibre 9 05-17-2015 12:41 AM


All times are GMT -4. The time now is 05:53 AM.


MobileRead.com is a privately owned, operated and funded community.