Activity log for bug #1408406

Date Who What changed Old value New value Message
2015-01-07 19:12:27 claas bug added bug
2015-01-07 19:12:27 claas attachment added debug log https://bugs.launchpad.net/bugs/1408406/+attachment/4293653/+files/calibre_debug_log.txt
2015-01-07 19:58:48 claas description I tried to do the following on 2 different Macs and the same result: Debug log attached; I could provide both ePub files since I took them for testing from http://gutenberg.org 1. Import an ePub into iBooks 1.1 on Mac OS X Yosemite latest Version but not Beta. Calibre 2.15 2. Connect a folder or directly take the ePub file which is in the iBooks Library and import it into calibre 3. Then following error appeared: calibre, version 2.15.0 WARNING: Errors while adding: There were problems adding some files, click "Show details" for more information ---------------------------------------------------------------------- Failed to add the file /Users/username/Downloads/4C723FB1615B399DD71076C8078F5BEA.epub to the book: /Users/username/Downloads/4C723FB1615B399DD71076C8078F5BEA With error: Traceback (most recent call last): File "site-packages/calibre/gui2/add.py", line 396, in add_formats File "site-packages/calibre/db/cache.py", line 1335, in add_format File "site-packages/calibre/startup.py", line 183, in local_open IOError: [Errno 21] Is a directory: u'/Users/username/Downloads/4C723FB1615B399DD71076C8078F5BEA.epub' 4. If I tried to import the original ePub, not imported into iBooks, then it worked without a problem. Somehow iBook is converting the ePub file. Have you heard about this and do you know how to solve the problem? The file gets even 3 times the size after importing into iBook then the original ePub. Would be great to have some help. If you need more information please let me know Thanks. Claas. I tried to do the following on 2 different Macs and the same result: Debug log attached; I could provide both ePub files since I took them for testing from http://gutenberg.org 1. Import an ePub into iBooks 1.1 on Mac OS X Yosemite latest Version but not Beta. Calibre 2.15 2. Connect a folder or directly take the ePub file which is in the iBooks Library and import it into calibre 3. Then following error appeared: calibre, version 2.15.0 WARNING: Errors while adding: There were problems adding some files, click "Show details" for more information ---------------------------------------------------------------------- Failed to add the file /Users/username/Downloads/4C723FB1615B399DD71076C8078F5BEA.epub to the book: /Users/username/Downloads/4C723FB1615B399DD71076C8078F5BEA With error: Traceback (most recent call last):   File "site-packages/calibre/gui2/add.py", line 396, in add_formats   File "site-packages/calibre/db/cache.py", line 1335, in add_format   File "site-packages/calibre/startup.py", line 183, in local_open IOError: [Errno 21] Is a directory: u'/Users/username/Downloads/4C723FB1615B399DD71076C8078F5BEA.epub' 4. If I tried to import the original ePub, not imported into iBooks, then it worked without a problem. Somehow iBook is converting the ePub file. Have you heard about this and do you know how to solve the problem? The file gets even 3 times the size after importing into iBook then the original ePub. Would be great to have some help. If you need more information please let me know Thanks. Claas. PS: I just ran a ls -la on that directory and see what: drwxr-xr-x@ 5 claas staff 170 7 Jan 19:45 4C723FB1615B399DD71076C8078F5BEA.epub It's indeed a directory, just the OS GUI wants to tell me it's a normal ePub by the extension and the behavior of the supposed opening possibility in other applications. A quote from this page: http://www.robertsetiadi.net/getting-our-books-back-itunes-yosemite/ "To make things worse, iBooks unzipped the EPUB files into folders. In case you didn’t know, EPUB format is actually a compressed file that contains structures of files and folders inside. Storing those books in uncompressed format means: it takes more space." So the only workaround might be a plugin creating again real epubs from the content of the folders I assume.
2015-01-08 00:06:34 Kovid Goyal calibre: status New Invalid
2015-03-07 09:49:44 claas attachment added convert ibooks epub folders to real epub script https://bugs.launchpad.net/calibre/+bug/1408406/+attachment/4336944/+files/runEpub.sh