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-23-2023, 11:06 PM   #1
wmd509
Junior Member
wmd509 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2023
Device: kindle
Keep getting this error on Calibre 6.25

When trying to update metadata I keep getting the below error which I have never seen before. It also shows up when I try to open books. I'll also note that windows explorer is not open in the folder in question. I've tried exiting calibre and restarting it as well.

calibre, version 6.25.0
ERROR: Cannot open file or folder as it is in use: Could not change on-disk location of this book's files. The folder "C:\\Users\\user\\Calibre Library\\AuthorName\\Book Title (5135)" is opened in another program, so calibre cannot access it.This is usually caused by leaving Windows explorer or a similar file manager open to a folder in the calibre library. Close Windows explorer and retry.


calibre 6.25 embedded-python: True
Windows-10-10.0.22621-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22621')
Python 3.10.1
Windows: ('10', '10.0.22621', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: FanFicFare (4, 26, 1)
Traceback (most recent call last):
File "calibre\utils\copy_files.py", line 112, in _open_file
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: ''C:\\Users\\user\\Calibre Library\\AuthorName\\Book Title (5135)'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\gui2\metadata\single.py", line 687, in next_clicked
File "calibre\gui2\metadata\single.py", line 620, in apply_changes
File "calibre\gui2\metadata\basic_widgets.py", line 231, in commit
File "calibre\db\legacy.py", line 934, in func
File "calibre\db\cache.py", line 85, in call_func_with_lock
File "calibre\db\cache.py", line 1481, in set_field
File "calibre\db\backend.py", line 1732, in windows_check_if_files_in_use
File "calibre\utils\copy_files.py", line 252, in windows_check_if_files_in_use
File "calibre\utils\copy_files.py", line 136, in __enter__
File "calibre\utils\copy_files.py", line 132, in open_all_handles
File "calibre\utils\copy_files.py", line 123, in _open_file
File "calibre\utils\copy_files.py", line 112, in _open_file
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\user\\Calibre Library\\AuthorName\\Book Title (5135)'
wmd509 is offline   Reply With Quote
Old 08-23-2023, 11:10 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There is some program on your computer that has that folder open. Sadly the windows kernel does not track which programs have folders open, so calibre cannot tell you which program it is.
kovidgoyal is online now   Reply With Quote
Old 08-23-2023, 11:16 PM   #3
wmd509
Junior Member
wmd509 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2023
Device: kindle
One detail on testing things a bit further full exit and waiting a few minutes will sometimes resolve the issue.
wmd509 is offline   Reply With Quote
Old 08-24-2023, 08:11 AM   #4
jospalau
Addict
jospalau ought to be getting tired of karma fortunes by now.jospalau ought to be getting tired of karma fortunes by now.jospalau ought to be getting tired of karma fortunes by now.jospalau ought to be getting tired of karma fortunes by now.jospalau ought to be getting tired of karma fortunes by now.jospalau ought to be getting tired of karma fortunes by now.jospalau ought to be getting tired of karma fortunes by now.jospalau ought to be getting tired of karma fortunes by now.jospalau ought to be getting tired of karma fortunes by now.jospalau ought to be getting tired of karma fortunes by now.jospalau ought to be getting tired of karma fortunes by now.
 
Posts: 211
Karma: 1074916
Join Date: Jan 2021
Device: Likebook Ares
Quote:
Originally Posted by kovidgoyal View Post
There is some program on your computer that has that folder open. Sadly the windows kernel does not track which programs have folders open, so calibre cannot tell you which program it is.
He can use Process Explorer to see which process is using it

Sent from my 22081212UG using Tapatalk
jospalau is offline   Reply With Quote
Old 08-24-2023, 10:51 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by jospalau View Post
He can use Process Explorer to see which process is using it

Sent from my 22081212UG using Tapatalk
I doubt it, since the kernel does not track that information process explorer cannot magically divine it. Note we are talking about folders here not files. Both calibre and process explorer will tell you what program has a file open. That said, worth a try, maybe process explorer does some magic
kovidgoyal is online now   Reply With Quote
Old 08-24-2023, 11:00 AM   #6
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
I find this tool useful for troubleshooting similar issues:

https://www.nirsoft.net/utils/opened_files_view.html

OpenedFilesView displays the list of all opened files on your system. For each opened file, additional information is displayed: handle value, read/write/delete access, file position, the process that opened the file, and more...
Optionally, you can also close one or more opened files, or close the process that opened these files.
Comfy.n is offline   Reply With Quote
Old 08-25-2023, 02:14 PM   #7
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
Quote:
Originally Posted by Comfy.n View Post
I find this tool useful for troubleshooting similar issues:

https://www.nirsoft.net/utils/opened_files_view.html
Good old nirsoft!

Many years ago, as a absolute computer newbie, I used some nirsoft tools to screw up my Win98 installation so badly that I had to set it up again.
Since then I still use nirsoft.
Wiggo is offline   Reply With Quote
Old 08-25-2023, 02:28 PM   #8
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by Wiggo View Post
Good old nirsoft!

Many years ago, as a absolute computer newbie, I used some nirsoft tools to screw up my Win98 installation so badly that I had to set it up again.
Since then I still use nirsoft.
lol. they have some really powerful utilities. The other day I updated the whole suite here:

https://launcher.nirsoft.net/downloads/index.html

but that package location was not obvious to me, I had to navigate a lot through the website to find it
Comfy.n is offline   Reply With Quote
Old 08-25-2023, 03:17 PM   #9
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,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by Comfy.n View Post
lol. they have some really powerful utilities. The other day I updated the whole suite here:

https://launcher.nirsoft.net/downloads/index.html

but that package location was not obvious to me, I had to navigate a lot through the website to find it
Some antiviruses really do not like Nirsoft's tools (especially the password recovery applications), so you might just want to blanket-exempt whatever folder you install that in.
ownedbycats is offline   Reply With Quote
Old 08-27-2023, 06:10 AM   #10
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by ownedbycats View Post
Some antiviruses really do not like Nirsoft's tools (especially the password recovery applications), so you might just want to blanket-exempt whatever folder you install that in.
yeah, I remember that happening on earlier versions. Sofer posted an article about it:

http://blog.nirsoft.net/2009/05/17/a...ll-developers/

IMO, large software companies can't make such fast, portable and powerful tools as he does, but they have a trustworthy façade and AV companies on their side. Sofer's Uninstall View, for instance, is way faster than MS built-in Add-remove...
Comfy.n is offline   Reply With Quote
Old 08-27-2023, 06:34 AM   #11
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,037
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by ownedbycats View Post
Some antiviruses really do not like Nirsoft's tools (especially the password recovery applications), so you might just want to blanket-exempt whatever folder you install that in.
Almost all AV software fails on new malware and periodically damages systems with false positives. It's equivalent to security on a building that relies on arrogant security guards with little knowledge of the employees who patrol the rooms more than the perimeter. User training on use of external devices/storage, email use (attachments, remote content) and web script blocking by default is more use than AV. Also configuring so nothing autoruns. MS was stupid adding Autorun to Win95, because the Amiga floppy autorun virus already existed. Then they added it to certain kinds of network shares.
Also then USB HID allows silent autorun of a script, so an evil mouse (on phone/tablet an evil charger) can install a root-kit.
Intel then lost the plot and added JTAG over USB and ability to change the management engine via USB.

Don't rely on AV.

When I did IT in the past, all the computers with malware had AV already installed.
Quoth is offline   Reply With Quote
Old 08-27-2023, 12:18 PM   #12
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,057
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 Quoth View Post
Almost all AV software fails on new malware and periodically damages systems with false positives.
<snip>
Don't rely on AV.

When I did IT in the past, all the computers with malware had AV already installed.
Many years ago: Norton AV checking accidentally deployed a virus.

Avoid dodgy sites
Don't open mail attachments you did not expect, even from folk you know (they may have been hacked or spoofed) . The message may give you warm fuzzy's that it is real, otherwise avoid vague, non-personalize body text raves.

LOOK at the status bar before clicking. Many show the LINK URL (which may be nothing like what the text shows.

Avoid "shortened" URLs (against MR guidelines for a reason) as you have no idea where you will end up.
theducks is offline   Reply With Quote
Old 08-27-2023, 07:08 PM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The first thing to do is move the library out of the Users directory. That is a really bad place to put it in Windows.

Next, try again and see if you still get the same error.
JSWolf is offline   Reply With Quote
Old 08-27-2023, 08:59 PM   #14
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,210
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
The first thing to do is move the library out of the Users directory. That is a really bad place to put it in Windows.

Next, try again and see if you still get the same error.
My calibre libraries have lived in c:\users\<username>\calibre\<library_name> for close to a decade and I haven't seen any issues with using those directories. Now if you have it in c:\users\<username>\Documents\<directory name>, you may have an issue since current Windows versions love syncing that folder to OneDrive unless you play with the sync settings.
DNSB is offline   Reply With Quote
Old 08-27-2023, 09:04 PM   #15
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,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by JSWolf View Post
The first thing to do is move the library out of the Users directory. That is a really bad place to put it in Windows.
WHY?

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibre corrupt error corrupt error database disk image is malformed didu812 Calibre 50 04-10-2024 08:51 AM
Calibre Hudl 2: calibre, version 3.2.1 ERROR: Error: Error communicating with device elfed Devices 4 07-21-2017 05:33 AM
Error Message with Calibre & Calibre Companion wildoatz Calibre Companion 2 03-25-2016 09:19 AM
Calibre plugIn Kindle Collections Error message "Value Error:month..." readee Plugins 4 10-10-2011 11:21 AM
calibre, version 0.8.8 ERROR: Error: Error communicating with device no such column: e-bookuser Devices 1 07-03-2011 04:09 PM


All times are GMT -4. The time now is 08:59 AM.


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