abrt 1.0.1 detected a crash. How to reproduce ----- 1.Open calibre. 2.Request the program to fetch elpais.com newspaper. 3.After a while trying to download elpais.com, calibre crashes. Comment: A download from cnn.com does work. backtrace ----- Summary: TB9dc80874 stylizer.py:287:_normalize_font:AttributeError: 'module' object has no attribute 'validate' Traceback (most recent call last): File "/usr/bin/calibre-parallel", line 18, in <module> sys.exit(main()) File "/usr/lib64/calibre/calibre/utils/ipc/worker.py", line 89, in main result = func(*args, **kwargs) File "/usr/lib64/calibre/calibre/gui2/convert/gui_conversion.py", line 21, in gui_convert plumber.run() File "/usr/lib64/calibre/calibre/ebooks/conversion/plumber.py", line 811, in run flattener(self.oeb, self.opts) File "/usr/lib64/calibre/calibre/ebooks/oeb/transforms/flatcss.py", line 122, in __call__ self.stylize_spine() File "/usr/lib64/calibre/calibre/ebooks/oeb/transforms/flatcss.py", line 146, in stylize_spine extra_css=css) File "/usr/lib64/calibre/calibre/ebooks/oeb/stylizer.py", line 165, in __init__ rules.extend(self.flatten_rule(rule, href, index)) File "/usr/lib64/calibre/calibre/ebooks/oeb/stylizer.py", line 219, in flatten_rule style = self.flatten_style(rule.style) File "/usr/lib64/calibre/calibre/ebooks/oeb/stylizer.py", line 239, in flatten_style style.update(self._normalize_font(prop.cssValue)) File "/usr/lib64/calibre/calibre/ebooks/oeb/stylizer.py", line 287, in _normalize_font if cssprofiles.validate(key, value): AttributeError: 'module' object has no attribute 'validate' Local variables in innermost frame: style: {} self: <calibre.ebooks.oeb.stylizer.Stylizer object at 0x540fd50> cssvalue: <cssutils.css.CSSValueList object cssValueType='CSS_VALUE_LIST' cssText=u'sans-serif large' propname=u'font' valid=False at 0x5472b50> value: sans-serif key: font-style v: <cssutils.css.CSSPrimitiveValue object primitiveType=CSS_IDENT cssText=u'large' _propertyName=None valid=False at 0x5472c50> primitives: [u'large'] composition: ('font-style', 'font-variant', 'font-weight', 'font-size', 'line-height', 'font-family') cmdline: python /usr/bin/calibre-parallel component: calibre executable: /usr/bin/calibre-parallel kernel: 2.6.31.6-166.fc12.x86_64 package: calibre-0.6.26-1.fc12 uuid: 9dc80874
Created attachment 379662 [details] File: backtrace
Hi! Thanks for the bug report. This seems to be related to the old python-cssutils package in fedora. Calibre seems to require some things from python-cssutils 0.9.6. I'll see if I can get the fedora maintainer to push a new package in fedora.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Greetings. I have created a test build of the latest calibre version for Fedora 12. Can you please update from: http://koji.fedoraproject.org/koji/taskinfo?taskID=2204259 And see if you can reproduce this bug?
calibre-0.6.55-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/calibre-0.6.55-1.fc12
calibre-0.6.55-1.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update calibre'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/calibre-0.6.55-1.fc12
calibre-0.6.55-1.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.