View Single Post
Old 09-14-2010, 10:30 PM   #1
tilleydog
Member
tilleydog is on a distinguished road
 
Posts: 14
Karma: 50
Join Date: Jul 2010
Device: Android phone
AttributeError: 'NoneType' object has no attribute 'replace' when trying to add books

I am getting the following error when I try to add a book or multiple books. Calibre vers 7.18.

WARNING: Failed to read metadata: Failed to read metadata from the following:

Lives of Twelve Caesars, The By Sueton - Unknown.pdf
Traceback (most recent call last):
File "site-packages\calibre\gui2\add.py", line 108, in run
File "site-packages\calibre\gui2\add.py", line 170, in add
File "site-packages\calibre\library\database2.py", line 1753, in create_book_entry
File "site-packages\calibre\library\caches.py", line 518, in books_added
File "site-packages\calibre\library\database2.py", line 600, in has_cover
File "site-packages\calibre\library\database2.py", line 357, in path
AttributeError: 'NoneType' object has no attribute 'replace'

Then when I exit out of Calibre it will not restart saying the database is corrupted. I then open the database in sqllite browser go to the end of the books table and the book is there but without many of the fields populated. I remove that row and calibre will start up just fine. I have run the check database integrity and it comes back successful.

Anyone have any suggestions?
tilleydog is offline   Reply With Quote