View Single Post
Old 02-26-2024, 03:22 AM   #1
jomteon
Junior Member
jomteon began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2024
Device: none
Permission error preventing the use of DeDRM

Currently trying to get DeDRM working. When I click the configuration option "Kindle for Android ebooks" and choose a backup file, I get a message that says it cannot open it as a temp file is already running. The full error is:

Code:
calibre, version 7.5.1
ERROR: Cannot open file or folder as it is in use: <p>Could not open the file: "C:\Users\MyName\AppData\Local\Temp\tmpka_r7mog". It is already opened in the following programs:<div>The main calibre program: C:\Program Files\Calibre2\calibre.exe

calibre 7.5.1  embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.11.5
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
EXE path: C:\Program Files\Calibre2\calibre.exe
Successfully initialized third party plugins: DeDRM (7, 2, 1)
Traceback (most recent call last):
  File "calibre_plugins.dedrm.config", line 952, in get_android_file
  File "calibre_plugins.dedrm.androidkindlekey", line 303, in get_serials
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\MyName\\AppData\\Local\\Temp\\tmpka_r7mog'
Things I've done to remedy this:
  • of course rebooting
  • going into the Windows 10 environment variables. I tried both "user variables" and "system variables" clicking on New and setting the Variable to CALIBRE_TEMP_DIR and the Value to a different folder to hold temp files. (I rebooted after this as well)
  • I also tried to change the temp folder by starting up calibre with a batch file, using the line

Code:
set CALIBRE_TEMP_DIR=D:\Software\calibre_temp\Temporary\Calibre\temp
None of this has worked. Not only has it not fixed the issue, it seems that my adjustments to the environment variables didn't do anything either. Calibre is still creating the troublesome files in C:\\Users\\MyName\\AppData\\Local\\Temp

I'm completely unsure how to move forward. Any help would be greatly appreciated.
jomteon is offline   Reply With Quote