Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-23-2014, 12:14 PM   #1
enguerrand
Junior Member
enguerrand began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2014
Device: iPad
Error adding new books to Calibre

Hello,

I started getting error messages whenever I try adding any new book to Calibre:

calibre, version 1.20.0
WARNING: Failed to read metadata: Failed to read metadata from the following:

Erwin Panofsky-Meaning in the Visual Arts.pdf
Traceback (most recent call last):
File "site-packages\calibre\gui2\add.py", line 136, in start
File "site-packages\calibre\gui2\add.py", line 225, in add
File "site-packages\calibre\db\legacy.py", line 211, in create_book_entry
File "site-packages\calibre\db\cache.py", line 57, in call_func_with_lock
File "site-packages\calibre\db\cache.py", line 1379, in create_book_entry
File "site-packages\calibre\db\cache.py", line 1153, in set_metadata
File "site-packages\calibre\db\cache.py", line 1140, in set_field
File "site-packages\calibre\db\cache.py", line 961, in set_field
File "site-packages\calibre\db\write.py", line 513, in set_books
File "site-packages\calibre\db\write.py", line 437, in many_many
File "site-packages\calibre\db\backend.py", line 291, in executemany
File "c:\cygwin\home\kovid\sw\build\apsw-3.7.17-r1\src\cursor.c", line 231, in resetcursor
ConstraintError: ConstraintError: Foreign key violation: authors is still referenced

Before this happened, I had my system (Windows 7 32-bit) crash twice for no clear reason. I don't know if this affected Calibre's functioning. It did not seem to affect any other software.

Can someone help me with this please?
enguerrand is offline   Reply With Quote
Old 01-23-2014, 12:30 PM   #2
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,628
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Check you database integrity, it looks like something is not OK there.
Terisa de morgan is offline   Reply With Quote
Advert
Old 01-23-2014, 12:48 PM   #3
enguerrand
Junior Member
enguerrand began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2014
Device: iPad
Calibre finds no errors in the database (if you mean Library Maintenance/Check Library options - or is it something else?)
enguerrand is offline   Reply With Quote
Old 01-23-2014, 01:02 PM   #4
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: 31,048
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by enguerrand View Post
Hello,

I started getting error messages whenever I try adding any new book to Calibre:

calibre, version 1.20.0
WARNING: Failed to read metadata: Failed to read metadata from the following:

Erwin Panofsky-Meaning in the Visual Arts.pdf
Traceback (most recent call last):
File "site-packages\calibre\gui2\add.py", line 136, in start
File "site-packages\calibre\gui2\add.py", line 225, in add
File "site-packages\calibre\db\legacy.py", line 211, in create_book_entry
File "site-packages\calibre\db\cache.py", line 57, in call_func_with_lock
File "site-packages\calibre\db\cache.py", line 1379, in create_book_entry
File "site-packages\calibre\db\cache.py", line 1153, in set_metadata
File "site-packages\calibre\db\cache.py", line 1140, in set_field
File "site-packages\calibre\db\cache.py", line 961, in set_field
File "site-packages\calibre\db\write.py", line 513, in set_books
File "site-packages\calibre\db\write.py", line 437, in many_many
File "site-packages\calibre\db\backend.py", line 291, in executemany
File "c:\cygwin\home\kovid\sw\build\apsw-3.7.17-r1\src\cursor.c", line 231, in resetcursor
ConstraintError: ConstraintError: Foreign key violation: authors is still referenced

Before this happened, I had my system (Windows 7 32-bit) crash twice for no clear reason. I don't know if this affected Calibre's functioning. It did not seem to affect any other software.

Can someone help me with this please?
Not all PDF's play nice
You need to (temporarily) disable the PDF metadata reader

Preferenceslugins: Metadata READER: Read metadata from PDF files: (click the enable/disable button to get it in the desired state)
Apply

When the book has been added, you can restore the setting
theducks is offline   Reply With Quote
Old 01-23-2014, 01:14 PM   #5
enguerrand
Junior Member
enguerrand began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2014
Device: iPad
The pdf file was just an example, unfortunately. I get the same error with epub, mobi, azw3 - any format and any book I've tried.

calibre, version 1.20.0
WARNING: Failed to read metadata: Failed to read metadata from the following:

Under My Skin - Doris Lessing.epub
Traceback (most recent call last):
File "site-packages\calibre\gui2\add.py", line 136, in start
File "site-packages\calibre\gui2\add.py", line 225, in add
File "site-packages\calibre\db\legacy.py", line 211, in create_book_entry
File "site-packages\calibre\db\cache.py", line 57, in call_func_with_lock
File "site-packages\calibre\db\cache.py", line 1379, in create_book_entry
File "site-packages\calibre\db\cache.py", line 1153, in set_metadata
File "site-packages\calibre\db\cache.py", line 1140, in set_field
File "site-packages\calibre\db\cache.py", line 961, in set_field
File "site-packages\calibre\db\write.py", line 513, in set_books
File "site-packages\calibre\db\write.py", line 437, in many_many
File "site-packages\calibre\db\backend.py", line 291, in executemany
File "c:\cygwin\home\kovid\sw\build\apsw-3.7.17-r1\src\cursor.c", line 231, in resetcursor
ConstraintError: ConstraintError: Foreign key violation: authors is still referenced
enguerrand is offline   Reply With Quote
Advert
Old 01-23-2014, 01:25 PM   #6
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: 31,048
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
What OS (the c:\ makes me think some version of Windows)
theducks is offline   Reply With Quote
Old 01-23-2014, 01:31 PM   #7
enguerrand
Junior Member
enguerrand began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2014
Device: iPad
Windows 7 32-bit
enguerrand is offline   Reply With Quote
Old 01-23-2014, 01:39 PM   #8
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: 31,048
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by enguerrand View Post
Windows 7 32-bit
Thanks,
I think Kovid will have to weigh in on this one.

Those EPUB do not have DRM?

(you did try disabling or updating those tools? )
theducks is offline   Reply With Quote
Old 01-23-2014, 01:50 PM   #9
enguerrand
Junior Member
enguerrand began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2014
Device: iPad
Yes, I did try to disable the PDF metadata reader, but the error message is still the same. As for updating, I seem to have the latest version of Calibre installed.

The files have no DRM protection - and I've tried dozens of files, believe me.

Also, I have been using Calibre for years on this PC, without a glitch until this.
enguerrand is offline   Reply With Quote
Old 01-23-2014, 03:23 PM   #10
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Terisa de morgan View Post
Check you database integrity, it looks like something is not OK there.


Have you tried adding a book to a different library - eg a fresh one with same structure as existing library?

BR
BetterRed is offline   Reply With Quote
Old 01-23-2014, 11:07 PM   #11
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: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It looks like the database has been corrupted. You can try rebuilding the database by right clicking the library menu and choosing Library Maintenance->Restore database.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error adding books to Calibre dfernandez Library Management 0 09-12-2012 05:08 PM
Adding books Error tdwish Conversion 4 01-22-2012 06:37 AM
Adding Books to Calibre error Ginnia Library Management 4 06-07-2011 04:13 AM
error adding books Beau Calibre 5 11-02-2010 12:03 PM
Error adding books Gfinch Calibre 2 08-03-2008 08:36 PM


All times are GMT -4. The time now is 04:24 PM.


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