View Single Post
Old 07-08-2023, 12:58 PM   #8606
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: 11,155
Karma: 77304081
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I just got this error upon updating a fanfic with a data folder. The metadata updated, but the ePub wasn't.

Code:
Traceback (most recent call last):
  File "calibre_plugins.fanficfare_plugin.fff_plugin", line 1798, in update_books_loop
  File "calibre_plugins.fanficfare_plugin.fff_plugin", line 2268, in update_metadata
  File "calibre\db\legacy.py", line 588, in set_metadata
  File "calibre\db\cache.py", line 85, in call_func_with_lock
  File "calibre\db\cache.py", line 1691, in set_metadata
  File "calibre\db\cache.py", line 1686, in set_field
  File "calibre\db\cache.py", line 1481, in set_field
  File "calibre\db\backend.py", line 1726, in windows_check_if_files_in_use
  File "calibre\utils\copy_files.py", line 249, in windows_check_if_files_in_use
  File "calibre\utils\copy_files.py", line 231, in register_folder_recursively
  File "os.py", line 225, in makedirs
PermissionError: [WinError 5] Access is denied: 'C:\\WINDOWS\\system32\\data'
After removing the data folder it updates properly as expected.

Additional info if needed for replication:

The data folder contains an image (the cover art) inside. I don't have a cover path set for the story in personal.ini.

Neither the ePub nor book folder was open anywhere and there were no open locks when I checked with an unlocker tool. However, I did use Everything to search for and open the ePub yesterday or today.

I use a custom temporary folder, set with the env var. This is set to D:\Temporary\Calibre\temp\. The ePub was downloaded to there, just copying it to the library folder failed.

The system32 path is confusing. I don't think there is a data folder in there.

Last edited by ownedbycats; 07-08-2023 at 01:21 PM. Reason: Moved some paragraphs around
ownedbycats is online now   Reply With Quote