Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-20-2021, 10:57 AM   #1
ReaderofBooks
Member
ReaderofBooks began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2021
Device: Calibre
Epub files suddenly not opening?

Hi,

I dont know why, but some of my epub files have suddenly stopped opening.
They were working fine.

What should I do?

Thanks.

Quote:
calibre, version 5.21.0
ERROR: Loading book failed: Failed to open the book at C:\Users\Lenovo\Calibre Library\Yoko Ogawa\The Memory Police (112)\The Memory Police - Yoko Ogawa.epub. Click "Show details" for more info.

Failed to convert book: C:\Users\Lenovo\Calibre Library\Yoko Ogawa\The Memory Police (112)\The Memory Police - Yoko Ogawa.epub with error:
InputFormatPlugin: EPUB Input running
on C:\Users\Lenovo\Calibre Library\Yoko Ogawa\The Memory Police (112)\The Memory Police - Yoko Ogawa.epub
EPUB 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 "calibre\ebooks\metadata\epub.py", line 161, in get_zip_reader
File "calibre\utils\zipfile.py", line 775, in __init__
File "calibre\utils\zipfile.py", line 810, in _GetContents
File "calibre\utils\zipfile.py", line 825, in _RealGetContents
calibre.utils.zipfile.BadZipfile: File is not a zip file

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\customize\ui.py", line 433, in get_file_type_metadata
File "calibre\customize\builtins.py", line 198, in get_metadata
File "calibre\ebooks\metadata\epub.py", line 238, in get_quick_metadata
File "calibre\ebooks\metadata\epub.py", line 217, in get_metadata
File "calibre\ebooks\metadata\epub.py", line 164, in get_zip_reader
File "calibre\utils\localunzip.py", line 264, in __init__
File "calibre\utils\localunzip.py", line 240, in _extractall
ValueError: Not a ZIP file
Traceback (most recent call last):
File "calibre\ebooks\conversion\plugins\epub_input. py", line 262, in convert
File "calibre\utils\zipfile.py", line 775, in __init__
File "calibre\utils\zipfile.py", line 810, in _GetContents
File "calibre\utils\zipfile.py", line 825, in _RealGetContents
calibre.utils.zipfile.BadZipfile: File is not a zip file

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 82, in <module>
File "site.py", line 77, in main
File "site.py", line 49, in run_entry_point
File "calibre\utils\ipc\worker.py", line 197, in main
File "<string>", line 1, in <module>
File "calibre\srv\render_book.py", line 824, in viewer_main
File "calibre\srv\render_book.py", line 815, in render_for_viewer
File "calibre\srv\render_book.py", line 792, in render
File "calibre\ebooks\oeb\iterator\book.py", line 63, in extract_book
File "calibre\customize\conversion.py", line 245, in __call__
File "calibre\ebooks\conversion\plugins\epub_input. py", line 269, in convert
File "calibre\utils\localunzip.py", line 253, in extractall
File "calibre\utils\localunzip.py", line 240, in _extractall
ValueError: Not a ZIP file
ReaderofBooks is offline   Reply With Quote
Old 06-20-2021, 11:22 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 26,405
Karma: 41365369
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
Something is damaging those files: Not a Zip File

EPUB is just a Zip with a special set of files inside.
theducks is offline   Reply With Quote
Old 06-20-2021, 11:59 AM   #3
ReaderofBooks
Member
ReaderofBooks began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2021
Device: Calibre
Thanks for the response.
Is this a well know problem with a traditional fix?
I do not know what to do.
Thankyou.
ReaderofBooks is offline   Reply With Quote
Old 06-20-2021, 12:46 PM   #4
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,529
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by ReaderofBooks View Post
Thanks for the response.
Is this a well know problem with a traditional fix?
I do not know what to do.
Thankyou.
Definitely not a standard problem.

If files that were previously OK will suddenly not open this implies that you may have a hardware problem of some sort. It could be something simple like the drive being used to store the Calibre files has problems or something more obscure like failing RAM.
itimpi is offline   Reply With Quote
Old 06-20-2021, 12:56 PM   #5
ReaderofBooks
Member
ReaderofBooks began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2021
Device: Calibre
This is a brand new laptop, without much software on it. Two months old.
I cannot think of anything which might have caused this.
Whats the best course of action for me to take?
Thanks.
ReaderofBooks is offline   Reply With Quote
Old 06-20-2021, 01:11 PM   #6
crane3
Fanatic
crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.
 
Posts: 544
Karma: 4226184
Join Date: Sep 2014
Location: Calif
Device: Fire hdx 8.9, Tab S2, Tab S5e, Aura ONE
On a hunch, could the books have DRM & not removed? Try using an app to see if it cannot open the same book. Had something like that to me long ago on a "free" book sample from B&N ( 1 chapter) that contained DRM.
crane3 is offline   Reply With Quote
Old 06-20-2021, 01:14 PM   #7
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 11,406
Karma: 65600197
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Install a tool such as Sigil and see whether it can open the epubs.

Sent from my Pixel 4a using Tapatalk
PeterT is offline   Reply With Quote
Old 06-20-2021, 01:17 PM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 26,405
Karma: 41365369
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
how did you add the books? Did you do a simple restore the Library from a backup
Or did you try and ADD from other sources (crane3 may have hit the DRM nail)
Final case is a rogue A/V that has damaged books that WERE already in an existing library (the restored way)
theducks is offline   Reply With Quote
Old 06-20-2021, 01:42 PM   #9
ReaderofBooks
Member
ReaderofBooks began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2021
Device: Calibre
Thanks for the responses.

https://github.com/Sigil-Ebook/Sigil/releases/tag/1.6.0
I just downloaded this. I will have to figure out how it works.

I had been using a macbook for years, reading my Books on the included app.
I got this new windows laptop and copied all my books from my mac onto an external hard drive, and then downloaded calibre on the PC, and dragged and dropped the books into calibre on this windows PC.

It was working fine, until today. I am not very knowledgeable when it comes to using PC's.
ReaderofBooks is offline   Reply With Quote
Old 06-20-2021, 02:06 PM   #10
ReaderofBooks
Member
ReaderofBooks began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2021
Device: Calibre
Tried opening it with Sigil which states;

Quote:
Cannot unzip EPUB: C:\Users\Lenovo\Calibre Library\Yoko Ogawa\The Memory Police (112)\The Memory Police - Yoko Ogawa.epub
ReaderofBooks is offline   Reply With Quote
Old 06-20-2021, 02:12 PM   #11
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 5,552
Karma: 3513158
Join Date: Nov 2009
Device: many
Have you turned on file system level encryption by any chance?

Could you have disabled write permission on your temp folder somehow?

Could your AV be interfering with unpacking of zip files in some way?

You could try copying one of the epub files someplace else (to your Desktop perhaps) and rename it to end with .zip and double-click it so Windows archive tool will try to unzip it. Does that also create an error?

Last edited by KevinH; 06-20-2021 at 02:37 PM.
KevinH is offline   Reply With Quote
Old 06-20-2021, 02:52 PM   #12
ReaderofBooks
Member
ReaderofBooks began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2021
Device: Calibre
Hi. Yes, that also created an error.

Copied file to desktop, renamed the file extension to .zip
Double clicked it.
Window appeared stating;

[Compressed zipped folders error]
Windows cannot open the folder
The compressed zipped folder 'C: etc,etc' is invalid
ReaderofBooks is offline   Reply With Quote
Old 06-20-2021, 03:28 PM   #13
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 1,829
Karma: 6871386
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by ReaderofBooks View Post
Thanks for the responses.



I had been using a macbook for years, reading my Books on the included app.
I got this new windows laptop and copied all my books from my mac onto an external hard drive, and then downloaded calibre on the PC, and dragged and dropped the books into calibre on this windows PC.

It was working fine, until today. I am not very knowledgeable when it comes to using PC's.
If you still have that mac then follow this:

https://manual.calibre-ebook.com/faq...ter-to-another

bernie
gbm is offline   Reply With Quote
Old 06-20-2021, 03:29 PM   #14
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 5,552
Karma: 3513158
Join Date: Nov 2009
Device: many
So that is 3 sources that all use different zip libs, Calibre, Sigil, and Windows itself ....

so something

- has corrupted all your epubs (unlikely)
- something has encrypted all your epubs (ransomware but unlikely).
- something has disabled write permissions on your temp folder?
- or you do not have the proper permissions somehow


On a mac iBooks unzips epubs and replaces the .epub with a folder. Could these all have been unzipped and the folder renamed to .epub somehow?

One other thing to try is to create a second user account (not Lenovo) and login as this new user and try opening a zip archive as that user. A new user account should have proper permissions set at start-up.

Not sure what else to try. If you have access to another computer you might try copying the epub renamed to .zip onto a usb key and trying to unzip the file on that computer.

If that works, then the file itself is just fine. Pointing us to a permissions issue of some sort.



Quote:
Originally Posted by ReaderofBooks View Post
Hi. Yes, that also created an error.

Copied file to desktop, renamed the file extension to .zip
Double clicked it.
Window appeared stating;

[Compressed zipped folders error]
Windows cannot open the folder
The compressed zipped folder 'C: etc,etc' is invalid
KevinH is offline   Reply With Quote
Old 06-20-2021, 03:57 PM   #15
crane3
Fanatic
crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.crane3 ought to be getting tired of karma fortunes by now.
 
Posts: 544
Karma: 4226184
Join Date: Sep 2014
Location: Calif
Device: Fire hdx 8.9, Tab S2, Tab S5e, Aura ONE
"I got this new windows laptop and copied all my books from my mac onto an external hard drive, and then downloaded calibre on the PC, and dragged and dropped the books into calibre on this windows PC."

I thought I had read that apple uses its own uncompatible drm scheme from the rest of the world?? If just doing a 'copy' of a book; the book would not be able to be read by a pc or android app. Had not read that Calibre automatically senses the apple drm & 'fixes' it to be readable outside of iBooks.

Maybe I'm too far outdated?
crane3 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening Epub 3 Files in Kobo App iOS dandelioncottage Kobo Reader 1 04-16-2018 09:45 PM
opening and saving unzipped epub files in Sigil blackest Sigil 27 01-05-2018 04:00 PM
Calibre has suddenly stopped opening my ebooks. Innula Library Management 20 05-01-2016 09:13 PM
Possible to see which epub files on PC are returned library books w/o opening each? 4691mls General Discussions 23 03-06-2016 12:09 PM
Opening EPUB files in eReader for Windows Mobile am65 Reading and Management 8 11-29-2009 01:04 AM


All times are GMT -4. The time now is 06:55 PM.


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