Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 05-07-2016, 10:39 AM   #1
richorlin
Enthusiast
richorlin began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Oct 2007
Device: Kindle
Errno 13 Permission denied

Running Calibre 2.5.6 on a Mac with OS X 10.11.4
When I try to delete a book from Calibre I get this error message"
ERROR: Unhanded Expression
OSError:[Errno 13] Permission denied:/Volumes/CAlibre Library deleted sEjAkU/New York Times (or whatever book I'm deleting)

I click on OK but the book is still in the Library until I close and reopen Calibre.

Appears to a python error (I think). How do I repair this?
Thanks in advance
richorlin is offline   Reply With Quote
Old 05-07-2016, 01:01 PM   #2
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
The error MESSAGE is from Python

The error is from your system OS

That path looks odd to me (I am used to Windows and Linux)
Something (else) has the file open or locked.

You can't delete a book that is open in the Viewer or Editor
(closing Calibre, will allow the lock to go away)
theducks is offline   Reply With Quote
Old 05-07-2016, 05:54 PM   #3
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,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
You can't delete a book that is open in the Viewer or Editor
(closing Calibre, will allow the lock to go away)
On Windows you can delete a book if its EPUB is open in the Editor or the Viewer, but not if its DOCX is open in Word. Because Linux and OSX don't support file locking calibre doesn't lock any files.

Error 13 Permission denied is an access control error.

On Windows when calibre deletes a book it first creates a temporary folder with a random six character name, e.g. "sEjAkU". It moves the book files into it, and deletes that folder. Looks like OSX is getting hung up on removing the temporary folder.

Probably because OSX 'thinks' something is 'using' it. Could be calibre itself or OSX. More likely something like an AV, Spotlight indexer, Time Machine, or some other program that watches and acts on file system changes.

BR

I used to get the very same problem (without an error message) in my Windows file manager.

Folder deletes would 'fail' if I had the folder open before deleting it and the folder contained audio, video, pdfs etc. To complete the deletes I would have to exit and restart the file manager.

I fixed it by excluding the troublesome file types from the File Manager's Preview function. The preview handlers for audio, video and pdfs (WMP, PDF XChange etc) hang on to the file handles in case I want to preview them again. But I only ever want to preview text files, the file manager provides the handler for such. Oh, the image handler (Irfan) didn't hang on to any file handles.

Sometimes software is too clever by half

Last edited by BetterRed; 05-07-2016 at 09:56 PM.
BetterRed is online now   Reply With Quote
Old 05-07-2016, 11:59 PM   #4
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,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Check the permissions on your calibre library folder.

In a terminal, something like

chmod -R u+rw /path/to/library/folder will do the trick
kovidgoyal is online now   Reply With Quote
Old 05-09-2016, 09:17 PM   #5
richorlin
Enthusiast
richorlin began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Oct 2007
Device: Kindle
Thanks for the help but that didn't work. The only thing that worked was to move the library back to my internal drive and that seemed to work. I could delete a book without an error. This only started after I moved my library to an external drive attached to my Mac.

This is very weird...
richorlin is offline   Reply With Quote
Old 05-17-2016, 01:19 PM   #6
Grilgar
Junior Member
Grilgar began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2011
Location: Cumming, GA
Device: Kindle Touch
Quote:
Originally Posted by richorlin View Post
Thanks for the help but that didn't work. The only thing that worked was to move the library back to my internal drive and that seemed to work. I could delete a book without an error. This only started after I moved my library to an external drive attached to my Mac.

This is very weird...
2 points:
1) If it's a network drive, that's not supported by Calibre. I use one and just deal with the occasional hiccup that causes.
2) I got this recently when I was having corruption issues on my network Calibre library drive. I had to directly attach the USB to my computer and run CHKDSK on it. Perhaps you can run the Mac equivalent.
Grilgar is offline   Reply With Quote
Old 05-20-2016, 06:29 AM   #7
richorlin
Enthusiast
richorlin began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Oct 2007
Device: Kindle
Problem solved: I had Calibre set up in the root directory of the drive. I moved it to a folder and the error dissappeared.
richorlin is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OSError: [Errno 13] Permission denied osuhickeys Devices 2 05-05-2014 08:28 PM
[Errno 13] Permission denied imans314 Devices 2 04-22-2014 03:23 PM
RSS Feeds: Errno 13 Permission denied Esquire1 Calibre 4 07-15-2010 09:13 AM
Errno 13: permission denied errors prophetik Calibre 12 05-15-2010 05:31 PM
IOError: [Errno 13] Permission denied s3ntient Calibre 3 02-20-2010 02:01 PM


All times are GMT -4. The time now is 10:40 PM.


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