Calibre refused to delete book

Bug #1240788 reported by Dan Weber on 2013-10-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

After converting an epub to rtf when I tried to remove book error message popped up

calibre, version 1.6.0
ERROR: Unhandled exception: <b>Error</b>:Destination path 'C:\Users\Dan\Documents\Calibre Library deleted bqnfsr\The Last Detective (341)' already exists

calibre 1.6 isfrozen: True is64bit: False
Windows-8-6.2.9200 Windows ('32bit', 'WindowsPE')
('Windows', '8', '6.2.9200')
Python 2.7.5
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Traceback (most recent call last):
  File "site-packages\calibre\gui2\actions\delete.py", line 380, in delete_books
  File "site-packages\calibre\gui2\actions\delete.py", line 363, in do_library_delete
  File "site-packages\calibre\gui2\library\models.py", line 352, in delete_books_by_id
  File "site-packages\calibre\db\cache.py", line 57, in call_func_with_lock
  File "site-packages\calibre\db\cache.py", line 1400, in remove_books
  File "site-packages\calibre\db\backend.py", line 1488, in remove_books
  File "site-packages\calibre\db\delete_service.py", line 49, in delete_books
  File "site-packages\calibre\db\delete_service.py", line 60, in queue_paths
  File "shutil.py", line 291, in move
Error: Destination path 'C:\Users\Dan\Documents\Calibre Library deleted bqnfsr\The Last Detective (341)' already exists

I deleted files using File Explorer. File did convert. I use Win 8-64 bit. I have ActiveState ActivePython 2.7 (32-bit) installed. First problem in 4 years.

That error indicates that one of the files belonging to that book was
open in another program, which is why the delete failed, most likely the
file was being scanned by your antivirus at the time. I have changed
the code to first check for that condition and refuse to proceed if the
file is open in another program.

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers