Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 02-07-2018, 07:45 PM   #1
kimberlynorton
Junior Member
kimberlynorton began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2018
Device: iBooks
Cannot add any books to Calibre

I cannot get Calibre to add books. Trying to add the .epub book titled The Swift Programming Language by Apple. I get the error message:

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

----------------------------------------------------------------------
Failed to add the file /Users/kimberlynorton/Library/Containers/com.apple.BKAgentService/Data/Documents/iBooks/Books/22651C84B5200231F2568B76D294EC4E.epub to the book: /Users/kimberlynorton/Library/Containers/com.apple.BKAgentService/Data/Documents/iBooks/Books/22651C84B5200231F2568B76D294EC4E
With error:
Traceback (most recent call last):
File "site-packages/calibre/gui2/add.py", line 430, in add_formats
File "site-packages/calibre/db/cache.py", line 1410, in add_format
File "site-packages/calibre/startup.py", line 122, in local_open
IOError: [Errno 21] Is a directory: u'/Users/kimberlynorton/Library/Containers/com.apple.BKAgentService/Data/Documents/iBooks/Books/22651C84B5200231F2568B76D294EC4E.epub'

I am running macOS High Sierra Version 10.13.3. Note: I can launch Calibre, I just cannot add an ePub book to it.

Sorry, but I am new to the forum and lost on what I am doing, so posting all over the place.
kimberlynorton is offline   Reply With Quote
Old 02-07-2018, 09:44 PM   #2
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: 8,573
Karma: 5703586
Join Date: Nov 2009
Device: many
I think the real error is this:

IOError: [Errno 21] Is a directory: u'/Users/kimberlynorton/Library/Containers/com.apple.BKAgentService/Data/Documents/iBooks/Books/22651C84B5200231F2568B76D294EC4E.epub'

which means that iBooks has unzipped the epub into a folder whose name ends in ".epub". So you are asking calibre to try to load a folder and not a real zipped up epub file.

I have no idea why iBooks does that (giving a .epub extension to a folder).

Perhaps try dragging and dropping that folder onto an epub zip tool and try loading the result?
KevinH is offline   Reply With Quote
Advert
Old 02-08-2018, 04:31 AM   #3
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,894
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
I did a search in this forum for "[Errno 21]" and found this response by Kovid, which is exactly what KevinH stated.

Quote:
Originally Posted by kovidgoyal View Post
Ibooks stores epub files as directories, not actual epub files. calibre cannot import those. A bit of googling will get you some scripts you can use to convert the directories back into actual epub files which you can them import into calibre.
DoctorOhh is offline   Reply With Quote
Old 02-08-2018, 11:08 AM   #4
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: 8,573
Karma: 5703586
Join Date: Nov 2009
Device: many
And after a quick search of MR you can find a free, drag and drop tool for Macs to properly create an epub from a folder that holds an epub's contents.

Here is the link:

https://www.mobileread.com/forums/sh...49&postcount=1

Download and install the ePubZip/Unzip tool then drag or drop the folder with the .epub extension inside iBooks onto it, and it shoudl create a real .epub file you should be able to load in Calibre.
KevinH is offline   Reply With Quote
Old 02-08-2018, 01:44 PM   #5
kimberlynorton
Junior Member
kimberlynorton began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2018
Device: iBooks
Hi everyone, thanks for your help. The EPubZip does the trick!

Here is what I had to do for anyone else interested.
--Install the ePub Zip app.
--Launch iBooks.
--Drag the iBook icon (from inside iBooks) on top of the ePub Zip app.

Note: you do not double click the ePub Zip app to launch it, you just drag the icon onto the app file. Also, you are not dragging the epub file from the finder folder, you are dragging the actual icon of the book from inside iBooks.

If you cannot install ePub Zip because of security, then do the following: Apple, System Preferences, Security & Privacy, General tab, select to allow from this developer.

Here is the link to the ePubZip again:
https://www.mobileread.com/forums/sh...49&postcount=1

Again, thanks, ~Kim
kimberlynorton is offline   Reply With Quote
Advert
Old 06-22-2019, 11:17 PM   #6
gamcall
Junior Member
gamcall began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2013
Location: Brisbane
Device: iPad mini
Quote:
Originally Posted by kimberlynorton View Post
Hi everyone, thanks for your help. The EPubZip does the trick!

Here is what I had to do for anyone else interested.
--Install the ePub Zip app.
--Launch iBooks.
--Drag the iBook icon (from inside iBooks) on top of the ePub Zip app.

Note: you do not double click the ePub Zip app to launch it, you just drag the icon onto the app file. Also, you are not dragging the epub file from the finder folder, you are dragging the actual icon of the book from inside iBooks.
I couldn't get this to work in Books on MacOS Mojave as per this post; i.e. dragging the ePub book's icon from Books onto EPubZip. What I had to do was:
- make a duplicate of the ePub book's entry from the ePub's folder in the Finder (which has to be opened from Terminal, b.t.w)
- move the duplicate to another (temporary) folder
- remove the .epub extension from the duplicate file (otherwise the utility will just delete it). This will then show as a folder in the Finder
- *then* drag the renamed folder onto the utility which will yield the importable epub file.

Regards,

GAM
gamcall is offline   Reply With Quote
Old 04-18-2020, 10:24 PM   #7
Polgs
Member
Polgs might easily be mistaken for a TexanPolgs might easily be mistaken for a TexanPolgs might easily be mistaken for a TexanPolgs might easily be mistaken for a TexanPolgs might easily be mistaken for a TexanPolgs might easily be mistaken for a TexanPolgs might easily be mistaken for a TexanPolgs might easily be mistaken for a TexanPolgs might easily be mistaken for a TexanPolgs might easily be mistaken for a TexanPolgs might easily be mistaken for a Texan
 
Posts: 14
Karma: 18074
Join Date: Nov 2019
Location: Australia
Device: none
Quote:
I couldn't get this to work in Books on MacOS Mojave as per this post; i.e. dragging the ePub book's icon from Books onto EPubZip. What I had to do was:
- make a duplicate of the ePub book's entry from the ePub's folder in the Finder (which has to be opened from Terminal, b.t.w)
- move the duplicate to another (temporary) folder
- remove the .epub extension from the duplicate file (otherwise the utility will just delete it). This will then show as a folder in the Finder
- *then* drag the renamed folder onto the utility which will yield the importable epub file.
Thanks gamcall, that fixed my problem. I'm on macOS Catalina and calibre 4.13.
Polgs is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre cannot add books gazruss Calibre 1 08-05-2017 04:21 PM
Cannot add any books to Calibre nirvandal09 Library Management 2 06-23-2016 10:45 AM
How to add books to Calibre... alkopop79 Devices 3 04-02-2012 12:06 PM
How to add books to Calibre? tenco Library Management 3 03-04-2011 06:48 PM
Add books to Calibre Pauly454 Calibre 6 12-30-2009 01:37 AM


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


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