View Single Post
Old 12-12-2008, 07:13 PM   #1
moggie
Enthusiast
moggie is on a distinguished road
 
moggie's Avatar
 
Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
DatabaseError: database disk image is malformed

How do I reset the database when it is confused ?
Code:
bash-3.2$ calibredb  list
Traceback (most recent call last):
  File "/Users/jb23/Applications/calibre.app/Contents/Resources/loaders/calibredb.py", line 9, in <module>
    main()
  File "/Users/jb23/Applications/calibre.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/library/cli.py", line 527, in main
  File "/Users/jb23/Applications/calibre.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/library/cli.py", line 204, in command_list
  File "/Users/jb23/Applications/calibre.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/library/cli.py", line 103, in get_db
  File "calibre/library/database2.pyo", line 383, in __init__
  File "calibre/library/database2.pyo", line 262, in refresh
  File "calibre/library/sqlite.pyo", line 107, in run
calibre.library.sqlite.DatabaseException: database disk image is malformed
	RemoteTraceback (most recent call last):
	  File "calibre/library/sqlite.pyo", line 80, in run
	  File "calibre/library/sqlite.pyo", line 46, in get
	DatabaseError: database disk image is malformed
moggie is offline   Reply With Quote