Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-31-2010, 03:55 PM   #1
SFCurley
Junior Member
SFCurley began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2010
Device: iPhone
HTML to EPUB?

Hi,

I tried to convert an HTML book to ePub using Calibre, but got the following error messages. Any ideas? Thanks in advance:

ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Title by Author)

Convert book 1 of 1 (Title by Author)
Processing archive...
Resolved conversion options
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'breadth_first': False,
'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': None,
'debug_pipeline': None,
'disable_font_rescaling': False,
'dont_justify': False,
'dont_package': False,
'dont_split_on_page_breaks': True,
'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.InputProfile object at 0x029A61B0>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'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_levels': 5,
'max_toc_links': 50,
'no_chapters_in_toc': False,
'no_default_epub_cover': True,
'no_inline_navbars': False,
'output_profile': <calibre.customize.profiles.SonyReaderOutput object at 0x029A6390>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preprocess_html': False,
'pretty_print': True,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\docume~1\\userid~1.hom\\locals~1\\temp\\calib re_0.6.36_x0r8wy.opf',
'remove_first_image': False,
'remove_footer': True,
'remove_header': True,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'series': None,
'series_index': None,
'tags': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'unwrap_factor': 0.0,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: HTML Input running
on c:\docume~1\user~1.hom\locals~1\temp\calibre_0.6.3 6_tqa7mr_plumber\content.opf
Parsing all content...
Manifest item 'toc.ncx' not found
Parsing book.html ...
Parsing style.css ...
Generating default TOC from spine...
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 12 entries.
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Parsing stylesheet.css ...
Creating EPUB Output...
C:\Program Files\Calibre2\Lib\site-packages\calibre\ebooks\oeb\transforms\rescale.py: 35: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
Python function terminated unexpectedly
argument 1 of QImage.loadFromData() has an invalid type (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 852, in run
File "site-packages\calibre\ebooks\epub\output.py", line 162, in convert
File "site-packages\calibre\ebooks\oeb\transforms\rescale.py" , line 19, in __call__
File "site-packages\calibre\ebooks\oeb\transforms\rescale.py" , line 38, in rescale
TypeError: argument 1 of QImage.loadFromData() has an invalid type
SFCurley is offline   Reply With Quote
Old 01-31-2010, 03:58 PM   #2
rmm200
Groupie
rmm200 has a complete set of Star Wars action figures.rmm200 has a complete set of Star Wars action figures.rmm200 has a complete set of Star Wars action figures.rmm200 has a complete set of Star Wars action figures.rmm200 has a complete set of Star Wars action figures.
 
Posts: 195
Karma: 414
Join Date: Jan 2010
Location: Bend, OR
Device: Sony PRS-600
I would sure search your source for QImage.loadFromData().

Try commenting it out and see what happens.

Robert
rmm200 is offline   Reply With Quote
Advert
Old 01-31-2010, 04:05 PM   #3
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,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Fixed in next release
kovidgoyal is online now   Reply With Quote
Old 01-31-2010, 06:14 PM   #4
SFCurley
Junior Member
SFCurley began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2010
Device: iPhone
Hi. I changed the graphics that the original HTML file was referenceing from SVG to JPG and re-ran it, and that seemed to fix the problem.

Thank you for the quick responses.
SFCurley is offline   Reply With Quote
Old 02-01-2010, 05:47 AM   #5
neilmarr
neilmarr
neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.
 
neilmarr's Avatar
 
Posts: 7,216
Karma: 6000059
Join Date: Apr 2009
Location: Monaco-Menton, France
Device: sony
A friend is using Calibre to convert HTML to ePub. He's converting my source files from Word to HTML, doing some layout adjustment in Dreamweaver, then from HTML to ePub, using Calibre. The resulting ePub versions seem to keep all the formatting in place, but for some reason, his Calibre viewer keeps crashing after turning a few pages. I've checked his ePub files on a Sony 505 with no such hitch. Any thoughts? Cheers. Neil
neilmarr is offline   Reply With Quote
Advert
Old 02-01-2010, 10:41 AM   #6
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,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Ask him to open a ticket and attach the epub file, and I'll take a look. Also I fixed a number of viewer crashing on windows bugs recently, so ask him to upgrade to the latest version.
kovidgoyal is online now   Reply With Quote
Old 02-02-2010, 10:16 AM   #7
neilmarr
neilmarr
neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.neilmarr ought to be getting tired of karma fortunes by now.
 
neilmarr's Avatar
 
Posts: 7,216
Karma: 6000059
Join Date: Apr 2009
Location: Monaco-Menton, France
Device: sony
Thanks, Kovid. I've dropped a reminder of this thread (kind of you to chime in) and my pal, Tony Szmukm, will be in touch as soon as he wakes up (nine hour time difference). Thanks again for the personal touch with questions. Rare and mo0st welcome these days. Best. Neil
neilmarr is offline   Reply With Quote
Old 02-02-2010, 12:20 PM   #8
philophobos
Junior Member
philophobos began at the beginning.
 
philophobos's Avatar
 
Posts: 5
Karma: 10
Join Date: Dec 2009
Device: Kobo, iPad, waiting for other pad/slate devices
Thanks Neil, Kovid. I t seems that the problem was the Calibre version I've been using. I just installed the latest version and everything is fine now.
philophobos is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML to ePub? martienne ePub 1 08-08-2010 07:05 PM
HTML Book + non HTML TOC to epub aarcane Calibre 4 03-02-2010 02:58 AM
epub to html banjomike Calibre 2 01-31-2010 11:27 AM
ePub to HTML, PDF MerLock Workshop 5 07-08-2009 10:18 AM
Why ePub rather than HTML? Robotech_Master Workshop 20 03-30-2009 03:53 PM


All times are GMT -4. The time now is 10:43 PM.


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