View Single Post
Old 02-08-2022, 08:48 AM   #155
lomkiri
Groupie
lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.
 
lomkiri's Avatar
 
Posts: 170
Karma: 1497966
Join Date: Jul 2021
Device: N/A
(linux, calibre 5.99.6)
When an epub is read-only, the action "Save" fails, which is logical.
What is not expected is that the action "save as" also fails. Is it normal ?
Spoiler:

Traceback (most recent call last):
File "calibre/gui2/tweak_book/job.py", line 33, in run
File "calibre/gui2/tweak_book/boss.py", line 1316, in do_save
File "calibre/gui2/tweak_book/save.py", line 70, in save_container
File "calibre/ebooks/oeb/polish/container.py", line 1412, in commit
File "calibre/ebooks/tweak.py", line 61, in zip_rebuilder
File "calibre/utils/zipfile.py", line 761, in __init__
PermissionError: [Errno 13] Permission denied: '/data/temp/.ub6r5jw8.epub'

A remark:
With "Save", even if it written that is a permission problem, it is not obvious to understand that the epub is R/O since the error msg gives the name of the cached file, not of the epub. Would it be possible to name the original file, not the cache ?
Here is what we get with "Save":
Spoiler:

Traceback (most recent call last):
File "calibre/gui2/tweak_book/save.py", line 192, in process_save
File "calibre/gui2/tweak_book/save.py", line 204, in do_save
File "calibre/gui2/tweak_book/save.py", line 70, in save_container
File "calibre/ebooks/oeb/polish/container.py", line 1412, in commit
File "calibre/ebooks/tweak.py", line 61, in zip_rebuilder
File "calibre/utils/zipfile.py", line 761, in __init__
PermissionError: [Errno 13] Permission denied: '/data/temp/epub-test/.715gkqs3.epub'

Last edited by lomkiri; 02-08-2022 at 08:53 AM.
lomkiri is offline   Reply With Quote