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 04-14-2017, 01:30 PM   #1
lbutlr
Member
lbutlr began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2010
Device: iPhone
error 21

When trying to add a book to my library I get the following error overtime, regardless of how I try to add the book (drag and drop or "add Book"

I have disabled all plugins and cleaned the library (no errors, no duplicates). I've also tried a few different pub files with mixed results, some import fine, others generate this error. I cannot see any difference in the files and they are not DRMed.

Not sure if it matters, but Calibre is often using 90-105% of a CPU core (2012 iMac), then drops to 0.5%

macOS Sierra, Calibre 2.82

Code:
calibre, version 2.82.0
WARNING: Errors while adding: There were problems adding some files, click "Show details" for more information


----------------------------------------------------------------------
Failed to add the file /Users/lbutlr/Desktop/Pilot X.epub to the book: /Users/lbutlr/Desktop/Pilot X.epub
With error:
Traceback (most recent call last):
  File "site-packages/calibre/gui2/add.py", line 410, in add_formats
  File "site-packages/calibre/db/cache.py", line 1385, in add_format
  File "site-packages/calibre/startup.py", line 122, in local_open
IOError: [Errno 21] Is a directory: u'/Users/lbutlr/Desktop/Pilot X.epub'
lbutlr is offline   Reply With Quote
Advert
Old 04-14-2017, 01:40 PM   #2
higgs
Connoisseur
higgs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicing
 
higgs's Avatar
 
Posts: 64
Karma: 149999
Join Date: Aug 2008
Location: Ireland
Device: Kobo Mini, Kindle PW3
Same error here and an explanation from Kovid.

https://www.mobileread.com/forums/sh...ighlight=errno

Last edited by higgs; 04-14-2017 at 01:40 PM. Reason: forgot link
higgs is offline   Reply With Quote
Old 04-14-2017, 01:41 PM   #3
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: 31,843
Karma: 8697710
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's because the "books" you are adding are not epub files, but directories whose names happen to have the .epub extension. These are not supported. You need to get hold of actual epub files before you can add them to calibre.
kovidgoyal is online now   Reply With Quote
Old 04-18-2017, 06:59 AM   #4
lbutlr
Member
lbutlr began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2010
Device: iPhone
Quote:
Originally Posted by kovidgoyal View Post
That's because the "books" you are adding are not epub files, but directories whose names happen to have the .epub extension. These are not supported. You need to get hold of actual epub files before you can add them to calibre.
Thanks. I didn't realize it was a bundle directory instead of a regular epub. I guess iBooks deflates the epub files.

I used this command to reconstruct the epub
Code:
cd /path/to/my/book.epub/
zip -rX ../book.epub mimetype META-INF/ OEBPS/ *
lbutlr 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
Aura ERROR: Error: Error communicating with device Calibrefan Kobo Reader 2 07-02-2015 03:14 PM
KindleGen error message: E1003 Unknown error in class String. Doitsu Kindle Formats 1 06-25-2014 01:29 PM
Running recipe error: Python function terminated unexpectedly (Error Code: 1) jpassarella Recipes 0 10-05-2012 01:54 PM
calibre, version 0.8.8 ERROR: Error: Error communicating with device no such column: e-bookuser Devices 1 07-03-2011 05:09 PM
ERROR: Error: Error communicating with device JWood Calibre 10 04-20-2010 08:28 PM


All times are GMT -4. The time now is 10:20 AM.


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