06-13-2022, 03:22 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Mar 2018
Device: Calibre
|
Failed to Export Data - Invalid Argument Error When Exporting Data
Good day, I was trying to export my Calibre data from my current library, and I get the following message a short while into the process:
Code:
calibre, version 5.43.0
ERROR: Failed: Failed to export data. Click "Show details" for more information.
Traceback (most recent call last):
File "calibre\gui2\dialogs\exim.py", line 138, in run_action
File "calibre\utils\exim.py", line 194, in export
File "calibre\db\cache.py", line 74, in call_func_with_lock
File "calibre\db\cache.py", line 2438, in export_library
File "calibre\db\cache.py", line 647, in format_metadata
File "calibre\db\backend.py", line 1397, in format_metadata
File "calibre\utils\date.py", line 250, in utcfromtimestamp
OSError: [Errno 22] Invalid argument
|
06-13-2022, 10:29 PM | #2 |
creator of calibre
Posts: 44,303
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This is caused by one of the files in the calibre library having a negative timestamp. I will add a workaround for it in the next calibre release. https://github.com/kovidgoyal/calibr...14804808f73976
|
Advert | |
|
06-17-2022, 01:38 PM | #3 |
Junior Member
Posts: 4
Karma: 10
Join Date: Mar 2018
Device: Calibre
|
Thank you for the workaround. After updating Calibre to the latest release, I am still having an issue. I uploaded 2 screenshots shown side-by-side of both the Source and Destination folder for you to see what I'm getting. After exporting all the original Calibre library data from a folder called, "Calibre Library" to a new folder called, "Calibre", the destination folder shows the imported data as just data files. Is this how it's supposed to work? I was under the impression the entire folder would be copied over exactly.
|
06-17-2022, 02:21 PM | #4 |
creator of calibre
Posts: 44,303
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes its just data files. https://manual.calibre-ebook.com/faq...ter-to-another
|
06-17-2022, 06:42 PM | #5 | |
Well trained by Cats
Posts: 30,346
Karma: 58032210
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Export 'packages' everything for transit (or backup). The size of the pieces is done for cross compatibility reasons. (It works across OS). Import allows the restoration (If you have multiple Libraries, you can choose to not do ALL of them.) |
|
Advert | |
|
06-18-2022, 03:58 PM | #6 |
Junior Member
Posts: 4
Karma: 10
Join Date: Mar 2018
Device: Calibre
|
Great! Thank you for that information.
|
06-18-2022, 06:09 PM | #7 |
Well trained by Cats
Posts: 30,346
Karma: 58032210
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Failed to export Data on 64 bit - help please. | celinego | Library Management | 4 | 06-22-2021 02:31 PM |
Calibre 5.71 - CLI - Message error when adding books/exporting data | Bertrand | Calibre | 4 | 12-18-2020 09:05 AM |
ERROR: Failed: Failed to export data | Funkybassman | Library Management | 3 | 05-09-2020 07:22 AM |
Cannot modify selected data within Export Calibre data | Pholipe | Library Management | 1 | 09-05-2019 11:34 AM |
Failed to communicate with "/interface-data/init? Network Error? | bcantrell | Devices | 3 | 01-31-2018 10:38 AM |