Hello. I'm experiencing similar errors to what jtxr described above. I have a number of DRM-free ebooks in Apple Books. I want to get them into calibre. So I drag them to my desktop, where they look like perfectly fine epub files. But when I try to import them to calibre, I get an error message:
----------------------------------------------------------------------
Failed to add the file /Users/XYZ/Desktop/Wit.epub to the book: /Users/XYZ/Desktop/Wit
With error:
Traceback (most recent call last):
File "calibre/gui2/add.py", line 488, in add_formats
File "calibre/db/cache.py", line 1573, in add_format
IsADirectoryError: [Errno 21] Is a directory: '/Users/XYZ/Desktop/Wit.epub'
----------------------------------------------------------------------
So I downloaded pdurrant's handy "ePub Zip-Unzip 64 3.0" applescript, dragged the epub file onto it, but then get this error message:
----------------------------------------------------------------------
"sh: line 0: cd: /Users/XYZ/Desktop/Wit.epub/: No such file or directory"
----------------------------------------------------------------------
pdurrant, I see your suggestion to try setting it not to replace the original epub. But I'm not sure how to do this. If I press "cancel" when the "Do you want to replace it?" screen comes up, the app just quits. Would I need to adjust the underlying applescript in order to change this setting? If so, do you have tips on what edits to make?
No worries if you don't have time to offer support. It's not the end of the world if I can't solve this problem. Thanks in any case.
|