Error: Could Not Open ebook (.azw4)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Environment]
Calibre Version: 3.7.0 (installed via script provided on official website)
OS: Ubuntu, 16.04
Fresh install of Calibre, no plugins installed (other than those that come pre-installed, if any).
[Description]
Calibre is not capable of opening my kindle book of the .azw4 format and gives the following error. The book is imported as normal via `add books`, selecting the given book, and it imports with no reported errors. The error is purely from attempting to view/read it. Calibre does see its metadata just fine, however, listing author, publisher, title, and filetype accurately. Looking at the report below, it's giving off a conversion error which confuses me since I don't know why it is attempting to convert the book to start with unless this is expected Calibre behavior for a .azw4 book.
Looking further into this (using alternative converters, etc), it appears that Amazon has set restrictions on the file so that the file cannot be viewed in any client minus the official desktop apps for windows, mac and the ios/android apps. My amazon paperwhite is similarly non-compatible with this file and Amazon will not let me even download it. Neither is the cloud browser allowed to view it. Native apps only, in other words.
.azw4 files are (supposed to be) drm wrapped up PDFs essentially and yet the file does not appear to have a pdf(?) which adds to the confusion. Attempts to convert to EPUB, MOBI, or .azw3 have all failed with alternative clients.
[Error Log from ebook-viewer used by Calibre]
calibre, version 3.7.0
ERROR: Could not open e-book: Failed to read book, /home/<
Traceback (most recent call last):
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
ConversionError: pdftohtml failed with return code: 1
Syntax Warning: May not be a PDF file (continuing anyway)
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't read xref table
I do not provide support for people using distro provided packages. If you are using a distro provided package, uninstall it and install the official calibre binary from https:/ /calibre- ebook.com/ download_ linux and if you can reproduce the bug with that, re-open the ticket. Of course, if you are already using the official binary, apologies and feel free to re-open the ticket immediately :)
status invalid