You lost connection to the database on import of a gpkg file
Is it possible the grdb you import into has been moved? Grdb files are not portable, see http://www.gramps-project.org/wiki/index.php?title=Recover_corrupted_grdb

If possible, do the following:
1/backup your data by exporting to a .gramps xml file (this is portable, .grdb files _not_ )
2/upgrade to version3.0.0, you find an ubuntu package on our website:  http://sourceforge.net/project/showfiles.php?group_id=25770
3/import your .gramps backup file in an empty database
4/in the tools menu, run the rebuild reference table tool, then the rebuild sec index tool, then the check and repair tool.

Can you now reproduce the error? Hope all is solved with above steps.

Benny

2008/4/26 Vittorio Mandelli <vittorio.mandelli@tele2.it>:
"User Information:
===================

import action from backup database


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

78009: ERROR: DbLoader.py: line 501: Failed to import database.
Traceback (most recent call last):
 File "/usr/share/gramps/DbLoader.py", line 497, in do_import
   importer(self.dbstate.db, filename, self.uistate.pulse_progressbar)
 File "/usr/share/gramps/plugins/ReadPkg.py", line 99, in impData
   importer(database,imp_db_name,cb)
 File "/usr/share/gramps/GrampsDb/_ReadXML.py", line 101, in importData
   parser = GrampsParser(database,callback,basefile,change,filename)
 File "/usr/share/gramps/GrampsDb/_ReadXML.py", line 280, in __init__
   cursor = database.get_place_cursor()
 File "/usr/share/gramps/GrampsDb/_GrampsBSDDB.py", line 175, in get_place_cursor
   return GrampsBSDDBCursor(self.place_map,self.txn)
 File "/usr/share/gramps/GrampsDb/_GrampsBSDDB.py", line 77, in __init__
   self.cursor = source.db.cursor(txn)
AttributeError: 'NoneType' object has no attribute 'db'94582: ERROR: gramps.py: line 148: Unhandled exception
Traceback (most recent call last):
 File "/usr/share/gramps/ViewManager.py", line 492, in quit
   self.state.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, Apr 21 2008, 11:12:42) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
BSDDB version: 4.4.5.3
Gramps version: 2.2.10-1
LANG: it_IT.UTF-8
OS: Linux
Distribution: 2.6.24-16-generic
"


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Gramps-bugs mailing list
Gramps-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-bugs