You have an invalid character somewhere that cannot be printed and crashes the pdf output of python.

Some notes, you use a very old version of GRAMPS. If possible, update to version 2.2.10, which are bug fixes over 2.2.3 you use. There have been 2.2.10 debian packages. Gramps is version 3.1.1 already, but then you need to upgrade also python, and some base libraries, so I assume this is not an option for you. 3.1.1 has a new pdf backend however that might fix this crash.

As the pdf crashes, if you cannot find the invalid character in your data, consider output to another format (odf, ...) as it is the pdf that crashes here.
There is no more development in 2.2.x series, so only if this crash is happening in version 3.1.x this issue will be looked into.

Benny

2009/4/17 Gomulec <gomulec@fphil.uniba.sk>
"User Information:
===================
I'm generate book report

Error Details:
===================
196711: ERROR: __init__.py: line 1072: Unhandled exceptionTraceback
(most recent call last): File "/usr/share/gramps/plugins/BookReport.py",
line 906, in on_book_ok_clicked self.book,BookOptions) File
"/usr/share/gramps/plugins/BookReport.py", line 1021, in __init__
self.make_report() File "/usr/share/gramps/plugins/BookReport.py", line
1079, in make_report self.doc.close() File
"/usr/share/gramps/docgen/PdfDoc.py", line 205, in close
self.doc.build(self.story) File "/usr/share/gramps/docgen/PdfDoc.py",
line 113, in build BaseDocTemplate.build(self,flowables) File
"/usr/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py",
line 702, in build self.handle_flowable(flowables) File
"/usr/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py",
line 617, in handle_flowable if self.frame.add(f, self.canv,
trySplit=self.allowSplitting): File
"/usr/lib/python2.4/site-packages/reportlab/platypus/frames.py", line
149, in _add flowable.drawOn(canv, self._x + self._leftExtraIndent, y,
_sW=aW-w) File
"/usr/lib/python2.4/site-packages/reportlab/platypus/flowables.py", line
103, in drawOn self._drawOn(canvas) File
"/usr/lib/python2.4/site-packages/reportlab/platypus/flowables.py", line
88, in _drawOn self.draw()#this is the bit you overload File
"/usr/lib/python2.4/site-packages/reportlab/graphics/shapes.py", line
610, in draw renderPDF.draw(self, self.canv, 0, 0,
showBoundary=showBoundary) File
"/usr/lib/python2.4/site-packages/reportlab/graphics/renderPDF.py", line
24, in draw R.draw(renderScaledDrawing(drawing), canvas, x, y,
showBoundary=showBoundary) File
"/usr/lib/python2.4/site-packages/reportlab/graphics/renderbase.py",
line 201, in draw self.drawNode(drawing) File
"/usr/lib/python2.4/site-packages/reportlab/graphics/renderPDF.py", line
50, in drawNode self.drawNodeDispatcher(node) File
"/usr/lib/python2.4/site-packages/reportlab/graphics/renderbase.py",
line 278, in drawNodeDispatcher self.drawGroup(node) File
"/usr/lib/python2.4/site-packages/reportlab/graphics/renderbase.py",
line 306, in drawGroup self.drawNode(node) File
"/usr/lib/python2.4/site-packages/reportlab/graphics/renderPDF.py", line
50, in drawNode self.drawNodeDispatcher(node) File
"/usr/lib/python2.4/site-packages/reportlab/graphics/renderbase.py",
line 276, in drawNodeDispatcher self.drawString(node) File
"/usr/lib/python2.4/site-packages/reportlab/graphics/renderPDF.py", line
154, in drawString textLen = stringWidth(text, font, font_size, enc)
File "/usr/lib/python2.4/site-packages/reportlab/pdfbase/pdfmetrics.py",
line 709, in _py_stringWidth return getFont(fontName).stringWidth(text,
fontSize, encoding=encoding) File
"/usr/lib/python2.4/site-packages/reportlab/pdfbase/pdfmetrics.py", line
401, in _py_stringWidth if not isinstance(text,unicode): text =
text.decode(encoding) File "encodings/cp1252.py", line 22, in
decodeUnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in
position 30: character maps to

System Information:
===================
Python version: 2.4.4 (#2, Oct 22 2008, 20:20:22) [GCC 4.1.2 20061115
(prerelease) (Debian 4.1.1-21)] BSDDB version: 4.3.0.3 Gramps version:
2.2.3-1 LANG: sk_SK.UTF-8OS: LinuxDistribution: 2.6.18-6-xen-amd64"


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Gramps-bugs mailing list
Gramps-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-bugs