Bug 863714 - [abrt] python-xhtml2pdf-0.0.3-3.fc17: cssSpecial.py:238:parseSpecialRules:TypeError: argument of type 'CSSTerminalFunction' is not iterable
[abrt] python-xhtml2pdf-0.0.3-3.fc17: cssSpecial.py:238:parseSpecialRules:Typ...
Status: CLOSED CANTFIX
Product: Fedora
Classification: Fedora
Component: python-xhtml2pdf (Show other bugs)
17
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Matthias Runge
Fedora Extras Quality Assurance
abrt_hash:5a0633fde2f91c2ad1a50ab2b0a...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-06 16:58 EDT by M. Edward (Ed) Borasky
Modified: 2013-02-26 03:59 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-02-26 03:59:34 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
File: core_backtrace (2.13 KB, text/plain)
2012-10-06 16:58 EDT, M. Edward (Ed) Borasky
no flags Details

  None (edit)
Description M. Edward (Ed) Borasky 2012-10-06 16:58:18 EDT
Version-Release number of selected component:
python-xhtml2pdf-0.0.3-3.fc17

Additional info:
libreport version: 2.0.14
abrt_version:   2.0.13
cmdline:        /usr/bin/python /usr/bin/xhtml2pdf http://redis.io Redis.pdf
kernel:         3.5.4-2.fc17.x86_64

backtrace:
:cssSpecial.py:238:parseSpecialRules:TypeError: argument of type 'CSSTerminalFunction' is not iterable
:
:Traceback (most recent call last):
:  File "/usr/bin/xhtml2pdf", line 9, in <module>
:    load_entry_point('xhtml2pdf==0.0.3', 'console_scripts', 'xhtml2pdf')()
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/pisa.py", line 173, in command
:    execute()
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/pisa.py", line 425, in execute
:    xml_output = xml_output,
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/document.py", line 85, in pisaDocument
:    encoding, context=context, xml_output=xml_output)
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/document.py", line 56, in pisaStory
:    pisaParser(src, context, default_css, xhtml, encoding, xml_output)
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/parser.py", line 649, in pisaParser
:    context.parseCSS()
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/context.py", line 479, in parseCSS
:    self.css = self.cssParser.parse(self.cssText)
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/w3c/cssParser.py", line 357, in parse
:    src, stylesheet = self._parseStylesheet(src)
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/w3c/cssParser.py", line 452, in _parseStylesheet
:    src, atResults = self._parseAtKeyword(src)
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/w3c/cssParser.py", line 572, in _parseAtKeyword
:    src, result = self._parseAtImports(src)
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/w3c/cssParser.py", line 522, in _parseAtImports
:    stylesheet = self.cssBuilder.atImport(import_, mediums, self)
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/w3c/css.py", line 666, in atImport
:    return cssParser.parseExternal(import_)
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/context.py", line 340, in parseExternal
:    result = self.parse(cssFile.getData())
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/w3c/cssParser.py", line 357, in parse
:    src, stylesheet = self._parseStylesheet(src)
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/w3c/cssParser.py", line 457, in _parseStylesheet
:    src, ruleset = self._parseRuleset(src)
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/w3c/cssParser.py", line 738, in _parseRuleset
:    result = self.cssBuilder.ruleset(selectors, properties)
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/w3c/css.py", line 632, in ruleset
:    declarations = self.specialRules(declarations)
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/w3c/css.py", line 623, in specialRules
:    return cssSpecial.parseSpecialRules(declarations)
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/w3c/cssSpecial.py", line 238, in parseSpecialRules
:    if ("." in part) or ("data:" in part):
:TypeError: argument of type 'CSSTerminalFunction' is not iterable
:
:Local variables in innermost frame:
:last: None
Comment 1 M. Edward (Ed) Borasky 2012-10-06 16:58:20 EDT
Created attachment 622834 [details]
File: core_backtrace
Comment 2 Matthias Runge 2013-02-26 03:59:34 EST
IMHO that's a bug in the css code of the website. This is nothing, we can fix in the package.

Note You need to log in before you can comment on or make changes to this bug.