Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-25-2013, 09:51 AM   #1
geminii_77
Member
geminii_77 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2013
Location: UK
Device: BeBook Mini, Bookeen CyBook Opus, Odyssey and Odyssey Frontlight
Renaming error

I'm trying to rename some books so that when using a Kindle I only have to create 1 folder for the author and you can see at a glance which books belong to which series.

I've never had a problem with this until I downloaded the 0.9.40 version, then I started getting the error message:

calibre, version 0.9.27
ERROR: Permission denied: Could not change the on disk location of this book. Is it open in another program?

Traceback (most recent call last):
File "site-packages\calibre\gui2\library\models.py", line 987, in setData
File "site-packages\calibre\gui2\library\models.py", line 1061, in _set_data
File "site-packages\calibre\library\database2.py", line 2218, in set
File "site-packages\calibre\library\database2.py", line 2554, in set_title
File "site-packages\calibre\library\database2.py", line 625, in set_path
File "site-packages\calibre\library\database2.py", line 1402, in copy_cover_to
File "site-packages\calibre\utils\filenames.py", line 324, in copy_path_to
File "site-packages\calibre\startup.py", line 156, in local_open
OSError: [Errno 13] Permission denied



If I click okay it changes the name but creates 2 copies of the book in the calibre folder, one containing the cover and the other containing the book/books.

Any ideas? I tried installing the 0.9.27 version and it came up with the same message.

Thanks
geminii_77 is offline   Reply With Quote
Old 07-25-2013, 07:48 PM   #2
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,721
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
  • Maybe the cover file is read only - in Windows Explorer right click the cover.jpg, select Properties, at the bottom of General sheet is Read Only property - make sure its unchecked
  • Maybe you copied the cover from an insecure zone in which case it could be 'blocked' - in Windows Explorer right click the cover.jpg, select Properties

    If there's button labelled 'Unblock' at the bottom of General sheet then click it and it should disappear.
  • Maybe another program has opened the cover and locked it, like an image editor program.

    Windows does not ship anything to easily determine if a file is locked. The simplest thing I know of is Unlocker - http://www.emptyloop.com/unlocker/ After installing it you should have an Unlocker option in your Windows Explorer right click menu.

    So, in Windows Explorer right click the cover.jpg and select Unlocker, it will show what programs have the file open, best thing is to close those programs normally or click Unlock All.

If none of the above then...

BR

Last edited by BetterRed; 07-25-2013 at 07:52 PM. Reason: clarity
BetterRed is offline   Reply With Quote
Advert
Old 07-25-2013, 11:37 PM   #3
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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You have either put your calibre library ona network drive or you have some program like dropbox or an antivirus scanning your calibre library folder at the same time that calibre is running.
kovidgoyal is online now   Reply With Quote
Old 07-30-2013, 03:32 AM   #4
geminii_77
Member
geminii_77 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2013
Location: UK
Device: BeBook Mini, Bookeen CyBook Opus, Odyssey and Odyssey Frontlight
I have checked and Calibre is on my PC, not a newtork drive and the anti-virus properties haven't been changed since I started using Calibre. It is only since I updated Calibre that I began having these problems, even if I load up earlier versions of it.
geminii_77 is offline   Reply With Quote
Old 07-30-2013, 04:01 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,721
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by geminii_77 View Post

calibre, version 0.9.27

ERROR: Permission denied: Could not change the on disk location of this book. Is it open in another program?
What version were you running 0.9.27 or 0.9.40 ?

Suggest you uninstall what's there, do a fresh download and reinstall - I'm guessing that maybe the install of 0.9.40 did not complete as it should, or the download was corrupt (I know that shouldn't happen, but...)

You should not lose any data or settings by uninstall/reinstall,,, but I suggest you backup your library and configuration folders to be on the safe side.

Did you do the checks I suggested on the cover.jpg files ?

BR
BetterRed is offline   Reply With Quote
Advert
Old 07-31-2013, 08:20 AM   #6
geminii_77
Member
geminii_77 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2013
Location: UK
Device: BeBook Mini, Bookeen CyBook Opus, Odyssey and Odyssey Frontlight
I was running 0.9.27 and updated to 0.9.40 and then I got all the problems, I have temproarily disabled my antivirus program but it still didn't work.

I've re-downloaded the latest version 0.9.41 and still have problems but now I have another file on my computer in my Calibre folder called "metadata_db_prefs_backup.json" that was never there before.
geminii_77 is offline   Reply With Quote
Old 07-31-2013, 08:58 AM   #7
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,721
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by geminii_77 View Post
I was running 0.9.27 and updated to 0.9.40 and then I got all the problems, I have temproarily disabled my antivirus program but it still didn't work.

I've re-downloaded the latest version 0.9.41 and still have problems but now I have another file on my computer in my Calibre folder called "metadata_db_prefs_backup.json" that was never there before.
The metadata_db_prefs_backup.json file is a backup of library specific preferences - its created on as an needed basis and is only used if you need to restore the database - nothing to worry about.

Have you done an uninstall, fresh download and reinstall ?

Are the messages you get in 0.9.27 & 0.9.41 exactly the same - perhaps you could post one from 0.9.41. And is the error occurring on all books or one book in particular?


Addenda

Ending up with two folders when renaming a book by changing Title or Author is usually caused by one of the following
  • if a file in the old folder is read-only then it will get copied to the new folder but it cannot be deleted from old folder, so it and the old folder remain where they were
  • if a file in the old folder is open in another program that's holding a lock over the file then it won't get copied to the new folder, and it will remain in the old folder. File locks are transitory they are only there whilst the other program has the file open
  • if the file in the old folder has been sourced from an untrusted zone, then it will be blocked. A block is similar to a lock but its persistent, the block must be removed explicitly.

Can you confirm that the format (.epub, pdf, mobi etc) and the .opf files are in the newly created book folder and that its the cover.jpg that remains in the old book folder. And if so did you do the checks on the cover file I suggested in post #2.

File blocks usually result from having the security settings in Internet Options set too high - the default settings are adequate for most people.

BR

Last edited by BetterRed; 07-31-2013 at 06:57 PM. Reason: Added Addenda
BetterRed is offline   Reply With Quote
Old 07-31-2013, 09:16 AM   #8
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
Quote:
Originally Posted by geminii_77 View Post
I've re-downloaded the latest version 0.9.41 and still have problems but now I have another file on my computer in my Calibre folder called "metadata_db_prefs_backup.json" that was never there before.
This is a Normal file combination. Some things are part of the Library structure and some things are part of YOUR usage of that structure.. They are kept separate and that is a backup.
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Renaming Books denmarks Library Management 6 07-18-2013 06:56 AM
Renaming help fairuza Calibre 3 11-27-2010 02:13 PM
Need your help renaming! GatorDeb Kindle Formats 1 08-01-2009 05:47 PM
renaming prc ec3008 iRex 3 11-30-2008 01:39 AM
Renaming files col Sony Reader 29 06-29-2007 10:10 AM


All times are GMT -4. The time now is 01:13 AM.


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