View Single Post
Old 03-24-2015, 10:36 PM   #8
Section8
Addict
Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.
 
Section8's Avatar
 
Posts: 265
Karma: 2121470
Join Date: Oct 2011
Location: Arlington, TX
Device: Kindle PW4, Moon+ Reader on a cheap Android tablet
I'm running 2.22. It's easy to reproduce - open a random epub in the editor, stick something like "a:vixited {}" in the css, run the "remove unused css" tool, and it fails:
Quote:
calibre, version 2.22.0
ERROR: Unhandled exception: <b>ExpressionError</b>:The pseudo-class :vixited is not supported

calibre 2.22 isfrozen: True is64bit: True
Linux-3.18.7-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.2 Linux ('64bit', 'ELF')
('Linux', '3.18.7-gentoo', '#1 SMP PREEMPT Fri Feb 27 13:44:17 CST 2015')
Python 2.7.9
Linux: ('Gentoo Base System', '2.2', '')
Successfully initialized third party plugins: DeDRM && EpubSplit && Open With && Quality Check && FictionDB && Find Duplicates && Overdrive Link && Count Pages && Webscription && KindleUnpack - The Plugin && XRay Generator && Fantastic Fiction && Goodreads && Barnes & Noble && Modify ePub && Extract ISBN
Traceback (most recent call last):
File "site-packages/calibre/gui2/tweak_book/boss.py", line 513, in polish
File "site-packages/calibre/ebooks/oeb/polish/main.py", line 247, in tweak_polish
File "site-packages/calibre/ebooks/oeb/polish/main.py", line 202, in polish_one
File "site-packages/calibre/ebooks/oeb/polish/css.py", line 95, in remove_unused_css
File "site-packages/calibre/ebooks/oeb/polish/css.py", line 23, in filter_used_rules
File "site-packages/css_selectors/select.py", line 184, in has_matches
File "site-packages/css_selectors/select.py", line 177, in __call__
File "site-packages/css_selectors/select.py", line 195, in iterparsedselector
File "site-packages/css_selectors/select.py", line 553, in select_pseudo
ExpressionError: The pseudo-class :vixited is not supported
Fix the typo to "visited" and it's fine.
Section8 is offline   Reply With Quote