Thread: import error
View Single Post
Old 10-08-2020, 09:56 PM   #1
kcarscadden
Zealot
kcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavenskcarscadden is a rising star in the heavens
 
kcarscadden's Avatar
 
Posts: 141
Karma: 13776
Join Date: Jan 2007
Location: semi-north Ontario, Canada (N 45.41 W -79.67)
Device: iPad Air 5, Samsung Galaxy S20 FE
import error

I'm attempting to import a library exported from a Windows 10 Calibre V4.20 to a Raspberry Pi Calibre v3.39.1. The import finished with the following error:

calibre, version 3.39.1
ERROR: Failed: Failed to import data. Click "Show Details" for more information.

Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/dialogs/exim.py", line 140, in run_action
self.action(abort=self.abort, progress1=self.update_overall_signal.emit, progress2=self.update_current_signal.emit)
File "/usr/lib/calibre/calibre/utils/exim.py", line 338, in import_data
import_library(library_key, importer, dest, progress=progress2, abort=abort).close()
File "/usr/lib/calibre/calibre/db/cache.py", line 2250, in import_library
cache._update_path((book_id,), mark_as_dirtied=False)
File "/usr/lib/calibre/calibre/db/cache.py", line 1113, in update_path
self.backend.update_path(book_id, title, author, self.fields['path'], self.fields['formats'])
File "/usr/lib/calibre/calibre/db/backend.py", line 1552, in update_path
source_ok = current_path and os.path.exists(spath)
File "/usr/lib/python2.7/genericpath.py", line 26, in exists
os.stat(path)
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 55: ordinal not in range(256)

The database was imported along with about 300 of 5500 books. Is there any way to get passed this error?

Keith
kcarscadden is offline   Reply With Quote