Error when updating metadata [Errno 13]

Bug #1627559 reported by James
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Invalid
Undecided
Unassigned

Bug Description

Version: 2.65.1
OS: OS X 10.11.6

I run the Calibre client on my local Mac and opt to store the library on a shared Windows volume.

When attempting to update the metadata of a set of books by merging their records, an error is produced:

calibre, version 2.65.1
ERROR: Unhandled exception: <b>OSError</b>:[Errno 13] Permission denied: '/Volumes/Indexed ebooks deleted I5C8o_/[file title]'

calibre 2.65.1 embedded-python: True is64bit: True
Darwin-15.6.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '15.6.0', 'Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64')
Python 2.7.11
OSX: ('10.11.6', ('', '', ''), 'x86_64')
Traceback (most recent call last):
  File "site-packages/calibre/gui2/actions/edit_metadata.py", line 464, in merge_books
  File "site-packages/calibre/gui2/actions/edit_metadata.py", line 525, in delete_books_after_merge
  File "site-packages/calibre/gui2/library/models.py", line 376, 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 1587, in remove_books
  File "site-packages/calibre/db/backend.py", line 1611, in remove_books
  File "site-packages/calibre/db/delete_service.py", line 63, in delete_books
  File "site-packages/calibre/db/delete_service.py", line 67, in queue_paths
  File "site-packages/calibre/db/delete_service.py", line 86, in _queue_paths
  File "lib/python2.7/shutil.py", line 299, in move
  File "lib/python2.7/shutil.py", line 177, in copytree
  File "lib/python2.7/os.py", line 157, in makedirs
OSError: [Errno 13] Permission denied: '/Volumes/Indexed ebooks deleted I5C8o_/[file title]'

My understanding of this particular Python error is that paths beginning with a '/' can generate it, although if that's the case, I can't think of a fix that I can implement myself.

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1627559
Changed in calibre:
status: New → Invalid
Revision history for this message
James (pudulike) wrote :

My apologies. Thanks for the link.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.