View Single Post
Old 04-30-2023, 09:50 PM   #7
Shykat
Addict
Shykat ought to be getting tired of karma fortunes by now.Shykat ought to be getting tired of karma fortunes by now.Shykat ought to be getting tired of karma fortunes by now.Shykat ought to be getting tired of karma fortunes by now.Shykat ought to be getting tired of karma fortunes by now.Shykat ought to be getting tired of karma fortunes by now.Shykat ought to be getting tired of karma fortunes by now.Shykat ought to be getting tired of karma fortunes by now.Shykat ought to be getting tired of karma fortunes by now.Shykat ought to be getting tired of karma fortunes by now.Shykat ought to be getting tired of karma fortunes by now.
 
Shykat's Avatar
 
Posts: 205
Karma: 494052
Join Date: Dec 2010
Device: iPhone, iPad Mini, my PC and Galaxy Tab A :)
Well FUDGE....

I did 2 books.. the two that I had been working on before. Just tried a third.

I added the book then opened edit metadata and filled in the author the way I like it and then added in the book information.

Everything looks great... all the same steps I did with the other two books and now.. again..... I click OK and I'm not trying to move the book.. just add the metadata information... and I get

calibre, version 6.17.0
ERROR: Permission denied: Could not change the on disk location of this book. Is it open in another program?

Locked file: F:\Calibre ebooks\Rebel Bloom\Mountain Man Triplets_ A Reverse Ha (3237)

Traceback (most recent call last):
File "calibre\utils\copy_files.py", line 212, in copy_tree
File "shutil.py", line 739, in rmtree
File "shutil.py", line 621, in _rmtree_unsafe
File "shutil.py", line 619, in _rmtree_unsafe
PermissionError: [WinError 5] Access is denied: 'F:\\Calibre ebooks\\Rebel Bloom\\Mountain Man Triplets_ A Reverse Ha (3237)'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\gui2\metadata\single.py", line 617, in apply_changes
File "calibre\gui2\metadata\basic_widgets.py", line 241, 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 1508, in set_field
File "calibre\db\cache.py", line 1522, in update_path
File "calibre\db\backend.py", line 1875, in update_path
File "calibre\utils\copy_files.py", line 216, in copy_tree
File "shutil.py", line 739, in rmtree
File "shutil.py", line 621, in _rmtree_unsafe
File "shutil.py", line 619, in _rmtree_unsafe
PermissionError: [WinError 5] Access is denied: 'F:\\Calibre ebooks\\Rebel Bloom\\Mountain Man Triplets_ A Reverse Ha (3237)'

The permission error at the bottom... is a directory with the book's original title and then, I look in the directory and see there is a directgory with the book's original title with nothing in it and then a directory with the new title I have used and in that directory is an epub with the title formatted the way I like it.

I click okay to close the error and the window and, on the main screen, the book's cover is no longer there. and when I try to delete the file, I get:

calibre, version 6.17.0
ERROR: Permission denied: Could not access Mountain Man Triplets_ A Reverse Ha (3237). Is it being used by another program? Click "Show details" for more information.

Traceback (most recent call last):
File "calibre\utils\copy_files.py", line 212, in copy_tree
File "shutil.py", line 739, in rmtree
File "shutil.py", line 621, in _rmtree_unsafe
File "shutil.py", line 619, in _rmtree_unsafe
PermissionError: [WinError 5] Access is denied: 'F:\\Calibre ebooks\\Rebel Bloom\\Mountain Man Triplets_ A Reverse Ha (3237)'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\gui2\actions\delete.py", line 459, in do_library_delete
File "calibre\gui2\library\models.py", line 464, in delete_books_by_id
File "calibre\db\cache.py", line 85, in call_func_with_lock
File "calibre\db\cache.py", line 2082, in remove_books
File "calibre\db\backend.py", line 2148, in remove_books
File "calibre\db\backend.py", line 2041, in move_book_to_trash
File "calibre\utils\copy_files.py", line 216, in copy_tree
File "shutil.py", line 739, in rmtree
File "shutil.py", line 621, in _rmtree_unsafe
File "shutil.py", line 619, in _rmtree_unsafe
PermissionError: [WinError 5] Access is denied: 'F:\\Calibre ebooks\\Rebel Bloom\\Mountain Man Triplets_ A Reverse Ha (3237)'

It keeps pointing back to the directory with the old book's name and not the new one. To get the book to be deleted, after I get that error, I have to close Calibre and then open it again and the book is gone.

I don't know why those first 2 finally worked and now this one doesn't.
Shykat is offline   Reply With Quote