Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-27-2010, 10:33 AM   #1
Christina
Junior Member
Christina began at the beginning.
 
Christina's Avatar
 
Posts: 8
Karma: 34
Join Date: Dec 2009
Location: South of England
Device: Sony PRS-600
Converting .lit issues with version 7.10

I tried this on my Mum's computer as well, with the same error, so I thought I'd ask you guys if you can help.

The .lit ebook I'm converting is not DRM protected and opens fine in Microsoft Reader. But once inside Calibre, it refuses to open. It also refused to convert to epub. I've had a similar error with another .lit ebook and I've not had these errors before. I tried a random sample of other .lit books in my library and they open just fine. But I can open these books in Microsoft Reader without any trouble so I know the books 'work'.

I'm using Windows Vista, my Mum uses Windows 7. Same problem.

Thanks for your time

Christina

When trying to open these books I get this error:
Quote:
ERROR: Could not open ebook: Spine is empty

Traceback (most recent call last):
File "site-packages\calibre\gui2\viewer\main.py", line 61, in run
File "threading.py", line 477, in run
File "site-packages\calibre\ebooks\oeb\iterator.py", line 192, in __enter__
File "site-packages\calibre\customize\conversion.py", line 211, in __call__
File "site-packages\calibre\ebooks\lit\input.py", line 22, in convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 951, in create_oebbook
File "site-packages\calibre\ebooks\oeb\reader.py", line 72, in __call__
File "site-packages\calibre\ebooks\oeb\reader.py", line 594, in _all_from_opf
File "site-packages\calibre\ebooks\oeb\reader.py", line 289, in _spine_from_opf
OEBError: Spine is empty
When trying to convert:
Quote:
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (April Lady)

Convert book 1 of 1 (April Lady)
Resolved conversion options
calibre version: 0.7.10
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part\\s+', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': 'c:\\users\\genie\\appdata\\local\\temp\\calibre_0 .7.10_g3djrt.jpeg',
'debug_pipeline': u'C:/Users/Genie',
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'extra_css': None,
'extract_to': None,
'flow_size': 260,
'font_size_mapping': None,
'footer_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'header_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' ,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.SonyReaderInput object at 0x04FEA0F0>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'max_toc_links': 50,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.SonyReaderOutput object at 0x04FEA350>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preprocess_html': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\users\\genie\\appdata\\local\\temp\\calibre_0 .7.10_ndldcp.opf',
'remove_first_image': False,
'remove_footer': False,
'remove_header': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'series': None,
'series_index': None,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: LIT Input running
on C:\Users\Genie\Calibre Library\Georgette Heyer\April Lady (330)\April Lady - Georgette Heyer.lit
Parsing all content...
LZX decompression error; skipping chunk
LZX decompression error; skipping chunk
LZX decompression error; skipping chunk
Failed to parse content in Georgette%20Heyer%20-%20April%20Lady.htm
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\reader.py", line 159, in _manifest_prune_invalid
File "site-packages\calibre\ebooks\oeb\base.py", line 1056, in fget
File "site-packages\calibre\ebooks\lit\reader.py", line 867, in read
File "site-packages\calibre\ebooks\lit\reader.py", line 133, in __init__
File "site-packages\calibre\ebooks\lit\reader.py", line 238, in binary_to_text
File "site-packages\calibre\ebooks\lit\reader.py", line 238, in binary_to_text
File "site-packages\calibre\ebooks\lit\reader.py", line 238, in binary_to_text
File "site-packages\calibre\ebooks\lit\reader.py", line 282, in binary_to_text
LitError: Invalid character count 93

Spine item 'Georgette_Heyer_-_April_Lady' not found
Python function terminated unexpectedly
Spine is empty (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 103, in main
File "site.py", line 85, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 99, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 24, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 815, in run
File "site-packages\calibre\customize\conversion.py", line 211, in __call__
File "site-packages\calibre\ebooks\lit\input.py", line 22, in convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 951, in create_oebbook
File "site-packages\calibre\ebooks\oeb\reader.py", line 72, in __call__
File "site-packages\calibre\ebooks\oeb\reader.py", line 594, in _all_from_opf
File "site-packages\calibre\ebooks\oeb\reader.py", line 289, in _spine_from_opf
calibre.ebooks.oeb.base.OEBError: Spine is empty
Christina is offline   Reply With Quote
Old 07-27-2010, 10:51 AM   #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,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The fact that they open in Microsoft Reader doesn't mean that calibre will support them. I'm sure Microsoft reader is a lot more error tolerant than calibre.
kovidgoyal is online now   Reply With Quote
Advert
Old 07-27-2010, 11:01 AM   #3
Christina
Junior Member
Christina began at the beginning.
 
Christina's Avatar
 
Posts: 8
Karma: 34
Join Date: Dec 2009
Location: South of England
Device: Sony PRS-600
Calibre supports .lit format books? Or is there an error in these particular books that it doesn't like?
Christina is offline   Reply With Quote
Old 07-27-2010, 11:02 AM   #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,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's a problem with those particular files.
kovidgoyal is online now   Reply With Quote
Old 07-27-2010, 11:04 AM   #5
Christina
Junior Member
Christina began at the beginning.
 
Christina's Avatar
 
Posts: 8
Karma: 34
Join Date: Dec 2009
Location: South of England
Device: Sony PRS-600
Okay, thank you.
Christina is offline   Reply With Quote
Advert
Old 07-27-2010, 02:55 PM   #6
dmapr
Evangelist
dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.
 
Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
Personally I find that it is easier to first convert LIT to HTML, clean it up, then convert with Calibre. There's usually a lot of unnecessary HTML, chapters are often nor using proper HTML tags, etc.
dmapr is offline   Reply With Quote
Old 07-27-2010, 03:55 PM   #7
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
The free utility ConvertLit will convert your LIT to HTML so you can start troubleshooting. Here's a link
jackie_w is offline   Reply With Quote
Old 07-27-2010, 03:55 PM   #8
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,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's highly unlikely convertlit will succeed on a file calibre fails on, but no harm in trying
kovidgoyal is online now   Reply With Quote
Old 07-27-2010, 03:58 PM   #9
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: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I have an ePub that Calibre does not convert properly to LIT. One of the pages is just a graphic image and Calibre pushes the graphic up the page so in MS Reader, all I see if the bottom of the image at the top of the page? Is this a known bug?
JSWolf is online now   Reply With Quote
Old 07-27-2010, 04:51 PM   #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: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
LIT output is no longer actively maintained, since llasram who wrote that plugin isn't around anymore.
kovidgoyal is online now   Reply With Quote
Old 07-27-2010, 05:35 PM   #11
dmapr
Evangelist
dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.
 
Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
Quote:
Originally Posted by kovidgoyal View Post
It's highly unlikely convertlit will succeed on a file calibre fails on, but no harm in trying
It will likely succeed as far as getting all that garbage written out to an editable HTML file. The cleanup required will be very extensive indeed but it'll give the Calibre a much better source file to work with
dmapr is offline   Reply With Quote
Old 07-27-2010, 10:38 PM   #12
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: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
LIT output is no longer actively maintained, since llasram who wrote that plugin isn't around anymore.
So then nobody is able to have a look at fixing this bug?
JSWolf is online now   Reply With Quote
Old 07-27-2010, 11:24 PM   #13
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by dmapr View Post
It will likely succeed as far as getting all that garbage written out to an editable HTML file. The cleanup required will be very extensive indeed but it'll give the Calibre a much better source file to work with
It would be interesting to see if it does succeed because calibre failed the first step which is to convert it to html. That is what calibre was trying to do when it ran into decompression errors.

Quote:
InputFormatPlugin: LIT Input running
on C:\Users\Genie\Calibre Library\Georgette Heyer\April Lady (330)\April Lady - Georgette Heyer.lit
Parsing all content...
LZX decompression error; skipping chunk
LZX decompression error; skipping chunk
LZX decompression error; skipping chunk
Failed to parse content in Georgette%20Heyer%20-%20April%20Lady.htm
Hopefully Christina will try it and let us know if she is successful.
DoctorOhh is offline   Reply With Quote
Old 07-27-2010, 11:48 PM   #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: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by JSWolf View Post
So then nobody is able to have a look at fixing this bug?
Yup, I'm afraid so. LIT output just isn't much of a priority. Still go ahead and open the ticket, you may get lucky.
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues with mobile version of MR mores Feedback 9 02-11-2010 06:57 AM
Cover art issues converting from LIT format itimpi Calibre 1 12-29-2008 02:37 PM
Issues with version 101 RoninTech Calibre 3 11-03-2008 06:53 PM
libprs500 Issues Converting .LIT to .LRF - .LRF crashes everything vasbinde Calibre 6 02-14-2008 12:16 PM
Converting LIT to LRF Woes (or: Trouble with Images in LIT Files) JEMelby Sony Reader 0 07-27-2007 09:18 PM


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


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