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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-14-2010, 05:34 PM   #1
KindleHelpme
Junior Member
KindleHelpme began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2010
Device: Kindle 2
Help: Can not install

I get the following error when trying to install:

Corrupted database: Your calibre database appears to be corrupted. Do you want calibre to try and repair it automatically? If you say No, a new empty calibre library will be created.

Traceback (most recent call last):
File "site-packages\calibre\gui2\main.py", line 205, in initialize_db
File "site-packages\calibre\library\database2.py", line 132, in __init__
File "site-packages\calibre\library\database2.py", line 113, in connect
File "site-packages\calibre\library\database2.py", line 303, in initialize_database
File "site-packages\calibre\library\sqlite.py", line 193, in run
DatabaseException: table authors already exists
RemoteTraceback (most recent call last):
File "site-packages\calibre\library\sqlite.py", line 157, in run
OperationalError: table authors already exists

Then, I try and repair the DB, and this is what I get:

ERROR: Bad database location: Bad database location u'C:/Documents and Settings/XXX/My Documents/Calibre Library'. calibre will now quit.

Traceback (most recent call last):
File "site-packages\calibre\gui2\main.py", line 191, in initialize_db_stage2
File "site-packages\calibre\library\database2.py", line 132, in __init__
File "site-packages\calibre\library\database2.py", line 113, in connect
File "site-packages\calibre\library\database2.py", line 303, in initialize_database
File "site-packages\calibre\library\sqlite.py", line 193, in run
DatabaseException: table authors already exists
RemoteTraceback (most recent call last):
File "site-packages\calibre\library\sqlite.py", line 157, in run
OperationalError: table authors already exists

Please help. I've tried changing the folder many times, and none work and just state I have a corrupted DB. I then try to repair it, and it doesn't work.
KindleHelpme is offline   Reply With Quote
Old 07-14-2010, 06:16 PM   #2
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: 24,817
Karma: 4369673
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Run this command in a command prompt

calibredb --with-library "C:\Documents and Settings\XXX\My Documents\library" list

Make sure the folder above exists and is empty before running the command.

If you get no errors and just some messages about upgrading the database, start calibre as

calibre --with-library "C:\Documents and Settings\XXX\My Documents\library"

And from then on you can use calibre as normal.
kovidgoyal is offline   Reply With Quote
Old 07-14-2010, 07:44 PM   #3
KindleHelpme
Junior Member
KindleHelpme began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2010
Device: Kindle 2
Thanks! I'll try it right now.
KindleHelpme is offline   Reply With Quote
Old 07-14-2010, 07:54 PM   #4
KindleHelpme
Junior Member
KindleHelpme began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2010
Device: Kindle 2
Still get the same errors. Tried your instructions twice, just to make sure.

Corrupted database: Your calibre database appears to be corrupted. Do you want calibre to try and repair it automatically? If you say No, a new empty calibre library will be created.

Traceback (most recent call last):
File "site-packages\calibre\gui2\main.py", line 205, in initialize_db
File "site-packages\calibre\library\database2.py", line 135, in __init__
File "site-packages\calibre\library\schema_upgrades.py", line 20, in __init__
File "site-packages\calibre\library\schema_upgrades.py", line 51, in upgrade_version_2
File "site-packages\calibre\library\sqlite.py", line 193, in run
DatabaseException: trigger fkc_delete_on_publishers already exists
RemoteTraceback (most recent call last):
File "site-packages\calibre\library\sqlite.py", line 157, in run
OperationalError: trigger fkc_delete_on_publishers already exists

I click No, select the same library folder, and get this:

ERROR: Bad database location: Bad database location u'C:/Documents and Settings/AngelaM/library'. calibre will now quit.

Traceback (most recent call last):
File "site-packages\calibre\gui2\main.py", line 191, in initialize_db_stage2
File "site-packages\calibre\library\database2.py", line 135, in __init__
File "site-packages\calibre\library\schema_upgrades.py", line 20, in __init__
File "site-packages\calibre\library\schema_upgrades.py", line 50, in upgrade_version_2
File "site-packages\calibre\library\sqlite.py", line 193, in run
DatabaseException: trigger fkc_delete_on_authors already exists
RemoteTraceback (most recent call last):
File "site-packages\calibre\library\sqlite.py", line 157, in run
OperationalError: trigger fkc_delete_on_authors already exists
KindleHelpme is offline   Reply With Quote
Old 07-14-2010, 08:31 PM   #5
KindleHelpme
Junior Member
KindleHelpme began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2010
Device: Kindle 2
I got it to work. I just chose C: as my library, and it worked. Going in right now to see if I can manually change the library directory from within calibre.
KindleHelpme is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Calibre will not install jesscat Calibre 15 09-19-2011 03:01 PM
Problem with 0.7.4 install Jzz Calibre 1 06-21-2010 12:14 PM
PRS-900 Sony Digital Edition Library Install, and Install, ... Hamlet53 Sony Reader 3 04-05-2010 03:29 PM
Cannot install calibre 0.6.31 DBARC Calibre 2 12-31-2009 08:02 PM
cannot install IPDF... michelev iRex 7 04-13-2009 02:45 PM


All times are GMT -4. The time now is 08:00 PM.


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