Quote:
Originally Posted by kovidgoyal
calibre-debug -c "from calibre.library import db; db = db('/path/to/library'); db.dump_metadata(db.all_ids())"
|
Using the 64 byte Win 7 version of Calibre 1.0.0, I receive the following errors whenever I try to use calibre-debug to dump the .opf files for my 26GB 32,000 epub library using Kovid's code snippet from this thread. I have tried both with and without Calibre running simultaneously, but to no avail. Any ideas as to the cause of the SHLock error? Thanks in advance for your help.
C:\Program Files\Calibre2>calibre-debug.exe -c "from calibre.library import db;
db = db('C:\Users\Public\Public eBooks\Calibre2'); db.dump_metadata(db.all_ids()
)"
Python function terminated unexpectedly
can't downgrade SHLock object (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\calibre\debug.py", line 231, in main
File "<string>", line 1, in <module>
File "site-packages\calibre\db\legacy.py", line 348, in dump_metadata
File "site-packages\calibre\db\cache.py", line 55, in ans
File "site-packages\calibre\db\cache.py", line 1012, in dump_metadata
File "site-packages\calibre\db\legacy.py", line 146, in all_ids
File "site-packages\calibre\db\cache.py", line 54, in ans
File "site-packages\calibre\db\locking.py", line 212, in __enter__
File "site-packages\calibre\db\locking.py", line 83, in acquire
File "site-packages\calibre\db\locking.py", line 153, in _acquire_shared
calibre.db.locking.LockingError: can't downgrade SHLock object