01-24-2021, 08:03 PM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jan 2021
Device: calibri and ipad
|
Problem opening pdfs (from https://z-lib.org/)
all of the pdf books I have tried to open in Calibri give this error:
calibre, version 5.10.1 ERROR: Errors while adding: Failed to add any books, click "Show details" for more information ---------------------------------------------------------------------- Failed to add the book: Architects of Light Manual.pdf /home/bronner/Calibre Library/Architects of light hanbook-1 by Ashayana deane.pdf With error: Traceback (most recent call last): File "calibre/gui2/add.py", line 457, in add_book File "calibre/db/legacy.py", line 334, in create_book_entry File "calibre/db/cache.py", line 72, in call_func_with_lock File "calibre/db/cache.py", line 1672, in create_book_entry File "calibre/db/backend.py", line 920, in execute apsw.ReadOnlyError: ReadOnlyError: attempt to write a readonly database Any way to fixt this?? thanks |
01-24-2021, 09:05 PM | #2 |
Well trained by Cats
Posts: 29,768
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Where is this (library) Database? Something you are trying to use is Read Only.
|
01-24-2021, 09:39 PM | #3 |
Bibliophagist
Posts: 35,280
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Perhaps you should consider another source for ebooks in any format? The last time I looked, z-lib was a site for downloading illegal copies of copyrighted material.
|
01-26-2021, 05:16 PM | #4 |
Connoisseur
Posts: 99
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
|
I have this problem also. Here is additional information.
1 - The pdf's open successfully in Acrobat and Preview 2 - After generating the error shown above, attempting to add the book gives a Duplicate book error. 3 - Telling Calibre to add it again generates the same error as above. 4 - the first attempt creates a folder in the library, sometimes with the author as unknown and at other times with the author's name corrupted (like adding a ; at the end) 5 - These folders are visible in the library via Finder but cannot be found by a Calibre search either for title or author. 6 - After the duplicate add, the first folder contains metadata and cover.jpg but no book. The second only contains metadata. 7 - After some diddling around I have gotten the entries to appear in search. 8 - At that point, using the add format to book and selecting the downloaded pdf, the book is successfully added to Calibre. 9 - Examining the properties of the books in Acrobat, one has all metadata fields blank and one has only the title. The one with the title was found by calibre search, the one with no metata was not found by Calibre search. 10 - If you add the title and author metata using Acrobat, the books import into Calibre with no problem. I guess that this is the solution, unless/perhaps Calibre could contend with the case of no PDF metadata by what?, prompting for title and author or importing it with title and author set to "unknown" or "missing". |
01-26-2021, 09:23 PM | #5 |
creator of calibre
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The error has nothing to do with the file you are adding, its an error writing to calibre's database which will happen because of either permissions ussies on the database file, filesystem corruption, or some antivirus/filesync program interfering.
|
01-27-2021, 12:59 AM | #6 |
Connoisseur
Posts: 99
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
|
Ok, thanks
|
05-31-2021, 09:21 PM | #7 |
Junior Member
Posts: 5
Karma: 10
Join Date: May 2021
Device: none
|
Thank you for bringing this up. After all, most of the books that I download are in pdf format. Now I will know better to open them.
|
Tags |
calibre, error, pdf |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Optimize PDFs from archive.org for E-Ink devices | ctop | 24 | 03-05-2020 04:05 PM | |
problem with several lib on a USB key | loulou91 | Library Management | 3 | 04-03-2012 10:20 AM |
PDFs are blank when dled from archive.org | rakista | enTourage Archive | 1 | 05-16-2010 09:58 AM |