Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-31-2022, 10:02 AM   #1
cmgam
Enthusiast
cmgam began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jun 2017
Device: Kobo Touch
Error data base location

Hi
Every time I open the program I have the message "
Database location error" (direct translation).

Traceback (most recent call last): File "calibre\gui2\main.py", line 306, in initialize_db_stage2 File "calibre\db\legacy.py", line 187, in __init__ File "calibre\db\legacy.py", line 44, in create_backend File "calibre\db\backend.py", line 467, in __init__ File "calibre\db\backend.py", line 1298, in user_version File "calibre\db\backend.py", line 1010, in conn File "calibre\db\backend.py", line 331, in __init__ apsw.CantOpenError: CantOpenError: unable to open database file

I've tried with the anti virus off but the result is the same.
The library and I don't know why, it's in "Read only" despite having already changed it.
I don't know what to do.
Thanks
Regards

Calibrate latest version, Windows 10 updated

PS. I found out that if I open the file as "administrator" it opens normally.

Enviado do meu SM-A516B através do Tapatalk

Last edited by cmgam; 08-31-2022 at 11:15 AM.
cmgam is offline   Reply With Quote
Old 08-31-2022, 11:35 AM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,155
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Depending on the library location, you might want to move it to a location where you have rights on it (I use a directory called calibre in my user directory (C:\<username>\calibre) in which I store my calibre libraries. The other choice is to give yourself rights on the directory that your calibre library is stored in.

Check Give permissions to files and folders in Windows 10 for information on doing so.
DNSB is offline   Reply With Quote
Advert
Old 08-31-2022, 06:03 PM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by cmgam View Post
Every time I open the program I have the message "Database location error" (direct translation).
Did the message contain the path to the database, viz:

Click image for larger version

Name:	Screenshot 2022-09-01 074701.jpg
Views:	457
Size:	20.4 KB
ID:	196193

Quote:
Originally Posted by cmgam View Post
Traceback (most recent call last): File "calibre\gui2\main.py", line 306, in initialize_db_stage2 File "calibre\db\legacy.py", line 187, in __init__ File "calibre\db\legacy.py", line 44, in create_backend File "calibre\db\backend.py", line 467, in __init__ File "calibre\db\backend.py", line 1298, in user_version File "calibre\db\backend.py", line 1010, in conn File "calibre\db\backend.py", line 331, in __init__ apsw.CantOpenError: CantOpenError: unable to open database file

I've tried with the anti virus off but the result is the same.
The library and I don't know why, it's in "Read only" despite having already changed it.
What do you mean by "The library"? The library folder or the library database?

And do you mean the Read only attribute, or the Security Permissions?


Quote:
Originally Posted by cmgam View Post
PS. I found out that if I open the file as "administrator" it opens normally.
Open which file?

BR
BetterRed is offline   Reply With Quote
Old 09-04-2022, 11:38 AM   #4
cmgam
Enthusiast
cmgam began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jun 2017
Device: Kobo Touch
Quote:
Originally Posted by BetterRed View Post
Did the message contain the path to the database, viz:



Attachment 196193





What do you mean by "The library"? The library folder or the library database?



And do you mean the Read only attribute, or the Security Permissions?









Open which file?



BR
Hi
If I run the program as "administrator" I have no errors.
Regards

Enviado do meu SM-A516B através do Tapatalk
cmgam is offline   Reply With Quote
Old 09-04-2022, 01:42 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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
Quote:
Originally Posted by cmgam View Post
Hi
If I run the program as "administrator" I have no errors.
Regards

Enviado do meu SM-A516B através do Tapatalk
That implies the Library folder is in a location without FULL (rwxrwxrwx) rights or you are not the owner.
theducks is offline   Reply With Quote
Advert
Old 09-04-2022, 05:37 PM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by cmgam View Post
Hi
If I run the program as "administrator" I have no errors.
Running calibre as administrator has caused problems with functionality - such as drag/drop operations not working.

¿ Why didn't you answer my other questions ?

BR
BetterRed is offline   Reply With Quote
Old 09-04-2022, 05:50 PM   #7
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by BetterRed View Post
Running calibre as administrator has caused problems with functionality - such as drag/drop operations not working.
yeah, it's something to do with how the security in Windows UAC works -- admin and non-admin programs can't really communicate with each other, and that breaks drag & drop.
ownedbycats is offline   Reply With Quote
Old 09-04-2022, 07:02 PM   #8
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Not always, I regularly drag drop tiffs from circa 2013 xplorer² (user priv) into circa 2005 vliv (admin priv).

BR
BetterRed is offline   Reply With Quote
Old 09-05-2022, 09:12 AM   #9
cmgam
Enthusiast
cmgam began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jun 2017
Device: Kobo Touch
Quote:
Originally Posted by BetterRed View Post
Running calibre as administrator has caused problems with functionality - such as drag/drop operations not working.



¿ Why didn't you answer my other questions ?



BR
Hi

When I mentioned "Library" it was the folder, d:/calibre/Library. Despite changing the attributes, it is always as "Read only".
Regards

Enviado do meu SM-A516B através do Tapatalk

Correction: Is not "d:/" but "d:\"
My apologies.

Last edited by cmgam; 09-06-2022 at 07:52 AM.
cmgam is offline   Reply With Quote
Old 09-05-2022, 01:45 PM   #10
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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
Quote:
Originally Posted by cmgam View Post
Hi

When I mentioned "Library" it was the folder, d:/calibre/Library. Despite changing the attributes, it is always as "Read only".
Regards

Enviado do meu SM-A516B através do Tapatalk
Those slashes (you showed here ) are in the Linux direction
Code:
d:\calibre\Library
theducks is offline   Reply With Quote
Old 09-05-2022, 06:03 PM   #11
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by cmgam View Post
Hi

When I mentioned "Library" it was the folder, d:/calibre/Library. Despite changing the attributes, it is always as "Read only".
I guess you mean like this:

Click image for larger version

Name:	Screenshot 2022-09-06 073815.jpg
Views:	383
Size:	38.2 KB
ID:	196307

Don't worry about it, it's a peculiarity of the Windows/calibre interaction.

When calibre adds/changes/removes authors and books to the library it does it in the safest way possible, which involves complexities such as multiple hardllnks and temporary files - Windows gets confused. The black square simply means there were some read only files in here at some point in time.

Quote:
Originally Posted by theducks View Post
Those slashes (you showed here ) are in the Linux direction
Code:
d:\calibre\Library
IIRC some Spanish keyboard layouts don't have a backslash/slosh key, you have to use an Alt+number sequence, or a keyboard macro (e.g AHK).

BR
BetterRed is offline   Reply With Quote
Old 09-05-2022, 06:11 PM   #12
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by BetterRed View Post
IIRC some Spanish keyboard layouts don't have a backslash/slosh key, you have to use an Alt+number sequence, or a keyboard macro (e.g AHK).

BR
Due to some unicode code mapping weirdness, Japanese locales of Windows use the Yen sign for path separators.
ownedbycats is offline   Reply With Quote
Old 09-05-2022, 06:15 PM   #13
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@cmgam - where is calibre installed? i.e. where is calibre.exe located, default location is C:\Program Files\Calibre2\calibre.exe

When you say you have to run calibre as administrator, I'm guessing you mean run a windows (desktop) shortcut as administrator. What happens if you run calibre.exe by double clicking on it at its install location.

BR
BetterRed is offline   Reply With Quote
Old 09-06-2022, 08:05 AM   #14
cmgam
Enthusiast
cmgam began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jun 2017
Device: Kobo Touch
Quote:
Originally Posted by BetterRed View Post
@cmgam - where is calibre installed? i.e. where is calibre.exe located, default location is C:\Program Files\Calibre2\calibre.exe

When you say you have to run calibre as administrator, I'm guessing you mean run a windows (desktop) shortcut as administrator. What happens if you run calibre.exe by double clicking on it at its install location.

BR
When I double click "Calibre.exe", the message "the library database in D:\Caliber2\caliber library" seems to be corrupt...... ". shows.
The caliber program is installed on D:\
And yes, I run a desktop shortcut as administrator.
Thanks
Regards

Enviado do meu SM-A516B através do Tapatalk

Last edited by cmgam; 09-06-2022 at 08:28 AM.
cmgam is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transplanting data base to Aura One! jackastor Kobo Reader 26 09-19-2016 12:55 PM
Aura One data base error petercreasey Devices 4 09-07-2016 08:56 PM
Aura One data base error petercreasey Kobo Reader 5 09-07-2016 07:49 PM
Compress Data Base error on GloHD mconh Devices 3 11-09-2015 05:53 PM
corrupted data base keith1241 Calibre 4 05-05-2013 10:40 PM


All times are GMT -4. The time now is 02:09 AM.


MobileRead.com is a privately owned, operated and funded community.