Order it now! Amazon prioritizes orders on a first come, first served basis.


View Full Version : can't open calibre in window - after update to 0.4.84


asfaltboy
09-20-2008, 02:36 AM
I can't open calibre (windows) after installing latest version (0.4.84)..

no errors appear, but it seems to happen right after choosing a library folder, the interface appears for a second and directly dissapears..

maybe i'm not doing it right, which folder should I chose for my library?

p.s: tried searching for "library1.db", "calibre.ini" and "calibre2.ini" and they don't exist on my hard drive... also i don't have a "VirtualStore\Program Files\calibre" dir in my users folder (i'm using vista obviously).

paul

tonyofla
09-20-2008, 06:35 AM
same thing happens to me.

kovidgoyal
09-20-2008, 11:17 AM
Post the output from running the following command in a terminal


calibre-debug -c "from calibre.gui2.main import main; main()"

tonyofla
09-20-2008, 01:56 PM
Upgrading database to version 2...
Traceback (most recent call last):
File "debug.py", line 66, in <module>
File "debug.py", line 55, in main
File "<string>", line 1, in <module>
File "C:\Program Files\calibre\library.zip\calibre\gui2\main.py", line 1387, i
n main
File "C:\Program Files\calibre\library.zip\calibre\gui2\main.py", line 220, in
__init__
File "calibre\library\database2.pyo", line 386, in __init__
File "calibre\library\database2.pyo", line 412, in upgrade_version_1
sqlite3.OperationalError: no such index: series_idx

kovidgoyal
09-20-2008, 02:04 PM
When you first ran calibre, did it transfer all your books to the new library? Or did it never run at all?

tonyofla
09-20-2008, 04:53 PM
it never ran at all.

kovidgoyal
09-20-2008, 06:22 PM
Delete the metadata.db file and also the file global.py in the calibre directory (do a search for it). Then re-run calibre (0.4.85)

tonyofla
09-20-2008, 07:39 PM
thanks, I'll try that tomorrow.

asfaltboy
09-21-2008, 03:02 AM
Delete the metadata.db file and also the file global.py in the calibre directory (do a search for it). Then re-run calibre (0.4.85)

Couldn't find neither of these files in all my hard-drive... not in calibre folder too..

kovidgoyal
09-21-2008, 03:16 AM
Couldn't find neither of these files in all my hard-drive... not in calibre folder too..

You probably have a different problem. Post the output from the calibre debug command i posted before.

tonyofla
09-21-2008, 07:11 AM
I couldn’t find the files to be deleted either, after several searches . So I deleted the programme and did a fresh install. Again, it wouldn’t start. Then, I disabled my anti virus (Kaspersky) and installed again. And it’s working! So, I’m guessing that Kaspersky was blocking something during the install? Great upgrade by the way, addition of Irish Times in news feeds a nice plus! (should add that it installed and worked without any problem on my macbook) So Vista+Kaspersky seems to be a problem, at least for me.

kovidgoyal
09-21-2008, 11:24 AM
Hmm interesting. I think I should add that tip to the FAQ.

asfaltboy
09-28-2008, 10:06 AM
following the above, i disabled my av (trend micro internet security pro) and installed calibre, now it seems to load at last :D ! thanks guys, great piece of software!

machalla
10-04-2008, 06:06 PM
Hi,

I'm having a similar problem with Version: 0.4.89 on windows xp (sp3). I have tried disabling realtime protection in avast but that made no difference. The gui never shows, the application just asks about a location for the library every time its run.

Looks like some issue with the sqllite db but I don't know enough about the program to debug this issue properly.

Thanks for any help you can offer.

-----

Debug Info is :

C:\Program Files\calibre>calibre-debug -c "from calibre.gui2.main import main; m
ain()"
Upgrading database from version: 1
Traceback (most recent call last):
File "debug.py", line 66, in <module>
File "debug.py", line 55, in main
File "<string>", line 1, in <module>
File "C:\Program Files\calibre\library.zip\calibre\gui2\main.py", line 1252, i
n main
File "C:\Program Files\calibre\library.zip\calibre\gui2\main.py", line 76, in
__init__
File "C:\Program Files\calibre\library.zip\calibre\gui2\main.py", line 1170, i
n read_settings
File "C:\Program Files\calibre\library.zip\calibre\gui2\main.py", line 1166, i
n initialize_database
File "calibre\library\database.pyo", line 801, in __init__
File "calibre\library\database.pyo", line 615, in upgrade_version1
sqlite3.OperationalError: duplicate column name: author_sort

kovidgoyal
10-04-2008, 06:12 PM
delete the file library1.db and the file metadata.db

machalla
10-04-2008, 06:19 PM
Thanks for the response.

I couldn't find a library1.db but I did delete the metadata.db. Unfortunately this doesn't seem to have helped. I checked the debug info again and the result was the same.

Is there anything else I can try?

kovidgoyal
10-04-2008, 06:33 PM
that error message indicates that a corrupted library1.db exists domewhere on your system. Did you try a full search?

kovidgoyal
10-04-2008, 06:39 PM
you can bypass the migration with the following commands:


calibre-debug -c "from calibre.library.database2 import LibraryDatabase2; db = LibraryDatabase2(r'c:\path\to\library\folder'); "
calibre-debug -c "from calibre.utils.config import prefs; prefs['library_path'] = r'c:\same\path\as\before'"

machalla
10-04-2008, 06:49 PM
Thanks for that.

I did do a full search of the drive and found a library1.db file in the intended ebook folder. I deleted this and tried again with no luck.

By using the commands you specified to bypass the migration in your last post Calibre now appears to be running correctly for me. Thanks very much for your help, I didn't expect such an amazingly quick response!