![]() |
#1 |
Member
![]() Posts: 17
Karma: 10
Join Date: May 2017
Device: none
|
Won't Convert - Can't Open Error
Recently Calibre stopped converting files. I am being told it was unable to open database files.
I have updated to most recent version of Calibre, and also restored my library in hopes of solving the problem. Any solutions would be greatly appreciated. Here is the error code in detail: calibre, version 3.15.0 ERROR: Unhandled exception: <b>CantOpenError</b>:CantOpenError: unable to open database file calibre 3.15 embedded-python: True is64bit: True Darwin-17.3.0-x86_64-i386-64bit Darwin ('64bit', '') ('Darwin', '17.3.0', 'Darwin Kernel Version 17.3.0: Thu Nov 9 18:09:22 PST 2017; root:xnu-4570.31.3~1/RELEASE_X86_64') Python 2.7.12 OSX: ('10.13.2', ('', '', ''), 'x86_64') Interface language: None Traceback (most recent call last): File "site-packages/calibre/gui2/convert/single.py", line 288, in accept File "site-packages/calibre/gui2/convert/metadata.py", line 259, in pre_commit_check File "site-packages/calibre/db/cache.py", line 63, in call_func_with_lock File "site-packages/calibre/db/cache.py", line 1101, in set_field File "site-packages/calibre/db/cache.py", line 1036, in mark_as_dirty File "site-packages/calibre/db/cache.py", line 1029, in update_last_modified File "site-packages/calibre/db/write.py", line 544, in set_books File "site-packages/calibre/db/write.py", line 197, in one_one_in_books File "site-packages/calibre/db/backend.py", line 856, in executemany File "src/cursor.c", line 236, in resetcursor CantOpenError: CantOpenError: unable to open database file |
![]() |
![]() |
![]() |
#2 | |
Member
![]() Posts: 17
Karma: 10
Join Date: May 2017
Device: none
|
Quote:
I'm sorry, I didn't see the "How to ask question about conversion problems" post. I am trying to convert into .MOBI or .PDF. I have tried with multiple files over multiple conversion formats. No conversion alterations from default. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
It means Exactly what it says.
The Library is inaccessible (blocked?) A/V? Is your Library on a Local (mounted) HD (thumb drive)? Is it RWX (n77) ? You can't have any write-create restrictions (No CD/DVD) Remember that copying from those leaves the file write protected. a CHMOD is needed to restore write |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,342
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Most likely your antivirus is blocking calibre from accessing the library database. Disable the antivirus or exclude the library folder from it.
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 17
Karma: 10
Join Date: May 2017
Device: none
|
Thanks for the prompt reply, guys. I'm sorry I am a little slow and dim with this tech stuff.
I don't have antivirus on this Mac. Also, the library is too large (big reader) so it had to be put on an external hard drive since its a Macbook air with limited storage. The library has been there for quite some time and no problems with conversion before. I don't know what RWX n77 is or a CHMOD ![]() I can try to answer questions as best I can tho. Thank you again for the assistance. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,342
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If its not antivirus the other possibility is permissions problems. Try opening terminal.app and running the following command:
chmod -R a+rw /path/to/your/calibre/library/folder |
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 17
Karma: 10
Join Date: May 2017
Device: none
|
after finding the path to the folder, i copied and pasted
chmod -R a+rw /volumes/harddrive/calibrelibrary terminal responded with "No such file or directory". i can't alter metadata either, i imagine its due to the same issue. its a bit confusing, i've been using calibre for years and it just popped up recently. when changing metadata, i get: calibre, version 3.15.0 ERROR: Failed to set data: Could not set data, click Show Details to see why. Traceback (most recent call last): File "site-packages/calibre/gui2/library/models.py", line 1091, in setData File "site-packages/calibre/gui2/library/models.py", line 1166, in _set_data File "site-packages/calibre/db/legacy.py", line 441, in set File "site-packages/calibre/db/cache.py", line 63, in call_func_with_lock File "site-packages/calibre/db/cache.py", line 1092, in set_field File "site-packages/calibre/db/write.py", line 544, in set_books File "site-packages/calibre/db/write.py", line 407, in many_many File "site-packages/calibre/db/write.py", line 290, in change_case File "site-packages/calibre/db/backend.py", line 856, in executemany File "src/cursor.c", line 236, in resetcursor CantOpenError: CantOpenError: unable to open database file |
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,342
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use quotes around the path in the terminal command
|
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 17
Karma: 10
Join Date: May 2017
Device: none
|
chmod -R a+rw “/Volumes/hard drive/calibre library”
still no such file or directory. is it because of the spaces in folder/volume names? |
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,342
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use straight quotes, not curly ones. The quotes will allow the spaces to work.
|
![]() |
![]() |
![]() |
#11 |
Member
![]() Posts: 17
Karma: 10
Join Date: May 2017
Device: none
|
may be a dumb question, but can you demonstrate? I don't know what straight quotes are.
|
![]() |
![]() |
![]() |
#12 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
|
![]() |
![]() |
![]() |
#13 |
Member
![]() Posts: 17
Karma: 10
Join Date: May 2017
Device: none
|
i tried with straight quotes and curly quotes.. neither worked for me. i may just be too dense to pull this off :/
i don't even know how to make straight quotes so i just copied from the last message. |
![]() |
![]() |
![]() |
#14 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,935
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
Do you have your external hard disk plugged in? |
|
![]() |
![]() |
![]() |
#15 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,182
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Are you logged in as an Administrator or a User?
Run the cmd in post #6 as Administrator. Code:
sudo chmod -R a+rw /path/to/your/calibre/library/folder |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre won't open and weird error message! | rtshores | Calibre | 5 | 07-19-2012 01:01 AM |
Calibre won't open after install -- ERROR: Bad database location | htbyron | Calibre | 3 | 06-17-2010 10:43 AM |
Won't convert- Value Error??? Help | Krazybaker | Calibre | 2 | 01-27-2010 06:29 PM |
Won't Convert Certain PDF's-Get This Error Message | Ravensknight | Calibre | 3 | 07-05-2009 12:16 AM |
Error when trying to open Ebook Viewer, won't show stories | cloudyvisions | Calibre | 1 | 03-28-2009 04:13 AM |