Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 05-03-2016, 02:34 PM   #1
beldin2
Junior Member
beldin2 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2013
Device: Paperwhite 2
export/import all calibre data didyn't work

I have tried to move my calibre library using export/import tool in the library menu. I had made two copies of the library using this method some time ago. Unfortunately, I am not able to recover my old library and calibre data out of none of them. Calibre data restoration is very fast (a few books per second) during first 30 percents of it. Then it slows down and restoration of one book takes a few minutes. I have let the computer work for a couple of hours and it restored 60 percent of my library but then all calibre data import window has vanished. None of the restored 60% of books is visible in calibre but they all are in calibre library folder.
Help me restore my calibre library, please.
PS:
I use Polish version of Calibre and my English isn't very good. However, I hope my translation of the Polish nomenclature into English is clear for You.
beldin2 is offline   Reply With Quote
Old 05-03-2016, 09:54 PM   #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,146
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Run calibre in debug mode (right lcick the preferences button and choose restart in debug mode) and post the debug log after importing fails.

You can also run the importer from the command line, which might work better, like this:

In a command prompt:

calibre-debug -c "from calibre.utils.exim import test_import; test_import('c:/path/to/folder/with/exported/data', 'c:/path/to/empty/folder')"

all your libraries will be created inside c:/path/to/empty/folder

Note that C:/path/to/empty/folder will be deleted if it exists, so make sure it is empty/not important.

Last edited by kovidgoyal; 05-03-2016 at 10:06 PM.
kovidgoyal is offline   Reply With Quote
Advert
Old 05-15-2016, 07:25 PM   #3
lauralmarie
Junior Member
lauralmarie began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2016
Device: kindle paperwhite
Having problem with importing my exported library file in Calibre

Hi, I hope someone has run into this problem I am having, it is a bit different than the problem beldin2 had.

I got a new computer and need to move my Calibre library to it. I exported my library into an empty folder (on a memory stick) as instructed. The file is named - part-0001.calibre-data - and the size is 826MB. When I go to the new computer and use the import function in the new Calibre and direct it to the exported file, it does not see it, as if it is not in a recognizable format. When I check the file in file explorer it is there. I have the latest Calibre version on both computers, and both have Windows 10. Any ideas as to what the problem is?

Last edited by lauralmarie; 05-15-2016 at 07:32 PM. Reason: forgot something
lauralmarie is offline   Reply With Quote
Old 05-16-2016, 01:03 AM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by lauralmarie View Post
When I go to the new computer and use the import function in the new Calibre and direct it to the exported file, it does not see it, as if it is not in a recognizable format.
Exported folder, not file.

You are not supposed to be able to select the individual *.calibre-data file(s) -- just select the containing folder.
eschwartz is offline   Reply With Quote
Old 05-20-2016, 05:11 PM   #5
lauralmarie
Junior Member
lauralmarie began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2016
Device: kindle paperwhite
Importing/exporting Calibre Library data not working

@ eschwartz. Yes, obviously you choose the folder.

This is how it goes:
1) I exported the library data to an empty folder as instructed which created the data file I mentioned.
2) On new computer (with new Calibre-same version) I chose -Import previously exported data-. Then it instructs you to choose folder.
3) When I choose the folder I had exported the data to it brings me into Calibre with a prompt to -Specify locations for the libraries you want to import. A location must be an empty folder on your computer-

It's looking for the library folder, not an exported data file. I ended up just manually copying my library into the new library folder and it worked for the most part, had to do a lot of cleanup, but at least I have my library on my new computer.
lauralmarie is offline   Reply With Quote
Advert
Old 05-20-2016, 05:19 PM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Well, that is not what you said at first.

So, when you reached the next stage and it asked you to select a folder in which to recreate the library, did it work or was there an additional problem you haven't mentioned?
eschwartz is offline   Reply With Quote
Old 05-20-2016, 06:30 PM   #7
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: 30,880
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
What is not spelled out is: You must OS Create the folder before you do the import
theducks is offline   Reply With Quote
Old 07-06-2017, 10:48 AM   #8
shayaknyc
Enthusiast
shayaknyc began at the beginning.
 
Posts: 42
Karma: 10
Join Date: Sep 2012
Device: Kobo Aura
Quote:
Originally Posted by kovidgoyal View Post
calibre-debug -c "from calibre.utils.exim import test_import; test_import('c:/path/to/folder/with/exported/data', 'c:/path/to/empty/folder')"
So, I too had a strange issue with restoring my export onto a new machine (old one crashed). I tried importing via GUI and that resulted in a strange "Access Denied" error, so I followed the instructions quoted above, replacing the source and destination appropriately and I got the same error:

Code:
Completed 1709 1709
Settings and plugins 1 2
Python function terminated unexpectedly
  [Error 5] Access is denied (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 132, in main
  File "site.py", line 109, in run_entry_point
  File "site-packages\calibre\debug.py", line 241, in main
  File "<string>", line 1, in <module>
  File "site-packages\calibre\utils\exim.py", line 374, in test_import
  File "site-packages\calibre\utils\exim.py", line 360, in import_data
WindowsError: [Error 5] Access is denied
I'm running Windows 10 64-bit with the latest version of Calibre 64-bit v3.2.1. I checked the file permissions of the folder and all *.calibre-data files and they're set to Full Permissions for "Everyone" as well as the permissions on the destination folder. Should I be running this import in an admin command prompt? Kind of at a loss here and not sure why the import is failing the full restore.....
shayaknyc is offline   Reply With Quote
Old 07-06-2017, 11:02 AM   #9
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,146
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's an error when trying to move the imported config directory to your current configuration directory location. Which means the permissions on the folder in which your calibre config directory is located are incorrect. You can check the location of the config directory via Preferences->Miscellaneous->Open config directory
kovidgoyal is offline   Reply With Quote
Old 07-06-2017, 11:05 AM   #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,146
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Actually, since this is windows, it could also be that your anti-virus is scanning the importerd config directory and therefore preventing it from being moved. So try turning it off while doing the import.
kovidgoyal is offline   Reply With Quote
Old 07-06-2017, 11:34 AM   #11
shayaknyc
Enthusiast
shayaknyc began at the beginning.
 
Posts: 42
Karma: 10
Join Date: Sep 2012
Device: Kobo Aura
Quote:
Originally Posted by kovidgoyal View Post
That's an error when trying to move the imported config directory to your current configuration directory location. Which means the permissions on the folder in which your calibre config directory is located are incorrect. You can check the location of the config directory via Preferences->Miscellaneous->Open config directory
Thanks so much for such a quick reply! So, since the last import broke, I uninstalled calibre and all calibre library files, reinstalled and before even running the GUI for the first time, I ran the command again in an admin shell and that worked with no errors.
shayaknyc is offline   Reply With Quote
Old 07-06-2017, 11:38 AM   #12
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: 30,880
Karma: 59840450
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 shayaknyc View Post
Thanks so much for such a quick reply! So, since the last import broke, I uninstalled calibre and all calibre library files, reinstalled and before even running the GUI for the first time, I ran the command again in an admin shell and that worked with no errors.
Running from Admin, ignores folder Rights (ownership).
Calibe is designed to be installed with Admin PRIVILEGES, not as ADMIN
theducks is offline   Reply With Quote
Old 07-06-2017, 11:47 AM   #13
shayaknyc
Enthusiast
shayaknyc began at the beginning.
 
Posts: 42
Karma: 10
Join Date: Sep 2012
Device: Kobo Aura
Quick question, I noticed that in the directory where I specified the restore: c:/users/[username]/calibre library/

that the import function created 2 directories inside:
1) c:/users/[username]/calibre library/calibre library/
2) c:/users/[username]/calibre library/calibre-config/

I noticed that all the plugins from the original install that was exported appear to be in the calibre-config directory. Where do I restore these? Do I put them in C:/Users/[username]/AppData/Roaming/calibre
shayaknyc is offline   Reply With Quote
Old 07-06-2017, 11:49 AM   #14
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,146
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Move the entire contents of the config directory over, or set the CALIBRE_CONFIG_DIRECTORY environment variable to point to c:/users/[username]/calibre library/calibre-config/
kovidgoyal is offline   Reply With Quote
Old 07-06-2017, 12:07 PM   #15
shayaknyc
Enthusiast
shayaknyc began at the beginning.
 
Posts: 42
Karma: 10
Join Date: Sep 2012
Device: Kobo Aura
Quote:
Originally Posted by kovidgoyal View Post
Move the entire contents of the config directory over, or set the CALIBRE_CONFIG_DIRECTORY environment variable to point to c:/users/[username]/calibre library/calibre-config/
A-MAZING! Thanks so much! I sincerely appreciate the work you do on calibre! It's really an amazing product and is one of my most prized possessions - I'd be devastated if I no longer had my digital library!
shayaknyc is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Import/Export Calibre dc696969 Library Management 3 12-27-2015 09:31 AM
Calibre - Export/Import Settings and Catalog joseph.voros Library Management 4 06-13-2014 11:19 PM
Export - Import jsbt Library Management 2 01-24-2014 02:15 PM
Unable to import or export books tracker Library Management 2 02-18-2013 02:27 PM
Import/Export Scullion Calibre 2 08-03-2009 01:15 AM


All times are GMT -4. The time now is 11:37 AM.


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