500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 656, in respond
    response.body = self.handler()
  File "/usr/local/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 228, in __call__
    ct.params['charset'] = self.find_acceptable_charset()
  File "/usr/local/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 142, in find_acceptable_charset
    if encoder(self.default_encoding):
  File "/usr/local/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 86, in encode_string
    for chunk in self.body:
  File "/srv/enterprise_pics/src/controllers/pdf.py", line 24, in index
    pdf = Files.pdf.Pdf(company, url).generate()
  File "/srv/enterprise_pics/src/Files/pdf.py", line 39, in generate
    pdf = pisa.CreatePDF(htmlObj, pdfObj, raise_exception=False)
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/document.py", line 85, in pisaDocument
    encoding, context=context, xml_output=xml_output)
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/document.py", line 56, in pisaStory
    pisaParser(src, context, default_css, xhtml, encoding, xml_output)
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/parser.py", line 649, in pisaParser
    context.parseCSS()
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/context.py", line 479, in parseCSS
    self.css = self.cssParser.parse(self.cssText)
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/w3c/cssParser.py", line 358, in parse
    src, stylesheet = self._parseStylesheet(src)
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/w3c/cssParser.py", line 453, in _parseStylesheet
    src, atResults = self._parseAtKeyword(src)
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/w3c/cssParser.py", line 573, in _parseAtKeyword
    src, result = self._parseAtImports(src)
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/w3c/cssParser.py", line 523, in _parseAtImports
    stylesheet = self.cssBuilder.atImport(import_, mediums, self)
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/w3c/css.py", line 667, in atImport
    return cssParser.parseExternal(import_)
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/context.py", line 340, in parseExternal
    result = self.parse(cssFile.getData())
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/w3c/cssParser.py", line 358, in parse
    src, stylesheet = self._parseStylesheet(src)
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/w3c/cssParser.py", line 458, in _parseStylesheet
    src, ruleset = self._parseRuleset(src)
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/w3c/cssParser.py", line 738, in _parseRuleset
    src, properties = self._parseDeclarationGroup(src.lstrip())
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/w3c/cssParser.py", line 906, in _parseDeclarationGroup
    src, property = self._parseDeclaration(src)
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/w3c/cssParser.py", line 946, in _parseDeclaration
    src, property = self._parseDeclarationProperty(src, propertyName)
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/w3c/cssParser.py", line 954, in _parseDeclarationProperty
    src, expr = self._parseExpression(src)
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/w3c/cssParser.py", line 969, in _parseExpression
    src, term = self._parseExpressionTerm(src)
  File "build/bdist.linux-x86_64/egg/xhtml2pdf/w3c/cssParser.py", line 1021, in _parseExpressionTerm
    raise self.ParseError('Terminal function expression expected closing \')\'', src, ctxsrc)
CSSParseError: Terminal function expression expected closing ')':: (u'Alpha(Opacity', u'=0); }\n\n\n\n.ui-state-')
Powered by CherryPy 3.2.5