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 http://gramps-project.org/wiki/index.php?title=Recover_corrupted_grdb

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.

Benny

2009/1/29 Kevin Redden <kcredden@gmail.com>
User Information:
===================




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

27503: ERROR: gramps.py: line 148: Unhandled exception
Traceback (most recent call last):
 File "/usr/share/gramps/ViewManager.py", line 899, in new_activate
   (filename,filetype) = self.db_loader.new_file()
 File "/usr/lib/python2.5/warnings.py", line 62, in warn
   globals)
 File "/usr/lib/python2.5/warnings.py", line 83, in warn_explicit
   for item in filters:
 File "/usr/share/gramps/DbLoader.py", line 179, in new_file
   self.read_file(filename,filetype)
 File "/usr/share/gramps/DbLoader.py", line 436, in read_file
   self.dbstate.change_database(dbclass(Config.get(Config.TRANSACTIONS)))
 File "/usr/share/gramps/GrampsDb/_GrampsDbBase.py", line 2406, in
change_database
   self.db.close()
 File "/usr/share/gramps/GrampsDb/_GrampsBSDDB.py", line 1075, in close
   self._close_metadata()
 File "/usr/share/gramps/GrampsDb/_GrampsBSDDB.py", line 994, in
_close_metadata
   self.metadata.put('name_formats',self.name_formats,txn=the_txn)
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: 4.4.5.3
Gramps version: 2.2.10-1
LANG: en_US.UTF-8
OS: Linux
Distribution: 2.6.24-19-generic


--
Kevin C. Redden
kredden@maysvilleky.net
kcredden@gmail.com
web site: kevinredden.name

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Gramps-bugs mailing list
Gramps-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-bugs