Do you have a good backup? Backups should be done by export to .gramps xml files.
Gramps 2.2.10 automatically saves a backup on exit in the directory you save with extension .backup.gramps, before starting GRAMPS, make a copy of it in a save place.
On exit, GRAMPS resaves a new backup, so this backup might be not good already.

Your error looks like corrupted data, typical when moving or renaming the database file, see

If the above is not the reason for the error, then the following steps should help:

1/in the tools section run the rebuild reference tables tool
2/in the tools section run the rebuild secondary indexes tool
3/in the tools section run the check and repair database tool.

Once you have a good backup, start anew: make a new empty .grdb database file, and import the last backup into it.

As you run ubuntu, upgrade to the last release 3.0.4 (package on our website), with many new features.
As always, before an upgrade, store a .gramps backup in a safe place.


2009/1/29 Kevin Redden <>
User Information:

Error Details:

27503: ERROR: line 148: Unhandled exception
Traceback (most recent call last):
 File "/usr/share/gramps/", line 899, in new_activate
   (filename,filetype) = self.db_loader.new_file()
 File "/usr/lib/python2.5/", line 62, in warn
 File "/usr/lib/python2.5/", line 83, in warn_explicit
   for item in filters:
 File "/usr/share/gramps/", line 179, in new_file
 File "/usr/share/gramps/", line 436, in read_file
 File "/usr/share/gramps/GrampsDb/", line 2406, in
 File "/usr/share/gramps/GrampsDb/", line 1075, in close
 File "/usr/share/gramps/GrampsDb/", line 994, in
AttributeError: 'NoneType' object has no attribute 'put'

System Information:

Python version: 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3
(Ubuntu 4.2.3-2ubuntu7)]
BSDDB version:
Gramps version: 2.2.10-1
OS: Linux
Distribution: 2.6.24-19-generic

Kevin C. Redden
web site:

This email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
Gramps-bugs mailing list