Bug 802421

Summary: [abrt] calibre-0.8.33-2.fc16: errorhandler.py:96:__handle:SyntaxErr: CSSValue: No match: ('CHAR', u'?', 197, 62)
Product: [Fedora] Fedora Reporter: Miloslav Trmač <mitr>
Component: calibreAssignee: Kevin Fenzi <kevin>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: chkr, frankly3d, kevin, mbacovsk, nushio
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:bee64b3b5890d1b546b749f33f7b2b2b3f73aa40
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-23 22:53:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Input data none

Description Miloslav Trmač 2012-03-12 14:00:30 UTC
libreport version: 2.0.8
abrt_version:   2.0.7
cmdline:        python2 /usr/bin/ebook-convert whitehurst.html whitehurst.mobi
comment:        ebook-convert whitehurst.{html,mobi}
executable:     /usr/bin/ebook-convert
kernel:         3.2.9-1.fc16.x86_64
reason:         errorhandler.py:96:__handle:SyntaxErr: CSSValue: No match: ('CHAR', u'?', 197, 62)
time:           Po 12. březen 2012, 14:59:50 CET
uid:            1000
username:       mitr

backtrace:
:errorhandler.py:96:__handle:SyntaxErr: CSSValue: No match: ('CHAR', u'?', 197, 62)
:
:Traceback (most recent call last):
:  File "/usr/bin/ebook-convert", line 19, in <module>
:    sys.exit(main())
:  File "/usr/lib64/calibre/calibre/ebooks/conversion/cli.py", line 287, in main
:    plumber.run()
:  File "/usr/lib64/calibre/calibre/ebooks/conversion/plumber.py", line 959, in run
:    accelerators, tdir)
:  File "/usr/lib64/calibre/calibre/customize/conversion.py", line 204, in __call__
:    log, accelerators)
:  File "/usr/lib64/calibre/calibre/ebooks/html/input.py", line 299, in convert
:    oeb = self.create_oebbook(stream.name, basedir, opts, log, mi)
:  File "/usr/lib64/calibre/calibre/ebooks/html/input.py", line 380, in create_oebbook
:    rewrite_links(item.data, partial(self.resource_adder, base=dpath))
:  File "/usr/lib64/calibre/calibre/ebooks/oeb/base.py", line 216, in rewrite_links
:    replaceUrls(stylesheet, link_repl_func)
:  File "/usr/lib/python2.7/site-packages/cssutils/__init__.py", line 269, in replaceUrls
:    importrule.href = replacer(importrule.href)
:  File "/usr/lib/python2.7/site-packages/cssutils/css/cssimportrule.py", line 307, in _setHref
:    encoding=encoding)
:  File "/usr/lib/python2.7/site-packages/cssutils/css/cssstylesheet.py", line 344, in _setCssTextWithEncodingOverride
:    self.cssText = cssText
:  File "/usr/lib/python2.7/site-packages/cssutils/css/cssstylesheet.py", line 292, in _setCssText
:    default=ruleset)
:  File "/usr/lib/python2.7/site-packages/cssutils/util.py", line 406, in _parse
:    expected = p(expected, seq, token, tokenizer)
:  File "/usr/lib/python2.7/site-packages/cssutils/css/cssstylesheet.py", line 260, in ruleset
:    rule.cssText = self._tokensupto2(tokenizer, token)
:  File "/usr/lib/python2.7/site-packages/cssutils/css/cssstylerule.py", line 150, in _setCssText
:    newStyle.cssText = styletokens
:  File "/usr/lib/python2.7/site-packages/cssutils/css/cssstyledeclaration.py", line 178, in __setattr__
:    super(CSSStyleDeclaration, self).__setattr__(n, v)
:  File "/usr/lib/python2.7/site-packages/cssutils/css/cssstyledeclaration.py", line 318, in _setCssText
:    default=unexpected)
:  File "/usr/lib/python2.7/site-packages/cssutils/util.py", line 406, in _parse
:    expected = p(expected, seq, token, tokenizer)
:  File "/usr/lib/python2.7/site-packages/cssutils/css/cssstyledeclaration.py", line 294, in ident
:    property.cssText = tokens
:  File "/usr/lib/python2.7/site-packages/cssutils/css/property.py", line 152, in _setCssText
:    self.cssValue = valuetokens
:  File "/usr/lib/python2.7/site-packages/cssutils/css/property.py", line 258, in _setCSSValue
:    v.cssText = cssText
:  File "/usr/lib/python2.7/site-packages/cssutils/css/cssvalue.py", line 218, in _setCssText
:    keepS=True)
:  File "/usr/lib/python2.7/site-packages/cssutils/prodparser.py", line 482, in parse
:    self._log.error(u'%s: %s: %r' % (name, e, token))
:  File "/usr/lib/python2.7/site-packages/cssutils/errorhandler.py", line 96, in __handle
:    raise error(msg)
:SyntaxErr: CSSValue: No match: ('CHAR', u'?', 197, 62)
:
:Local variables in innermost frame:
:neverraise: False
:self: <cssutils.errorhandler.ErrorHandler object at 0x2a446d0>
:args: None
:token: None
:error: <class 'xml.dom.SyntaxErr'>
:msg: u"CSSValue: No match: ('CHAR', u'?', 197, 62)"
:line: None
:col: None

Comment 1 Miloslav Trmač 2012-03-12 14:02:23 UTC
Created attachment 569411 [details]
Input data

Comment 2 Kevin Fenzi 2012-03-12 23:18:59 UTC
Can you try the 0.8.4x version from 
http://repos.fedorapeople.org/repos/kevin/calibre/

and see if the problem persists?

Comment 3 Miloslav Trmač 2012-11-23 22:53:56 UTC
I'm afraid I didn't (In reply to comment #2)
> Can you try the 0.8.4x version from 
> http://repos.fedorapeople.org/repos/kevin/calibre/
> 
> and see if the problem persists?

Sorry for getting back so late - I have now tried with calibre-0.9.1-1.fc17.x86_64 and it works fine.  Thanks!