View Single Post
Old 08-03-2008, 03:03 PM   #1
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,079
Karma: 14079267
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Error when importing MobiPocket files.

When trying to import the Blackmask DVD (some 10.000 classics in Mobi format) Calibre 0.4.80 crashes with the following error:

C:\Program Files\calibre>calibredb add -r "z:\Blackmask DVD\mobimax"
Traceback (most recent call last):
File "cli.py", line 430, in <module>
File "cli.py", line 427, in main
File "cli.py", line 218, in command_add
File "cli.py", line 159, in do_add
File "calibre\library\database.pyo", line 1525, in recursive_import
File "calibre\library\database.pyo", line 1479, in import_book_directory_multiple
File "calibre\ebooks\metadata\meta.pyo", line 42, in metadata_from_formats
File "calibre\ebooks\metadata\meta.pyo", line 71, in get_metadata
File "C:\Program Files\calibre\library.zip\calibre\ebooks\mobi\read er.py", line 385, in get_metadata
File "C:\Program Files\calibre\library.zip\calibre\ebooks\mobi\read er.py", line 155, in __init__
File "C:\Program Files\calibre\library.zip\calibre\ebooks\mobi\read er.py", line 78, in __init__
File "struct.pyo", line 87, in unpack
struct.error: unpack requires a string argument of length 20


This is when running calibredb by hand, but the GUI pops up the same message when I do it. At first I thought it was stumbling on DRMed Mobi's (when trying it on some other ebooks), but these are all non-DRMed files.

Any idea what the problem might be?
mbovenka is offline   Reply With Quote