Bug 891156 - [abrt] python-xhtml2pdf-0.0.3-3.fc17: cssParser.py:922:_parseDeclarationGroup:CSSParseError: Declaration group closing '}' not found:: (u'{\n\tmargin-left: 10%\n\tmargin-rightt', u': 10%\n\theight: 25px;')
Summary: [abrt] python-xhtml2pdf-0.0.3-3.fc17: cssParser.py:922:_parseDeclarationGroup...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-xhtml2pdf
Version: 17
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Runge
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:71be111d9bcf0d8c5d6f2727005...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-02 03:32 UTC by Bill Thielman
Modified: 2013-01-10 09:15 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-10 09:15:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: environ (3.34 KB, text/plain)
2013-01-02 03:32 UTC, Bill Thielman
no flags Details
File: executable (13 bytes, text/plain)
2013-01-02 03:32 UTC, Bill Thielman
no flags Details
File: smolt_data (2.70 KB, text/plain)
2013-01-02 03:32 UTC, Bill Thielman
no flags Details
File: core_backtrace (1.21 KB, text/plain)
2013-01-02 03:32 UTC, Bill Thielman
no flags Details

Description Bill Thielman 2013-01-02 03:32:38 UTC
Description of problem:
attempted to convert an html file to pdf

Version-Release number of selected component:
python-xhtml2pdf-0.0.3-3.fc17

Additional info:
libreport version: 2.0.18
abrt_version:   2.0.18
cmdline:        /usr/bin/python /usr/bin/pisa --css ged_helpers.css Operations/Int-Sign-Rules/index.html Int-Sign-Rules.pdf
kernel:         3.6.10-2.fc17.i686

backtrace:
:cssParser.py:922:_parseDeclarationGroup:CSSParseError: Declaration group closing '}' not found:: (u'{\n\tmargin-left: 10%\n\tmargin-rightt', u': 10%\n\theight: 25px;')
:
:Traceback (most recent call last):
:  File "/usr/bin/pisa", line 9, in <module>
:    load_entry_point('xhtml2pdf==0.0.3', 'console_scripts', 'pisa')()
:  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 457, in _parseStylesheet
:    src, ruleset = self._parseRuleset(src)
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/w3c/cssParser.py", line 737, in _parseRuleset
:    src, properties = self._parseDeclarationGroup(src.lstrip())
:  File "/usr/lib/python2.7/site-packages/xhtml2pdf/w3c/cssParser.py", line 922, in _parseDeclarationGroup
:    raise self.ParseError('Declaration group closing \'}\' not found', src, ctxsrc)
:CSSParseError: Declaration group closing '}' not found:: (u'{\n\tmargin-left: 10%\n\tmargin-rightt', u': 10%\n\theight: 25px;')
:
:Local variables in innermost frame:
:src: u': 10%\n\theight: 25px;\n\tposition: relative;\n\n\t}\n\n.clearfooter\n\t{\n\theight: 25px;\n\tclear: both;\n\t}\n\nhr\n\t{\n\twidth:60%;\n\tcolor:blue;\n\tsize:3;\n\t}\n\np,li,dl\n\t{\n\tmargin-left:20%;\n\tmargin-right:20%;\n\tfont-size:large;\n\t}\n\nh2,h3\n\t{\n\tmargin-left:20%;\n\t}\n\nbody\n\t{\n\tbackground-image: url("POE.png");\n\tbackground-attachment: repeat;\n\t}\n\n\nth,td\n\t{\n\tfont-size:large;\n\tpadding:5px;\n\t}\n\ntable\n\t{\n\tborder:2px black;\n\tborder-width:1px;\n\tfont-size:large;\n\tpadding:2px;\n\t}\n@import "../../ged_helpers.css" all;\n'
:self: <xhtml2pdf.context.pisaCSSParser object at 0xa323ecc>
:ctxsrc: u'{\n\tmargin-left: 10%\n\tmargin-rightt: 10%\n\theight: 25px;\n\tposition: relative;\n\n\t}\n\n.clearfooter\n\t{\n\theight: 25px;\n\tclear: both;\n\t}\n\nhr\n\t{\n\twidth:60%;\n\tcolor:blue;\n\tsize:3;\n\t}\n\np,li,dl\n\t{\n\tmargin-left:20%;\n\tmargin-right:20%;\n\tfont-size:large;\n\t}\n\nh2,h3\n\t{\n\tmargin-left:20%;\n\t}\n\nbody\n\t{\n\tbackground-image: url("POE.png");\n\tbackground-attachment: repeat;\n\t}\n\n\nth,td\n\t{\n\tfont-size:large;\n\tpadding:5px;\n\t}\n\ntable\n\t{\n\tborder:2px black;\n\tborder-width:1px;\n\tfont-size:large;\n\tpadding:2px;\n\t}\n@import "../../ged_helpers.css" all;\n'
:property: (u'margin-left', [(u'10', u'%'), u'margin-rightt'], None)
:properties: [(u'margin-left', [(u'10', u'%'), u'margin-rightt'], None)]
:braces: True

Comment 1 Bill Thielman 2013-01-02 03:32:42 UTC
Created attachment 671229 [details]
File: environ

Comment 2 Bill Thielman 2013-01-02 03:32:43 UTC
Created attachment 671230 [details]
File: executable

Comment 3 Bill Thielman 2013-01-02 03:32:45 UTC
Created attachment 671231 [details]
File: smolt_data

Comment 4 Bill Thielman 2013-01-02 03:32:47 UTC
Created attachment 671232 [details]
File: core_backtrace

Comment 5 Matthias Runge 2013-01-10 09:15:44 UTC
Thanks for your report!
 

the error message states, in your ged_helpers.css is a '}' missing.
So, I would close this as notabug, although I agree, just throwing a backtrace is not optimal.


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