Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 10-06-2014, 11:18 AM   #1
korben
Enthusiast
korben has a complete set of Star Wars action figures.korben has a complete set of Star Wars action figures.korben has a complete set of Star Wars action figures.korben has a complete set of Star Wars action figures.
 
korben's Avatar
 
Posts: 36
Karma: 378
Join Date: Jul 2014
Location: France
Device: pocketbook touch 2
Editor for linux does not record

Hello,

I use Calibre and its Editor for Windows and Linux.

When I use only the editor, I can save the changes I made ​​on ebooks Windows smoothly.
With Linux, an error message is returned to and recording is not done.
The error message is this:

Quote:
calibre, version 2.5.0
ERREUR : Impossible de sauvegarder: La sauvegarde du livre a échoué. Cliquez "Montrer les détails" pour plus d'informations. Vous pouvez essayer de sauvegarder une copie à un endroit différent, via Fichier -> Sauvegarder une copie

Traceback (most recent call last):
File "site-packages/calibre/gui2/tweak_book/save.py", line 171, in process_save
File "site-packages/calibre/gui2/tweak_book/save.py", line 183, in do_save
File "site-packages/calibre/gui2/tweak_book/save.py", line 36, in save_container
OSError: [Errno 1] Opération non permise
Is this problem known ?

Have a good day.
korben is offline   Reply With Quote
Old 10-06-2014, 11:22 AM   #2
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,284
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
http://manual.calibre-ebook.com/faq....n-denied-error

In your case you likely have the permissions (umasks) on your directories setup so that calibre cannot copy the file attributes from the original book file to a temporary file.

Last edited by kovidgoyal; 10-06-2014 at 12:16 PM.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-06-2014, 03:22 PM   #3
korben
Enthusiast
korben has a complete set of Star Wars action figures.korben has a complete set of Star Wars action figures.korben has a complete set of Star Wars action figures.korben has a complete set of Star Wars action figures.
 
korben's Avatar
 
Posts: 36
Karma: 378
Join Date: Jul 2014
Location: France
Device: pocketbook touch 2
Yes, I think you're right. Everything is now to find wich directories are concerned.
korben is offline   Reply With Quote
Old 10-06-2014, 11:43 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,284
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I've changed the error message to provide details about the problem file in the next release.
kovidgoyal is offline   Reply With Quote
Old 10-07-2014, 12:25 AM   #5
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,685
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@korben - you can give calibre a dedicated temporary location, see CALIBRE_TEMP_DIR in Environment Variables

BR
BetterRed is offline   Reply With Quote
Advert
Old 10-07-2014, 12:02 PM   #6
korben
Enthusiast
korben has a complete set of Star Wars action figures.korben has a complete set of Star Wars action figures.korben has a complete set of Star Wars action figures.korben has a complete set of Star Wars action figures.
 
korben's Avatar
 
Posts: 36
Karma: 378
Join Date: Jul 2014
Location: France
Device: pocketbook touch 2
@BetterRed : changing Environment variable for CALIBRE_TEMP_DIR doesn't match because I think Editor's temp dir must be different.
I've done it to test eventually with the calibre's temp dir but no result (I've verified the change was effective with the "printenv" command).
In fact, if I could know the name of the variable of the editor's temp dir, I'm sure this will work.

@kovidgoyal : thanks for your intervention.

I'm not sure it is a temp dir problem cause I can open and modify the books. It's only when saving that the problem is.

K

Last edited by korben; 10-07-2014 at 12:23 PM.
korben is offline   Reply With Quote
Old 10-07-2014, 12:48 PM   #7
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,284
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The editor creates its temp file in the same directory as the original book file (it has in order for renames to be atomic). So the permissions problem is likely in whatever directory the original file is in.
kovidgoyal is offline   Reply With Quote
Old 10-07-2014, 03:22 PM   #8
korben
Enthusiast
korben has a complete set of Star Wars action figures.korben has a complete set of Star Wars action figures.korben has a complete set of Star Wars action figures.korben has a complete set of Star Wars action figures.
 
korben's Avatar
 
Posts: 36
Karma: 378
Join Date: Jul 2014
Location: France
Device: pocketbook touch 2
Then the problem is no longer one...

My ebooks are on a ntfs partition wich is left of my old Windows installation.
So I moved an ebook in a Linux directory to which I have rights and there the recording works.
I should have thought from the beginning, but I have not considered the problem from this angle since all my access to those partitions happen normally.

Last edited by korben; 10-07-2014 at 04:36 PM.
korben is offline   Reply With Quote
Old 10-07-2014, 05:40 PM   #9
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,685
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kovidgoyal View Post
The editor creates its temp file in the same directory as the original book file (it has in order for renames to be atomic). So the permissions problem is likely in whatever directory the original file is in.
Is that true on Windows?

What I see when I open a book in the editor is that calibre creates a folder in %CALIBRE_TEMP_DIR% with two subfolders (0000_xxxx and 0001.xxxx) each containing a hardlink clone of the book content files, if I change a file, the original remains in 0000.xxxx and the new will be in 0001_xxxx, obviously they're no longer hardlinked to the same data.

I've not tried putting the temporary location on a file system that doesn't support hardlinks, such as FAT32 or ReFS

BR
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	267
Size:	150.1 KB
ID:	129347  

Last edited by BetterRed; 10-07-2014 at 06:14 PM. Reason: change image
BetterRed is offline   Reply With Quote
Old 10-07-2014, 11:45 PM   #10
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,284
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, its true on all OSes. The hardlink clones are used for the checkpointing system, not saving the book. Saving creates a temp file in the same folder as the original. Writes all the changes to it, and if everything works renames it to the original atomically, that way the editor can never corrupt the original in case of a crash or power failure during saving.
kovidgoyal is offline   Reply With Quote
Old 10-08-2014, 04:37 AM   #11
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,685
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Yes, its true on all OSes. The hardlink clones are used for the checkpointing system, not saving the book. Saving creates a temp file in the same folder as the original. Writes all the changes to it, and if everything works renames it to the original atomically, that way the editor can never corrupt the original in case of a crash or power failure during saving.
Aaah, I read your orig post as meaning the copy was created when book was opened.

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Editor: ToC Editor: Start entry macnab69 Editor 2 06-25-2014 11:15 AM
Book Editor TOC Editor Isue? weberr Editor 2 04-17-2014 11:13 AM
Can I create am empty record that refers back to another record? ficbot Calibre 1 10-13-2011 09:20 AM
NVU 0.40 - Free (X)HTML Editor for Linux and Windows Alexander Turcic Lounge 2 08-11-2004 10:08 PM


All times are GMT -4. The time now is 12:21 AM.


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