There seems to be a problem with the gpkg export due to a stange filename of one of your media objects

First of all, you use an old gramps version. Gramps is now version 2.2.10 or 3.0.1, upgrade to one of those if possible will probably solve the bug already.
In case you run an old ubuntu version, you might need to upgrade to a more recent version. Anyway, just grab the ubuntu .deb packages from our website, and try to install them, it will be quickly evident if it works.

Before all upgrade, export a backup, as .gpkg does not work, export as .gramps. The media directory can be backed up seperately without problems.


2008/8/9 John Manley <>
User Information:

I was attempting to export my family tree to an XML Gramps package.

Error Details:

324706: ERROR: line 148: Unhandled exception
Traceback (most recent call last):
 File "/usr/share/gramps/", line 127, in on_before_page_next
   success =
 File "/usr/share/gramps/", line 190, in save
 File "/usr/share/gramps/plugins/", line 71, in writeData
   ret = writer.export()
 File "/usr/share/gramps/plugins/", line 164, in export
 File "", line 1460, in add
   self.addfile(tarinfo, f)
 File "", line 1483, in addfile
   buf = tarinfo.tobuf(self.posix)
 File "", line 966, in tobuf
   buf += struct.pack("%ds" % BLOCKSIZE, "".join(parts))
 File "", line 63, in pack
   return o.pack(*args)
error: argument for 's' must be a string

System Information:

Python version: 2.5.1 (r251:54863, Jul 31 2008, 22:53:39) [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)]
BSDDB version:
Gramps version: 2.2.6-1
OS: Linux
Distribution: 2.6.20-17-generic

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
Gramps-bugs mailing list