[reportlab-users] Reportlab + Python + RHEL 4 = Traceback (most recent call last)

Miguel Angel ing.miguel.angel at gmail.com
Sun Oct 12 15:42:01 EDT 2008


Hi, first of all, I would like to apologize for my english.

I have a linux box with RHEL 4 and:
- python-reportlab-1.20-1.rf
- python-2.3.4-14
- python-devel-2.3.4-14

But when I run my code, show me this:

[root at ibes dev]# python2.3 mydev.py
Traceback (most recent call last):
File "mydev.py", line 110, in ?
c.construirPdf()
File "mydev.py", line 46, in construirPdf
c.drawString(85,634, u"BOGOTÁ")
File "/usr/lib/python2.3/site-packages/reportlab/pdfgen/canvas.py",
line 1169, in drawString
t.textLine(text)
File "/usr/lib/python2.3/site-packages/reportlab/pdfgen/textobject.py",
line 334, in textLine
self._code.append('%s T*' % self._formatText(text))
File "/usr/lib/python2.3/site-packages/reportlab/pdfgen/textobject.py",
line 306, in _formatText
text = self._canvas._escape(text)
File "/usr/lib/python2.3/site-packages/reportlab/pdfgen/canvas.py",
line 231, in _escape
return _escapePDF(s)
File "/usr/lib/python2.3/site-packages/reportlab/pdfbase/pdfutils.py",
line 139, in _escape
return join(map(lambda c, d=_ESCAPEDICT: d[c],s),'')
File "/usr/lib/python2.3/site-packages/reportlab/pdfbase/pdfutils.py",
line 139, in <lambda>
return join(map(lambda c, d=_ESCAPEDICT: d[c],s),'')
KeyError: u'\xc1'

What is the problem?

Thanks, any help would be greatly appreciated.


--
Atentamente,


Miguel Angel Moreno Bolaños

Usuario Linux registrado No. 391784
http://counter.li.org

"El amor es un dolor entre pecho y espalda,
que sabe a papas fritas sin salsa de tomate!"

Att: Nous


More information about the reportlab-users mailing list