Package: calibre
Version: 0.8.2+dfsg-1
Followup-For: Bug #630989

Auto-converting a book from HTML to Epub to copy it to a Sony Reader hit the 
same problem.  It looks like it didn't find a lot of CSS files, but if that's 
the case then surely it should ignore them.  It's possible to render the HTML 
without the corresponding CSS files (indeed, my web browser does so).

Here are the error messages:

calibre, version 0.8.2
ERROR: Conversion Error: <b>Failed</b>: Convert book 2 of 4 (Overtime)

Convert book 2 of 4 (Overtime)
Processing archive...
Resolved conversion options
calibre version: 0.8.2
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 'breadth_first': False,
 'change_justification': u'original',
 'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 
'chapter|book|section|part|prologue|epilogue\\s+', 'i')) or @class = 
'chapter']",
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': None,
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'dont_package': False,
 'dont_split_on_page_breaks': False,
 'enable_heuristics': False,
 'epub_flatten': False,
 'extra_css': None,
 'extract_to': None,
 'fix_indents': True,
 'flow_size': 260,
 'font_size_mapping': None,
 'format_scene_breaks': True,
 'html_unwrap_factor': 0.4,
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x31df8d0>,
 'insert_blank_line': False,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': True,
 '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,
 'markup_chapter_headings': True,
 'max_levels': 5,
 'max_toc_links': 50,
 'minimum_line_height': 120.0,
 'no_chapters_in_toc': False,
 'no_default_epub_cover': False,
 'no_inline_navbars': False,
 'no_svg_cover': False,
 'output_profile': <calibre.customize.profiles.SonyReader300Output object at 
0x31e31d0>,
 'page_breaks_before': u"//*[name()='h1' or name()='h2']",
 'prefer_metadata_cover': False,
 'preserve_cover_aspect_ratio': False,
 'pretty_print': True,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': 
u'/tmp/calibre_0.8.2_tmp_8BHyCn/calibre_0.8.2_Kj6MyJ.opf',
 'remove_fake_margins': True,
 'remove_first_image': False,
 'remove_paragraph_spacing': False,
 'remove_paragraph_spacing_indent_size': 1.5,
 'renumber_headings': True,
 'replace_scene_breaks': u'',
 'series': None,
 'series_index': None,
 'smarten_punctuation': False,
 'sr1_replace': None,
 'sr1_search': None,
 'sr2_replace': None,
 'sr2_search': None,
 'sr3_replace': None,
 'sr3_search': None,
 'tags': None,
 'timestamp': None,
 'title': None,
 'title_sort': None,
 'toc_filter': None,
 'toc_threshold': 6,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: HTML Input running
on 
/tmp/calibre_0.8.2_tmp_8BHyCn/calibre_0.8.2_Hv5jsR_plumber_archive/content.opf
Parsing all content...
Manifest item 'toc.ncx' not found
Parsing Overtime%20by%20Charles%20Stross.htm ...
Referenced file '/templates/tor/css/editor.css' not found
Referenced file '/templates/tor/css/component.css' not found
Referenced file '/plugins/system/mtupgrade/mootools.js' not found
Referenced file '/media/system/css/modal.css' not found
Referenced file '/galleries/carl-wiens' not found
Referenced file 
'/images/stories/stories/Stross/Overtime/inline_end_Stross_Wiens.png' not found
Referenced file '/templates/tor/favicon.ico' not found
Referenced file '/media/system/js/caption.js' not found
Referenced file '/media/tor/js/gigya.js' not found
Referenced file '/templates/tor/js/comments.js' not found
Referenced file '/media/system/js/modal.js' not found
Referenced file '/bios/authors/charles-stross' not found
Generating default TOC from spine...
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 2 entries.
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 181, in main
    result = func(*args, **kwargs)
  File "/usr/lib/calibre/calibre/gui2/convert/gui_conversion.py", line 31, in 
gui_convert_override
    override_input_metadata=True)
  File "/usr/lib/calibre/calibre/gui2/convert/gui_conversion.py", line 25, in 
gui_convert
    plumber.run()
  File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 962, in run
    from calibre.ebooks.oeb.transforms.flatcss import CSSFlattener
  File "/usr/lib/calibre/calibre/ebooks/oeb/transforms/flatcss.py", line 17, in 
<module>
    from calibre.ebooks.oeb.stylizer import Stylizer
  File "/usr/lib/calibre/calibre/ebooks/oeb/stylizer.py", line 15, in <module>
    from cssutils.css import (CSSStyleRule, CSSPageRule, CSSStyleDeclaration,
ImportError: cannot import name CSSValueList


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages calibre depends on:
ii  calibre-bin            0.8.2+dfsg-1      e-book converter and library manag
ii  imagemagick            8:6.6.9.7-5       image manipulation programs
ii  poppler-utils          0.12.4-1.2        PDF utilitites (based on libpopple
ii  python-beautifulsoup   3.2.0-2           error-tolerant HTML parser for Pyt
ii  python-cherrypy3       3.1.2-1           Python web development framework -
ii  python-cssutils        0.9.8~a1-1        CSS Cascading Style Sheets parser 
ii  python-dateutil        1.4.1-3           powerful extensions to the standar
ii  python-dbus            0.84.0-1          simple interprocess messaging syst
ii  python-django-tagging  0.3.1-1           A generic tagging application for 
ii  python-encutils        0.9.8~a1-1        Encoding detection collection for 
ii  python-imaging         1.1.7-3           Python Imaging Library
ii  python-lxml            2.3-0.1+b2        pythonic binding for the libxml2 a
ii  python-mechanize       0.1.11-1.1        stateful programmatic web browsing
ii  python-pkg-resources   0.6.16-1          Package Discovery and Resource Acc
ii  python-pyparsing       1.5.2-2           Python parsing module
ii  python-pypdf           1.13-1            PDF toolkit implemented solely in 
ii  python-qt4             4.8.3-2+b1        Python bindings for Qt4
ii  python-routes          1.12.3-1          Routing Recognition and Generation
ii  python2.7              2.7.2-2           An interactive high-level object-o
ii  ttf-liberation         1.06.0.20100721-1 Fonts with the same metrics as Tim
ii  xdg-utils              1.1.0~rc1-2       desktop integration utilities from

Versions of packages calibre recommends:
ii  python-dnspython              1.8.0-1    DNS toolkit for Python

calibre suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to