View Single Post
Old 01-25-2016, 06:52 AM   #6
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,028
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
I spoke too soon.

When using "remove unused CSS rules", I now get an exception:

Code:
calibre, version 2.49.0
ERROR: Unhandled exception: <b>ValueError</b>:Invalid namespace URI u'\u201dhttp://www.w3.org/1999/xlink\u201d'

calibre 2.49  isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '7', '6.1.7601')
Python 2.7.9
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: Fantastic Fiction && Quality Check && BOL_NL && Goodreads && Find Duplicates && Kobo Utilities
Traceback (most recent call last):
  File "site-packages\calibre\gui2\tweak_book\boss.py", line 536, in polish
  File "site-packages\calibre\ebooks\oeb\polish\main.py", line 261, in tweak_polish
  File "site-packages\calibre\ebooks\oeb\polish\main.py", line 210, in polish_one
  File "site-packages\calibre\ebooks\oeb\polish\css.py", line 75, in remove_unused_css
  File "site-packages\calibre\ebooks\oeb\polish\container.py", line 529, in parsed
  File "site-packages\calibre\ebooks\oeb\polish\container.py", line 495, in parse
  File "site-packages\calibre\ebooks\oeb\polish\container.py", line 481, in parse_xhtml
  File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 671, in parse
  File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 615, in parse_html5
  File "site-packages\html5lib\html5parser.py", line 254, in parse
  File "site-packages\html5lib\html5parser.py", line 105, in _parse
  File "site-packages\html5lib\html5parser.py", line 217, in mainLoop
  File "site-packages\html5lib\html5parser.py", line 431, in processStartTag
  File "site-packages\html5lib\html5parser.py", line 1227, in startTagSvg
  File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 375, in insertElementNormal
  File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 352, in createElement
  File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 274, in makeelement_ns
  File "parser.pxi", line 971, in lxml.etree._BaseParser.makeelement (src\lxml\lxml.etree.c:95621)
  File "apihelpers.pxi", line 133, in lxml.etree._makeElement (src\lxml\lxml.etree.c:14869)
  File "apihelpers.pxi", line 120, in lxml.etree._makeElement (src\lxml\lxml.etree.c:14739)
  File "apihelpers.pxi", line 232, in lxml.etree._initNodeNamespaces (src\lxml\lxml.etree.c:15816)
  File "apihelpers.pxi", line 1600, in lxml.etree._uriValidOrRaise (src\lxml\lxml.etree.c:28996)
ValueError: Invalid namespace URI u'\u201dhttp://www.w3.org/1999/xlink\u201d'
The same goes for "beautify all files":

Code:
calibre, version 2.49.0
ERROR: Unhandled exception: <b>ValueError</b>:Invalid namespace URI u'\u201dhttp://www.w3.org/1999/xlink\u201d'

calibre 2.49  isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '7', '6.1.7601')
Python 2.7.9
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: Fantastic Fiction && Quality Check && BOL_NL && Goodreads && Find Duplicates && Kobo Utilities
Traceback (most recent call last):
  File "site-packages\calibre\gui2\tweak_book\boss.py", line 755, in pretty_print
  File "site-packages\calibre\ebooks\oeb\polish\pretty.py", line 223, in pretty_all
  File "site-packages\calibre\ebooks\oeb\polish\container.py", line 529, in parsed
  File "site-packages\calibre\ebooks\oeb\polish\container.py", line 495, in parse
  File "site-packages\calibre\ebooks\oeb\polish\container.py", line 481, in parse_xhtml
  File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 671, in parse
  File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 615, in parse_html5
  File "site-packages\html5lib\html5parser.py", line 254, in parse
  File "site-packages\html5lib\html5parser.py", line 105, in _parse
  File "site-packages\html5lib\html5parser.py", line 217, in mainLoop
  File "site-packages\html5lib\html5parser.py", line 431, in processStartTag
  File "site-packages\html5lib\html5parser.py", line 1227, in startTagSvg
  File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 375, in insertElementNormal
  File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 352, in createElement
  File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 274, in makeelement_ns
  File "parser.pxi", line 971, in lxml.etree._BaseParser.makeelement (src\lxml\lxml.etree.c:95621)
  File "apihelpers.pxi", line 133, in lxml.etree._makeElement (src\lxml\lxml.etree.c:14869)
  File "apihelpers.pxi", line 120, in lxml.etree._makeElement (src\lxml\lxml.etree.c:14739)
  File "apihelpers.pxi", line 232, in lxml.etree._initNodeNamespaces (src\lxml\lxml.etree.c:15816)
  File "apihelpers.pxi", line 1600, in lxml.etree._uriValidOrRaise (src\lxml\lxml.etree.c:28996)
ValueError: Invalid namespace URI u'\u201dhttp://www.w3.org/1999/xlink\u201d'
DrChiper is offline   Reply With Quote