View Single Post
Old 11-20-2010, 04:14 PM   #6
kili0fi
Junior Member
kili0fi began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2010
Device: Kindle PC
Hi, i'm getting similar error.
ERROR: Bad database location: Bad database location 'C:\\Users\\User\\Calibre Library'. Will start with a new, empty calibre library

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 129, in __init__
File "site-packages\calibre\library\database2.py", line 99, in connect
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\User\\Calibre Library\\metadata.db'
The version is 0.7.29. Windows is 7.
Occurs after reboot, reinstall, after removing calibre directory in appdata\Roaming and with --with-library
I watched with sysinternals procmon, what calibre does. It actually can create the file metadata.db, write and close. But when doing something after first use in the process, it fails. The real windows error is "sharing violation". It seems to occur when the program does CreateFile with options read_attributes+delete. Earlier it does successfully CreateFile with only read_atributes. Note that the code may call something else, like open, but eventually they turn to CreateFile calls.
kili0fi is offline   Reply With Quote