ebook-meta does not work on read-only files

Bug #1504345 reported by rmiller67@yahoo.com on 2015-10-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

I like to use ebook-meta to get information about ebooks (not only to set metadata). If I run ebook-meta on a file with no other arguments, I would expect it to give me the information that I was looking for (title, etc.). Instead, I get this message:

Python function terminated unexpectedly: [Errno 13] Permission denied: u'/users/rmiller/personal/calibre library/h. g. wells/five great science fiction novels (illustrated) (3137)/metadata.opf'
Traceback (most recent call last):
  File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 209, in main
    return run_entry_point()
  File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 114, in run_entry_point
    return getattr(pmod, func)()
  File "site-packages/calibre/ebooks/metadata/cli.py", line 168, in main
IOError: [Errno 13] Permission denied: u'/users/rmiller/personal/calibre library/h. g. wells/five great science fiction novels (illustrated) (3137)/metadata.opf'

The permissions are set to read:

~% ls -l '/users/rmiller/personal/calibre library/h. g. wells/five great science fiction novels (illustrated) (3137)/metadata.opf'
-rw-r--r-- 1 rmiller staff 3267 Sep 16 11:43 /users/rmiller/personal/calibre library/h. g. wells/five great science fiction novels (illustrated) (3137)/metadata.opf

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