08-28-2010, 01:49 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Aug 2010
Device: Kindle 2
|
Problems converting .chm to .mobi (or .epub)
I'm trying to convert a book using the latest version of Calibre and it errors out every time. I've tried converting from .chm to .mobi and also .epub and I get the following output:
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Introduction to Java programming: comprehensive version, 6th ed) Convert book 1 of 1 (Introduction to Java programming: comprehensive version, 6th ed) Resolved conversion options calibre version: 0.7.9 { * Lots of lines here, removed because it's very long. Full output attached. * 16.5.%20Enabling%20Applets%20to%20Run%20as%20Appli cations.htm into XHTML namespace Added c:\users\chris\appdata\local\temp\calibre_0.7.9_hd oyrx_chm2oeb\16.5. enabling applets to run as applications_files\stylesheet_0.css Parsing stylesheet_0230.css ... Property: Invalid value for "CSS Color Module Level 3/CSS Level 2.1" property: darkcyan [357:2: COLOR] 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 815, in run File "site-packages\calibre\customize\conversion.py", line 211, in __call__ File "site-packages\calibre\ebooks\chm\input.py", line 61, in convert File "site-packages\calibre\ebooks\chm\input.py", line 71, in _create_oebbook_html File "site-packages\calibre\ebooks\html\input.py", line 377, in create_oebbook File "site-packages\calibre\ebooks\oeb\base.py", line 183, in rewrite_links File "site-packages\calibre\ebooks\html\input.py", line 472, in resource_adder File "site-packages\calibre\ebooks\oeb\base.py", line 1064, in fget File "site-packages\calibre\ebooks\oeb\base.py", line 1008, in _parse_css File "site-packages\cssutils-0.9.7a4-py2.6.egg\cssutils\parse.py", line 101, in parseString File "site-packages\cssutils-0.9.7a4-py2.6.egg\cssutils\css\cssstylesheet.py", line 338, in _setCssTextWithEncodingOverride File "site-packages\cssutils-0.9.7a4-py2.6.egg\cssutils\css\cssstylesheet.py", line 292, in _setCssText File "site-packages\cssutils-0.9.7a4-py2.6.egg\cssutils\util.py", line 403, in _parse File "site-packages\cssutils-0.9.7a4-py2.6.egg\cssutils\tokenize2.py", line 131, in tokenize MemoryError Any help in figuring this out would be greatly appreciated. |
08-28-2010, 02:05 PM | #2 |
Wizard
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Just to point out that it quite an old version of Calibe (the current one is 0.7.16). Whether the latest version would be any good I have no idea.
|
Advert | |
|
08-28-2010, 02:15 PM | #3 |
creator of calibre
Posts: 44,409
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The CSS parser is running out of memory.
get more RAM or unpack the chm to html and delete the css from it by hand and then convert the html using calibre. |
08-28-2010, 03:14 PM | #4 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Aug 2010
Device: Kindle 2
|
Quote:
Thanks for the input. I'll see if I can figure out how to unpack. |
|
10-04-2010, 08:47 PM | #5 |
Member
Posts: 15
Karma: 10
Join Date: Aug 2010
Device: Kindle 3
|
Can you explain more about how to hand-process the htm files?
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Converting from CHM to MOBI | guttaperk | Calibre | 6 | 02-08-2012 03:49 PM |
Converting from Epub to Mobi | kevinofengland | Calibre | 5 | 10-12-2010 07:23 PM |
Problems with converting pdf to mobi | Holger | Calibre | 1 | 08-27-2010 11:41 PM |
Converting EPub to Mobi? | CarolB | Calibre | 3 | 01-14-2010 11:09 AM |
Page cutoff by converting chm to epub on sony 505 | Hein | Calibre | 5 | 09-18-2009 12:20 PM |