06-26-2010, 12:06 PM | #1 |
Zealot
Posts: 100
Karma: 1000399
Join Date: Sep 2008
Location: Toronto, Ontario
Device: Sony PRS-500
|
Problem converting to EPUB in 0.7.5
Hi there,
I just updated my calibre version to 0.7.5 and am now having a problem converting to EPUB. This happened with both LIT, HTML and EPUB->EPUB(just tried it to see what would happen). Here is my error: Code:
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Cut and Run) Convert book 1 of 1 (Cut and Run) Resolved conversion options calibre version: 0.7.5 {'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': '/tmp/calibre_0.7.5_Hn_9qT.jpeg', 'debug_pipeline': None, '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.InputProfile object at 0x9c5764c>, '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.NookOutput object at 0x9c57e4c>, 'page_breaks_before': u'/', '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': '/tmp/calibre_0.7.5_75k3SS.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 /home/kevin/ebooks/Ridley Pearson/Cut and Run (235)/Cut and Run - Ridley Pearson.lit Parsing all content... Parsing CutandRun_body.html ... Forcing CutandRun_body.html into XHTML namespace Parsing CutandRun_copyright.html ... Forcing CutandRun_copyright.html into XHTML namespace Parsing cutandrun_style.css ... Failed to parse content in cutandrun_style.css Traceback (most recent call last): File "/usr/lib/calibre/calibre/ebooks/oeb/reader.py", line 159, in _manifest_prune_invalid item.data File "/usr/lib/calibre/calibre/ebooks/oeb/base.py", line 1063, in fget data = self._parse_css(data) File "/usr/lib/calibre/calibre/ebooks/oeb/base.py", line 1009, in _parse_css import_rules = list(data.cssRules.rulesOfType(CSSRule.IMPORT_RULE)) AttributeError: 'CSSRuleList' object has no attribute 'rulesOfType' Parsing CutandRun_toc.html ... Forcing CutandRun_toc.html into XHTML namespace Reading TOC from HTML... Choosing other.ms-coverimage-standard:img/CutAndRun-cover.jpg as the cover Merging user specified metadata... Detecting structure... Flattening CSS and remapping font sizes... Stylesheet 'cutandrun_style.css' referenced by file 'CutandRun_body.html' not in manifest Stylesheet 'cutandrun_style.css' referenced by file 'CutandRun_toc.html' not in manifest Source base font size is 12.00000pt Cleaning up manifest... Trimming unused files from manifest... Parsing stylesheet.css ... Traceback (most recent call last): File "/usr/bin/calibre-parallel", line 19, in <module> sys.exit(main()) File "/usr/lib/calibre/calibre/utils/ipc/worker.py", line 99, in main result = func(*args, **kwargs) File "/usr/lib/calibre/calibre/gui2/convert/gui_conversion.py", line 24, in gui_convert plumber.run() File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 909, in run trimmer(self.oeb, self.opts) File "/usr/lib/calibre/calibre/ebooks/oeb/transforms/trimmanifest.py", line 57, in __call__ for href in cssutils.getUrls(item.data): File "/usr/lib/calibre/calibre/ebooks/oeb/base.py", line 1063, in fget data = self._parse_css(data) File "/usr/lib/calibre/calibre/ebooks/oeb/base.py", line 1009, in _parse_css import_rules = list(data.cssRules.rulesOfType(CSSRule.IMPORT_RULE)) AttributeError: 'CSSRuleList' object has no attribute 'rulesOfType' Thanks! Kevin |
06-26-2010, 12:24 PM | #2 |
creator of calibre
Posts: 43,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Your version of cssutils is too old. You need atleast 0.9.7a3
|
Advert | |
|
06-26-2010, 03:04 PM | #3 |
Zealot
Posts: 100
Karma: 1000399
Join Date: Sep 2008
Location: Toronto, Ontario
Device: Sony PRS-500
|
Yep that was the problem, I got it working after I posted. Doh! Thanks for the great program. I like the layout of the new version and it seems snappier as well.
Kevin |
06-26-2010, 05:46 PM | #4 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jun 2010
Device: ipad
|
same issue
Where can i find the cssutils? I can no longer convert pdf to epub keep getting this error:
Convert book 1 of 1 (**) Resolved conversion options calibre version: 0.7.5 {'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\\sean\\appdata\\local\\temp\\calibre_0. 7.5_0fx2q6.jpeg', 'debug_pipeline': None, '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.InputProfile object at 0x04656E50>, '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, 'new_pdf_engine': False, 'no_chapters_in_toc': False, 'no_default_epub_cover': False, 'no_images': False, 'no_inline_navbars': False, 'no_svg_cover': True, 'output_profile': <calibre.customize.profiles.OutputProfile object at 0x04663050>, '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\\sean\\appdata\\local\\temp\\calibre_0. 7.5_em3cgt.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, 'unwrap_factor': 0.0, 'use_auto_toc': False, 'verbose': 2} InputFormatPlugin: PDF Input running on M:\Ebooks\Janet Valade\PHP and MySQL everyday apps for dummies (126)\PHP and MySQL everyday apps for dummies - Janet Valade.pdf Converting file to html... pdftohtml log: Retrieving document metadata... Generating manifest... Rendering manifest... Parsing all content... Parsing index.html ... this also causes calibre-parallel.exe to crash |
06-26-2010, 07:57 PM | #5 |
creator of calibre
Posts: 43,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
google cssutils
|
Advert | |
|
06-27-2010, 07:49 AM | #6 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jun 2010
Device: ipad
|
|
06-27-2010, 08:12 AM | #7 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
You would have been better served by asking for help in a separate thread. What OS are you running? |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with accents converting PDF to EPUB | madeira | Calibre | 0 | 07-09-2010 05:15 PM |
Problem converting pdf to epub | smartin | Calibre | 3 | 05-02-2010 06:55 AM |
Problem converting doc to epub | Laura81 | Calibre | 3 | 01-26-2010 06:03 PM |
Problem converting large PDFs to EPUB | rmolina4819 | Calibre | 0 | 12-30-2009 03:36 PM |
Problem converting PDB to ePUB | bookwurm70 | Calibre | 1 | 12-22-2009 06:13 AM |