Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-26-2017, 02:43 PM   #16
canpolat
Connoisseur
canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.
 
Posts: 92
Karma: 17950
Join Date: Mar 2013
Device: Xodo
@BetterRed, @theducks and @kovidgoyal thank you for your responses.

Here is what I did today: I deleted the whole library. Then, went back to the old PC and used the Calibre Export to export the library into the external HDD. Then connected the external HDD to the new PC and started a Calibre Import from there. Everything went OK. But when I tried to modify a title I got the exact same error: "cover.jpg did not exist when this move operation was started"

Then I went on to try @BetterRed's idea. I uninstalled the 64 bit and installed they 32 bit version. And the error was still there:

Code:
calibre, version 3.8.0
ERROR: Unhandled exception: <b>ValueError</b>:The file u'C:\\Users\\erenc\\Documents\\Calibre\\<LibraryName>\\<Author>\\<Title> (Id)\\cover.jpg' did not exist when this move operation was started

calibre 3.8  embedded-python: True is64bit: False
Windows-10-10.0.15063-SP0 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.15063')
Python 2.7.12+
Windows: ('10', '10.0.15063', 'SP0', u'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Find Duplicates (1, 6, 2) && Open With (1, 5, 9)
Traceback (most recent call last):
  File "site-packages\calibre\gui2\metadata\single.py", line 604, in accept
  File "site-packages\calibre\gui2\metadata\single.py", line 579, in apply_changes
  File "site-packages\calibre\gui2\metadata\basic_widgets.py", line 220, in commit
  File "site-packages\calibre\db\legacy.py", line 824, in func
  File "site-packages\calibre\db\cache.py", line 62, in call_func_with_lock
  File "site-packages\calibre\db\cache.py", line 1095, in set_field
  File "site-packages\calibre\db\cache.py", line 1109, in update_path
  File "site-packages\calibre\db\backend.py", line 1561, in update_path
  File "site-packages\calibre\db\backend.py", line 1347, in copy_cover_to
  File "site-packages\calibre\utils\filenames.py", line 419, in copy_path_to
ValueError: The file u'C:\\Users\\erenc\\Documents\\Calibre\\<LibraryName>\\<Author>\\<Title> (Id)\\cover.jpg' did not exist when this move operation was started
I only see this error in this library. I have two other libraries located next to this one and the work fine.

Last edited by canpolat; 09-26-2017 at 03:46 PM.
canpolat is offline   Reply With Quote
Old 09-26-2017, 04:41 PM   #17
canpolat
Connoisseur
canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.canpolat for a long time would go to bed early.
 
Posts: 92
Karma: 17950
Join Date: Mar 2013
Device: Xodo
This does not look good. There is definitely something wrong with this library (after the transfer) and I cannot tell what.

I started thinking about adding this whole folder again but that will cost me a huge amount of time if I lose the metadata. I also need to keep the Calibre Id's in addition to the metadata (due to some workflow reason).

So I tried the calibredb command line interface. I think if I can keep the Calibre Ids intact, I can try putting together a script to move the metadata from the old database to the new one. But after some testing I noticed that the add_format function does not populate the cover:

calibredb --library-path $LibraryPath add_format --duplicates $Id $DocumentPath

Few of the PDF files also contain metadata as embedded XMP and the add function did not read the metadata either (when I add the document via GUI, the metadata is populated for those that have embedded metadata).

So, before losing all hope, my question is: is there a way to use the add_format function so that it reads the embedded metadata?
canpolat is offline   Reply With Quote
Advert
Old 09-26-2017, 04:47 PM   #18
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,746
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@canpolat - we x-posted

Quote:
Originally Posted by canpolat View Post
Here is what I did today: I deleted the whole library. Then, went back to the old PC and used the Calibre Export to export the library into the external HDD. Then connected the external HDD to the new PC and started a Calibre Import from there. Everything went OK. But when I tried to modify a title I got the exact same error: "cover.jpg did not exist when this move operation was started"
That should have resolved any Linux->Windows issues, as per Kovid's advice.

Quote:
Originally Posted by canpolat View Post
Then I went on to try @BetterRed's idea. I uninstalled the 64 bit and installed they 32 bit version. And the error was still there:
What about Safe Mode - although given next sentence I don't have much hope.

Quote:
Originally Posted by canpolat View Post
I only see this error in this library. I have two other libraries located next to this one and the work fine.
Well that must mean it's something peculiar to the problematic library - not Calibre or Windows. Here's a couple of ideas
  • Move the Library folder with Windows to say C:\Calibre\<library name>, you'll need inform calibre of the new location via the Create/witch library tool.

    If that works then that would suggest there maybe something wrong with the NTFS MFT, if it doesn't work that would suggest there is definitely something wrong with the NTFS MFT. In either case I'd be worried about the drive.
  • Try creating a fresh library and copying books into it from the problematic library - using calibre's Copy to library tool (by default it's in the book list context menu). First try copying just a few books. If the fresh library works, then copy and delete the rest.
BR

Last edited by BetterRed; 09-26-2017 at 04:50 PM.
BetterRed is offline   Reply With Quote
Old 09-26-2017, 08:45 PM   #19
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,079
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Export / Import CREATES a Library. No need to add, it should be ready to go.
Once you are happy, you could combine (merge, AKA Copy to Library) with an existing Library, already on the system
theducks is offline   Reply With Quote
Old 09-26-2017, 09:13 PM   #20
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,746
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
Export / Import CREATES a Library. No need to add, it should be ready to go.
Should be, but it wasn't was it - this is what he wrote in post #16

Quote:
Originally Posted by canpolat View Post
Here is what I did today:
  1. I deleted the whole library.
  2. Then, went back to the old PC and used the Calibre Export to export the library into the external HDD.
  3. Then connected the external HDD to the new PC and started a Calibre Import from there. Everything went OK.
  4. But when I tried to modify a title I got the exact same error: "cover.jpg did not exist when this move operation was started"
I haven't answered the questions he poses in post #17 because I am not sure of adding from an existing library via the command line and getting all the metadata from the opf files.

BR

Last edited by BetterRed; 09-26-2017 at 09:18 PM.
BetterRed is offline   Reply With Quote
Advert
Reply

Tags
error


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird problem with jpg cover AlexBell Workshop 4 02-03-2014 12:26 AM
Cover.jpg creation sjfwhite Calibre 2 10-21-2013 02:35 PM
Error message: The file did not exist when this move operation was started Sternchen Calibre 12 11-24-2012 08:11 PM
Using the book name for the cover.jpg Bigo2 Calibre 7 12-31-2011 09:06 PM
Can't update cover if file cover.jpg is already in the directory ? q345 Calibre 14 06-08-2010 06:23 AM


All times are GMT -4. The time now is 04:30 AM.


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