Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-13-2022, 04:31 PM   #1
VelvetElvis
Addict
VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.
 
VelvetElvis's Avatar
 
Posts: 259
Karma: 20028
Join Date: Jan 2011
Location: Canada
Device: Fire HD8, Asus, Sony (T1, PRS-300), Kobo (Glo, Touch, Wireless)
Error deleting books

I've deleted lots of content from my Calibre library in the past, but recently have had an error generated. I've checked all my other devices, and none are actively connecting.

Thought it might've been my antivirus app, so I deleted it and went back to Windows Defender. Disconnected my PC from the router as well. Still get this error. Google has been no help. Any help would be appreciated.
Attached Thumbnails
Click image for larger version

Name:	Error.jpg
Views:	128
Size:	51.8 KB
ID:	197135  
VelvetElvis is offline   Reply With Quote
Old 10-13-2022, 05:07 PM   #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,181
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
One possibility that comes to mind is if you have manually/accidentally added any files to that directory. If I recall correctly, calibre will not remove files that it does not know about. Does the check library function under Library Maintenance show any errors either in the check database pass or the check files pass?
DNSB is offline   Reply With Quote
Advert
Old 10-13-2022, 05:15 PM   #3
VelvetElvis
Addict
VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.
 
VelvetElvis's Avatar
 
Posts: 259
Karma: 20028
Join Date: Jan 2011
Location: Canada
Device: Fire HD8, Asus, Sony (T1, PRS-300), Kobo (Glo, Touch, Wireless)
Quote:
Originally Posted by DNSB View Post
One possibility that comes to mind is if you have manually/accidentally added any files to that directory. If I recall correctly, calibre will not remove files that it does not know about. Does the check library function under Library Maintenance show any errors either in the check database pass or the check files pass?
Haven't added anything to Calibre outside of the app itself. The errors pop up when I do the Check Library function in fact. Never had this issue before.
VelvetElvis is offline   Reply With Quote
Old 10-13-2022, 05:21 PM   #4
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
Was the Library restored from a DVD? That can make it (the Items that came from a CD) read only.
What does That files Properties (use Explorer) Show?

Another culprit is Not using Windows Defender , as some of the others take excessive protection steps, requiring you to white list Calibre.
theducks is offline   Reply With Quote
Old 10-13-2022, 05:22 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
What kind of drive is D: ?
theducks is offline   Reply With Quote
Advert
Old 10-13-2022, 05:46 PM   #6
VelvetElvis
Addict
VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.
 
VelvetElvis's Avatar
 
Posts: 259
Karma: 20028
Join Date: Jan 2011
Location: Canada
Device: Fire HD8, Asus, Sony (T1, PRS-300), Kobo (Glo, Touch, Wireless)
Quote:
Originally Posted by theducks View Post
Was the Library restored from a DVD? That can make it (the Items that came from a CD) read only.
What does That files Properties (use Explorer) Show?

Another culprit is Not using Windows Defender , as some of the others take excessive protection steps, requiring you to white list Calibre.
I wondered if the files were somehow marked as Read Only, so I opened up a command prompt and ran "attrib -r -a -s -h *.* /s" to ensure all the files were not read only. No change.

I was using Bitdefender and thought that might be an issue, so I uninstalled Bitdefender and reverted to Windows Defender. Alas, it didn't solve the issue.
VelvetElvis is offline   Reply With Quote
Old 10-13-2022, 05:50 PM   #7
VelvetElvis
Addict
VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.
 
VelvetElvis's Avatar
 
Posts: 259
Karma: 20028
Join Date: Jan 2011
Location: Canada
Device: Fire HD8, Asus, Sony (T1, PRS-300), Kobo (Glo, Touch, Wireless)
Quote:
Originally Posted by theducks View Post
What kind of drive is D: ?
My OS and apps reside on C: which is a solid state drive.
D: is an internal spinning rust hard drive. All my data resides on D:, which has been my setup for years. That's what's frustrating - nothing has changed outside of my Calibre version.

Appreciate yours (and others) responses.
VelvetElvis is offline   Reply With Quote
Old 10-13-2022, 05:58 PM   #8
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
Just checking it was not a NAS or remote drive. Was a Backup program running (might lock the folder)?

Can you use the CLI ebook viewer to read that file?
theducks is offline   Reply With Quote
Old 10-13-2022, 06:28 PM   #9
VelvetElvis
Addict
VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.
 
VelvetElvis's Avatar
 
Posts: 259
Karma: 20028
Join Date: Jan 2011
Location: Canada
Device: Fire HD8, Asus, Sony (T1, PRS-300), Kobo (Glo, Touch, Wireless)
Quote:
Originally Posted by theducks View Post
Just checking it was not a NAS or remote drive. Was a Backup program running (might lock the folder)?

Can you use the CLI ebook viewer to read that file?
No, nothing else running. I shutdown the other PCs and tablets in the house, and even pulled the ethernet cable to my desktop. But yes, can read the book from within Windows.

Here's what I tried:
- Opened the book from Windows Explorer and was able to read it with no issues.
- Clicked "Delete" on that book in Calibre. Got the "Error Permission Denied" popup.
- Yet despite the error, the book was in fact deleted.
- Ran the Check Library function. Got "Found no errors in your Calibre library database. Do you want to check if the files in your library match the information in the database?"
-Get "Problem found" "Extra authors". I delete those issues and all is well.

Bottom line is I can't seem to delete books from within Calibre without getting the initial error.
VelvetElvis is offline   Reply With Quote
Old 10-13-2022, 07:02 PM   #10
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,971
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Something like LockHunter may be able to help identify if something else is trying to access the folder.

Also, does it happen on a test library in a different folder? That may help rule out any weird permission issues.
ownedbycats is offline   Reply With Quote
Old 10-13-2022, 07:09 PM   #11
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
That almost sounds like a Folder delete issue.
Depending on your collection, you first remove the Title folder, then if there are no other books by that Author, that folder.
theducks is offline   Reply With Quote
Old 10-13-2022, 08:53 PM   #12
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,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@VelvetElvis - The issue is Permissions related (which are distinct from read only, hidden etc Attributes) - open the culprit folder's Properties in File Explorer, and have a look in the Security tab for any anomalies.

If you're brave you could give Everyone permission to have Full control over Mr. Del Toro's folder and delete it manually, and then run Library check to expunge the folder from the calibre database.

PS: and please post the error text rather than images - that's why there's a Copy to clipboard button.

BR

Last edited by BetterRed; 10-13-2022 at 08:58 PM. Reason: PS
BetterRed is offline   Reply With Quote
Old 10-13-2022, 10:24 PM   #13
VelvetElvis
Addict
VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.VelvetElvis can self-interpret dreams as they happen.
 
VelvetElvis's Avatar
 
Posts: 259
Karma: 20028
Join Date: Jan 2011
Location: Canada
Device: Fire HD8, Asus, Sony (T1, PRS-300), Kobo (Glo, Touch, Wireless)
Quote:
Originally Posted by BetterRed View Post
@VelvetElvis - The issue is Permissions related (which are distinct from read only, hidden etc Attributes) - open the culprit folder's Properties in File Explorer, and have a look in the Security tab for any anomalies.

If you're brave you could give Everyone permission to have Full control over Mr. Del Toro's folder and delete it manually, and then run Library check to expunge the folder from the calibre database.

PS: and please post the error text rather than images - that's why there's a Copy to clipboard button.

BR
Thanks for everyone's your comments, but no joy so far.

I copied my entire Calibre library to another folder on my drive, and opened a portable copy of Calibre.
Tried deleting files. Here’s the error box contents:

calibre, version 6.6.1
ERROR: Permission denied: Could not access Jieun Baek. Is it being used by another program? Click "Show details" for more information.

Traceback (most recent call last):
File "calibre\gui2\actions\delete.py", line 389, in do_library_delete
File "calibre\gui2\library\models.py", line 459, in delete_books_by_id
File "calibre\db\cache.py", line 77, in call_func_with_lock
File "calibre\db\cache.py", line 2034, in remove_books
File "calibre\db\backend.py", line 1854, in remove_books
File "calibre\db\delete_service.py", line 66, in delete_books
File "calibre\db\delete_service.py", line 70, in queue_paths
File "calibre\db\delete_service.py", line 100, in _queue_paths
File "calibre\utils\filenames.py", line 496, in remove_dir_if_empty
PermissionError: [WinError 5] Access is denied: 'D:\\TEST\\Calibre Library - Main\\Jieun Baek'

-------------------8<
These files are definitely not in use by another program.
Tried checking permissions, and don’t see anything out of the ordinary.
As suggested, I tried LockHunter, and I’m not sure if I understand it correctly, but pointed it to my library folder, and ran it. I’m not sure if it recursively unlocks all files in the library, but in any event, it didn’t work.

One notable point is that for every book I tried to delete, a temporary folder was created under my main library. I.e.
D:\TEST\Calibre Library – Main
D:\TEST\Calibre Library - Main deleted 1sy0qdr2
D:\TEST\Calibre Library - Main deleted ku0eowm7
etc.

EDIT:
I tried copying my library to a flash drive and opening it. I was able to delete books without an error message. So I'm not sure what could cause this same library to error out on my D: drive?

Last edited by VelvetElvis; 10-13-2022 at 10:29 PM.
VelvetElvis is offline   Reply With Quote
Old 10-14-2022, 06:28 AM   #14
Uncle Bing
Member
Uncle Bing began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Jun 2014
Location: North-east Thailand
Device: Kindle Paperwhite
I have a similar problem. I can delete any book using Calibre, but if I convert a book to another format then I can delete neither of them. The error message is calibre, version 6.7.0
ERROR: Unhandled exception: <b>AttributeError</b>:'DeleteAction' object has no attribute '_remove_format_from_ids'

calibre 6.7 embedded-python: True
Windows-10-10.0.19044-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19044')
Python 3.10.1
Windows: ('10', '10.0.19044', 'SP0', 'Multiprocessor Free')
Interface language: en_GB
Successfully initialized third party plugins: Quality Check (1, 12, 0) && View Manager (1, 9, 0)
Traceback (most recent call last):
File "calibre\gui2\actions\delete.py", line 189, in remove_format_by_id
AttributeError: 'DeleteAction' object has no attribute '_remove_format_from_ids'
Uncle Bing is offline   Reply With Quote
Old 10-14-2022, 08:06 AM   #15
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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...da14054191845a
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error message when deleting books BookJunkieLI Calibre 9 05-01-2024 11:07 AM
Calibre 64 bit error message when deleting book teresac Calibre 12 01-19-2021 07:15 AM
Troubleshooting Kindle Deleting Books/Won't Open any Books SASSBS Amazon Kindle 0 05-26-2018 06:48 AM
Error in Adding/Deleting Books toomuchreading Calibre 10 10-15-2013 05:30 AM


All times are GMT -4. The time now is 10:43 AM.


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