Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
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,016
Karma: 13471689
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
Old 08-03-2008, 04:22 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: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Attach one of the problem mobi files (or send it to me by email)
kovidgoyal is offline   Reply With Quote
Advert
Old 08-03-2008, 05:15 PM   #3
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,016
Karma: 13471689
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by kovidgoyal View Post
Attach one of the problem mobi files (or send it to me by email)
This is one Calibre chokes on. Mobipocket Reader, uBook & FBReader open it without problems, although the formatting is an ungodly mess.
mbovenka is offline   Reply With Quote
Old 08-03-2008, 07:37 PM   #4
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: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Will be fixed in next release.
kovidgoyal is offline   Reply With Quote
Old 08-05-2008, 07:04 AM   #5
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,016
Karma: 13471689
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by kovidgoyal View Post
Will be fixed in next release.
Great! Eagerly awaiting it...
mbovenka is offline   Reply With Quote
Advert
Old 08-06-2008, 01:34 PM   #6
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,016
Karma: 13471689
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by kovidgoyal View Post
Will be fixed in next release.
0.4.82 no longer gives an error with that one, so that's fixed!

But it now gives the following error on the attached Mobi file (and others that I haven't yet identified):

235802126
Detailed traceback:
Traceback (most recent call last):
File "main.py", line 448, in add_books
File "main.py", line 460, in _add_books
File "calibre\ebooks\metadata\meta.pyo", line 72, in get_metadata
File "C:\Program Files\calibre\library.zip\calibre\ebooks\mobi\read er.py", line 395, in get_metadata
File "C:\Program Files\calibre\library.zip\calibre\ebooks\mobi\read er.py", line 162, in __init__
File "C:\Program Files\calibre\library.zip\calibre\ebooks\mobi\read er.py", line 95, in __init__
KeyError: 235802126
mbovenka is offline   Reply With Quote
Old 08-06-2008, 05:06 PM   #7
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: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
will be fixed in next release.
kovidgoyal is offline   Reply With Quote
Old 08-16-2008, 10:07 AM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I've removed the attachments as those book are not legally allowed to be posted here. If you need to post them someplace, please go to the Calibre site and open tickets so you can attach them.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error importing mobi files Nomadin Calibre 27 02-19-2010 04:15 AM
Error importing epub book to calibre and ipod touch BigHoss Calibre 0 01-24-2010 10:21 AM
unencrypted azw books - error importing abrinton Calibre 4 01-19-2010 02:57 PM
Error in converting files html --> Mobipocket adamsloco Calibre 0 08-29-2009 10:30 PM
Importing files onto a Kindle Dahak Amazon Kindle 7 05-19-2009 12:12 AM


All times are GMT -4. The time now is 09:08 PM.


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