09-22-2013, 03:30 AM | #1 |
Wizard
Posts: 1,176
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
Bug "IOError: [Errno 13] Permission denied" when editing meta-data
Calibe 1.4.
Click "Edit metadata" for an existing book. Remove all existing formats for the book (green recycle button). Add a new format (red plus/book button). Click "Set metadata for the book (blue info icon)". Error: Code:
calibre, version 1.4.0 ERROR: Permission denied: Could not open foo.epub. Is it being used by another program? Traceback (most recent call last): File "site-packages\calibre\gui2\metadata\single.py", line 341, in cover_from_format File "site-packages\calibre\gui2\metadata\basic_widgets.py", line 864, in get_selected_format_metadata IOError: [Errno 13] Permission denied: u"foo.epub" Click Edit metadata again. "Set metadata for the book (blue info icon)" is now OK. |
09-22-2013, 08:37 AM | #2 |
creator of calibre
Posts: 43,852
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's almost certainly because some other program had the added file open, most likely an antivirus programor a file sync program like dropbox.
|
Advert | |
|
09-22-2013, 01:34 PM | #3 |
Wizard
Posts: 1,176
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
That was my first thought too, except that the problem goes away once you OK out of Edit metadata.
Here is a bit from a procmon log: Code:
18:12:07.7208513 calibre.exe 3556 1812 CreateFile foo.epub ACCESS DENIED Desired Access: Generic Read/Write, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a 18:12:14.6419783 calibre.exe 3556 1812 CreateFile foo.epub SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened Some other process has definitely got a lock on the file. If I exit Calibre and try and open the same file from Sigil I get the same error when I save. I have not been able to work out what is locking the file--procexp is no help. But I am a little puzzled why the Info button in Calibre Edit metadata takes a read/write lock the first time and later just a read lock? The file is external to the Calibre database, so I would expect it to only use a read lock. Thanks for your patience. Last edited by ShellShock; 09-22-2013 at 02:41 PM. |
09-22-2013, 01:41 PM | #4 |
Wizard
Posts: 1,176
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
Of course, it would help if I removed the read attribute from the epub first!
|
09-22-2013, 09:22 PM | #5 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
Advert | |
|
09-22-2013, 11:34 PM | #6 |
creator of calibre
Posts: 43,852
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It uses a read write lock for legacy reasons, it does not actually write anything to the file.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Importing meta data from xml file exported from Google "My Library" | net-buoy | Library Management | 0 | 03-14-2011 06:17 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 |
I don't understand meta data "Series" | Imatechie2006 | Calibre | 6 | 01-03-2010 03:08 AM |