Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-08-2010, 06:12 PM   #1
alaouet
Member
alaouet doesn't litteralaouet doesn't litter
 
alaouet's Avatar
 
Posts: 20
Karma: 124
Join Date: Jun 2008
Location: Tenerife
Device: PRS-505
MOBI to LRF: Conversion troubles with Calibre

Hello,

I'd like to convert with Calibre 5 books from MOBI to LRF

Two of them have been converted easily but the three other ones always produce the same error.

Then I've tried later to convert these books to EPUB but the result has been exactly the same.

Here are the details:

Quote:
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (C'est mort et ça ne sait pas !)

Convert book 1 of 1 (C'est mort et ça ne sait pas !)
Resolved conversion options
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 1.0,
'book_producer': None,
'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:\\docume~1\\usuario\\config~1\\temp\\calibre_0. 6.36_4ep8kg.jpeg',
'debug_pipeline': None,
'disable_font_rescaling': False,
'dont_justify': True,
'enable_autorotation': False,
'extra_css': None,
'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': False,
'header_format': u'%t by %a',
'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>) ' ,
'header_separation': 0.0,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x028C7F70>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 1.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'max_toc_links': 50,
'minimum_indent': 0.0,
'mono_family': u'None',
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'output_profile': <calibre.customize.profiles.OutputProfile object at 0x028CF150>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preprocess_html': False,
'pretty_print': False,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\docume~1\\usuario\\config~1\\temp\\calibre_0. 6.36_ufokne.opf',
'remove_first_image': False,
'remove_footer': False,
'remove_header': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'render_tables_as_images': False,
'sans_family': u'None',
'series': None,
'series_index': None,
'serif_family': u'None',
'tags': None,
'text_size_multiplier_for_rendered_tables': 1.0,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'use_auto_toc': False,
'verbose': 2,
'wordspace': 2.5}
InputFormatPlugin: MOBI Input running
on C:\Documents and Settings\Usuario\Escritorio\Dard Frederic\C'est mort et ca ne sait pas ! (3)\C'est mort et ca ne sait pas ! - Dard Frederic.mobi
Extracting text...
Adding anchors...
Extracting images...
Cleaning up HTML...
Parsing HTML...
Malformed markup, parsing using BeautifulSoup
MOBI markup appears to contain random bytes. Stripping.
Extracting text...
Adding anchors...
Extracting images...
Cleaning up HTML...
Parsing HTML...
Malformed markup, parsing using BeautifulSoup
MOBI markup appears to contain random bytes. Stripping.
Python function terminated unexpectedly
(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 745, in run
File "site-packages\calibre\customize\conversion.py", line 211, in __call__
File "site-packages\calibre\ebooks\mobi\input.py", line 27, in convert
File "site-packages\calibre\ebooks\mobi\reader.py", line 331, in extract_content
File "site-packages\lxml-2.2.2-py2.6-win32.egg\lxml\html\soupparser.py", line 23, in fromstring
File "site-packages\lxml-2.2.2-py2.6-win32.egg\lxml\html\soupparser.py", line 66, in _parse
File "site-packages\beautifulsoup-3.1.0.1-py2.6.egg\BeautifulSoup.py", line 1499, in __init__
File "site-packages\beautifulsoup-3.1.0.1-py2.6.egg\BeautifulSoup.py", line 1230, in __init__
File "site-packages\beautifulsoup-3.1.0.1-py2.6.egg\BeautifulSoup.py", line 1263, in _feed
File "HTMLParser.py", line 108, in feed
File "HTMLParser.py", line 148, in goahead
File "HTMLParser.py", line 226, in parse_starttag
File "HTMLParser.py", line 301, in check_for_whole_start_tag
File "HTMLParser.py", line 115, in error
HTMLParser.HTMLParseError: malformed start tag, at line 3, column 1
I hope some of you could understand what is wrong and maybe help me to resolve this problem.

thank you very much
alaouet is offline   Reply With Quote
Old 02-08-2010, 07:29 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: 44,397
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Those MOBI files have malformed markup. Probbaly, they're damaged somehow.
kovidgoyal is offline   Reply With Quote
Old 02-08-2010, 09:36 PM   #3
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,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by alaouet View Post
Hello,

I'd like to convert with Calibre 5 books from MOBI to LRF

Two of them have been converted easily but the three other ones always produce the same error.

Then I've tried later to convert these books to EPUB but the result has been exactly the same.
I agree with Kovid. The MOBI files have malformed markup and are damaged. Many Mobi files have been decrypted using mobiDeDRM scripts. These scripts before version 7 left parts of the book still encrypted. This may cause the error your seeing.
DoctorOhh is offline   Reply With Quote
Old 02-09-2010, 01:36 AM   #4
alaouet
Member
alaouet doesn't litteralaouet doesn't litter
 
alaouet's Avatar
 
Posts: 20
Karma: 124
Join Date: Jun 2008
Location: Tenerife
Device: PRS-505
Ok, thank you very much Kovid and dwanthny for your answers.

The curious thing is that last time I bought prc ebooks, I used mobiDeDRM version 5 and did'nt have any problems to decrypt its and convert its to LRF

This time I used mobiDeDRM version 9 to decrypt these files.

Then what I'm going to do is trying to use again the old script to see if it works better.

Thank you again
alaouet is offline   Reply With Quote
Old 02-09-2010, 04:24 AM   #5
alaouet
Member
alaouet doesn't litteralaouet doesn't litter
 
alaouet's Avatar
 
Posts: 20
Karma: 124
Join Date: Jun 2008
Location: Tenerife
Device: PRS-505
well...

I've tried with several scripts and always got the same problem

It's a pity to buy some books and not be able to read its
alaouet is offline   Reply With Quote
Old 02-09-2010, 04:36 AM   #6
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,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by alaouet View Post
well...

I've tried with several scripts and always got the same problem

It's a pity to buy some books and not be able to read its
Do the decrypted mobi files open up fine?

You can run the conversion with debug on, pointing to a folder, then look at the folder after the process fails and review the html to see what might be odd about it.

Try converting them to epub maybe it's more lenient.

Last edited by DoctorOhh; 02-09-2010 at 04:39 AM.
DoctorOhh is offline   Reply With Quote
Old 02-09-2010, 06:59 AM   #7
alaouet
Member
alaouet doesn't litteralaouet doesn't litter
 
alaouet's Avatar
 
Posts: 20
Karma: 124
Join Date: Jun 2008
Location: Tenerife
Device: PRS-505
Quote:
Do the decrypted mobi files open up fine?
Yes they do

Quote:
You can run the conversion with debug on, pointing to a folder, then look at the folder after the process fails and review the html to see what might be odd about it.
Sorry, I think I don't understand the way it works

Quote:
Try converting them to epub maybe it's more lenient
I already tried this but the result has been the same

Anyhow, thank you one more time for your help
alaouet is offline   Reply With Quote
Old 02-09-2010, 09:13 AM   #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: 44,397
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Opena bug report and attach one of these decrypted files. I'll take a look when I have some time
kovidgoyal is offline   Reply With Quote
Old 02-09-2010, 09:54 AM   #9
alaouet
Member
alaouet doesn't litteralaouet doesn't litter
 
alaouet's Avatar
 
Posts: 20
Karma: 124
Join Date: Jun 2008
Location: Tenerife
Device: PRS-505
Ok, I 've sent you the bug-report.

Thank you very much for your help!
alaouet is offline   Reply With Quote
Old 02-09-2010, 11:34 PM   #10
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,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by alaouet View Post
Ok, I 've sent you the bug-report.

Thank you very much for your help!
I looked at one of your files and had the same problem you had. I grabbed the attached script which will convert your mobi file to html. Once it is in html you can add it to Calibre and convert it to the format of your choice. While in html you can clean it up too.

Good Luck
Attached Files
File Type: zip mobiunpack.zip (1.9 KB, 385 views)
DoctorOhh is offline   Reply With Quote
Old 02-10-2010, 04:27 AM   #11
alaouet
Member
alaouet doesn't litteralaouet doesn't litter
 
alaouet's Avatar
 
Posts: 20
Karma: 124
Join Date: Jun 2008
Location: Tenerife
Device: PRS-505
Quote:
Originally Posted by dwanthny View Post
I looked at one of your files and had the same problem you had. I grabbed the attached script which will convert your mobi file to html. Once it is in html you can add it to Calibre and convert it to the format of your choice. While in html you can clean it up too.

Good Luck
I 've followed your instructions and...it worked perfectly!!

Your script converted easily these 3 books into html and after Calibre had no problems to convert these html files to LRF.

I just want to thank you one more time for your time and your "efficiency" (I'm not sure this word is the right one but I'm sure you'll understand what I mean)

Merci beaucoup!
alaouet is offline   Reply With Quote
Old 02-10-2010, 06:27 AM   #12
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,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by alaouet View Post
I 've followed your instructions and...it worked perfectly!!

Your script converted easily these 3 books into html and after Calibre had no problems to convert these html files to LRF.

I just want to thank you one more time for your time and your "efficiency" (I'm not sure this word is the right one but I'm sure you'll understand what I mean)

Merci beaucoup!
Your Welcome.

I didn't write the script, I just found it out there on the web.
DoctorOhh is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MOBI vers LRF: Problème de conversion avec Calibre alaouet Assistance 6 02-18-2010 05:11 PM
Conversion Error lrf -> mobi/epub (Calibre 0.6.33) Joerg_Mosthaf Calibre 2 01-13-2010 07:40 AM
Calibre V0.6.13 adds support for LRF conversion Alexander Turcic Calibre 3 09-20-2009 12:27 PM
TOC no longer works after Mobi -> LRF conversion... rroberrto Calibre 3 07-07-2009 01:22 AM
Conversion from Mobi to LRF error jessie102 Calibre 2 08-16-2008 12:00 PM


All times are GMT -4. The time now is 10:51 AM.


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