Open GoogleCodeExporter opened 9 years ago
Hi Dirk,
Did you solved this problem?
I'm having the same error:
ERROR [ho.pisa] /usr/local/lib/python2.6/dist-packages/pisa-3.0.32-
py2.6.egg/sx/pisa3/pisa_document.py line 212: Document error
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/pisa-3.0.32-
py2.6.egg/sx/pisa3/pisa_document.py", line 117, in pisaDocument
c = pisaStory(src, path, link_callback, debug, default_css, xhtml, encoding, c=c,
xml_output=xml_output)
File "/usr/local/lib/python2.6/dist-packages/pisa-3.0.32-
py2.6.egg/sx/pisa3/pisa_document.py", line 62, in pisaStory
pisaParser(src, c, default_css, xhtml, encoding, xml_output)
File "/usr/local/lib/python2.6/dist-packages/pisa-3.0.32-
py2.6.egg/sx/pisa3/pisa_parser.py", line 616, in pisaParser
c.parseCSS()
File "/usr/local/lib/python2.6/dist-packages/pisa-3.0.32-
py2.6.egg/sx/pisa3/pisa_context.py", line 535, in parseCSS
self.css = self.cssParser.parse(self.cssText)
File "/usr/local/lib/python2.6/dist-packages/pisa-3.0.32-
py2.6.egg/sx/w3c/cssParser.py", line 358, in parse
src, stylesheet = self._parseStylesheet(src)
File "/usr/local/lib/python2.6/dist-packages/pisa-3.0.32-
py2.6.egg/sx/w3c/cssParser.py", line 453, in _parseStylesheet
src, atResults = self._parseAtKeyword(src)
File "/usr/local/lib/python2.6/dist-packages/pisa-3.0.32-
py2.6.egg/sx/w3c/cssParser.py", line 573, in _parseAtKeyword
src, result = self._parseAtImports(src)
File "/usr/local/lib/python2.6/dist-packages/pisa-3.0.32-
py2.6.egg/sx/w3c/cssParser.py", line 523, in _parseAtImports
stylesheet = self.cssBuilder.atImport(import_, mediums, self)
File "/usr/local/lib/python2.6/dist-packages/pisa-3.0.32-py2.6.egg/sx/w3c/css.py",
line 664, in atImport
return cssParser.parseExternal(import_)
File "/usr/local/lib/python2.6/dist-packages/pisa-3.0.32-
py2.6.egg/sx/pisa3/pisa_context.py", line 399, in parseExternal
result = self.parse(cssFile.getData())
File "/usr/local/lib/python2.6/dist-packages/pisa-3.0.32-
py2.6.egg/sx/w3c/cssParser.py", line 360, in parse
err.setFullCSSSource(src)
File "/usr/local/lib/python2.6/dist-packages/pisa-3.0.32-
py2.6.egg/sx/w3c/cssParser.py", line 187, in setFullCSSSource
self.srcFullIdx = self.fullsrc.find(self.src)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position 44:
ordinal not
in range(128)
ERROR!'ascii' codec can't decode byte 0xf3 in position 44: ordinal not in
range(128)
Original comment by markkus...@gmail.com
on 11 Dec 2009 at 11:38
Some time ago Pisa AKA XHTML2PDF has been rereleased under the completely free
Apache License. Since I personally don't have the time and resources to
continue the project like before I would kindly ask you to fork the project on
GitHub and add your patches etc. Maybe someone likes to create a new unified
version and publish it on PyPI. If you need more help on this get in contact
with me or write to the XHTML2PDF mailing list. Thank you all very much for
your effort!
Project on GitHub:
http://github.com/holtwick/xhtml2pdf
Original comment by dirk.holtwick
on 23 Aug 2010 at 5:27
Original issue reported on code.google.com by
dirk.holtwick
on 27 Mar 2009 at 7:14