Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 01-24-2021, 08:03 PM   #1
jacksonBrown
Junior Member
jacksonBrown began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2021
Device: calibri and ipad
Exclamation 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
jacksonBrown is offline   Reply With Quote
Old 01-24-2021, 09:05 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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.
theducks is online now   Reply With Quote
Old 01-24-2021, 09:39 PM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
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.
DNSB is offline   Reply With Quote
Old 01-26-2021, 05:16 PM   #4
Dan__
Connoisseur
Dan__ began at the beginning.
 
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".
Dan__ is offline   Reply With Quote
Old 01-26-2021, 09:23 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is online now   Reply With Quote
Old 01-27-2021, 12:59 AM   #6
Dan__
Connoisseur
Dan__ began at the beginning.
 
Posts: 99
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
Ok, thanks
Dan__ is offline   Reply With Quote
Old 05-31-2021, 09:21 PM   #7
Berniece McKee
Junior Member
Berniece McKee began at the beginning.
 
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.
Berniece McKee is offline   Reply With Quote
Reply

Tags
calibre, error, pdf

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Optimize PDFs from archive.org for E-Ink devices ctop PDF 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


All times are GMT -4. The time now is 09:53 AM.


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