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.

Benny

2008/8/9 John Manley <minagof@yahoo.com>
User Information:
===================

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


Error Details:
===================

324706: ERROR: gramps.py: line 148: Unhandled exception
Traceback (most recent call last):
 File "/usr/share/gramps/Exporter.py", line 127, in on_before_page_next
   success = self.save()
 File "/usr/share/gramps/Exporter.py", line 190, in save
   self.callback)
 File "/usr/share/gramps/plugins/WritePkg.py", line 71, in writeData
   ret = writer.export()
 File "/usr/share/gramps/plugins/WritePkg.py", line 164, in export
   archive.add(filename)
 File "tarfile.py", line 1460, in add
   self.addfile(tarinfo, f)
 File "tarfile.py", line 1483, in addfile
   buf = tarinfo.tobuf(self.posix)
 File "tarfile.py", line 966, in tobuf
   buf += struct.pack("%ds" % BLOCKSIZE, "".join(parts))
 File "struct.py", 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: 4.4.5.2
Gramps version: 2.2.6-1
LANG: en_US.UTF-8
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
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gramps-bugs mailing list
Gramps-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-bugs