[reportlab-users] Reportlab + Python + RHEL 4 = Traceback (most recent call last)
Peter Mattingly
pmattingly at mail.csuchico.edu
Sun Oct 12 17:13:58 EDT 2008
Can we see your code?
On Sun, Oct 12, 2008 at 12:42 PM, Miguel Angel
<ing.miguel.angel at gmail.com>wrote:
> 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
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20081012/3a34387b/attachment.html>
More information about the reportlab-users
mailing list