First of all, a grdb file cannot be moved. The error you give normally is seen in this context, see:

If that not to blame, before import, clean up your database by running the tools:

1/rebuild reference tables tool
2/rebuild secondary indexes tool
3/check and repair tool

Then try import.
Run the tools after import again to see if the import did not add bad data.

Don't forget to take backups as .gramps files from time to time

Upgrade to version 3.0.1, you find an ubuntu package on our website


2008/7/11 Jean-Paul Rouze <>:
"User Information: 

Error Details: 

805235: ERROR: line 501: Failed to import database.
Traceback (most recent call last):
  File "/usr/share/gramps/", line 497, in do_import
    importer(self.dbstate.db, filename, self.uistate.pulse_progressbar)
  File "/usr/share/gramps/GrampsDb/", line 228, in importData
    import2(database, filename, callback, codeset, use_trans)
  File "/usr/share/gramps/GrampsDb/", line 249, in import2
    close = g.parse_gedcom_file(use_trans)
  File "/usr/share/gramps/GrampsDb/", line 866, in parse_gedcom_file
  File "/usr/share/gramps/GrampsDb/", line 1051, in parse_record
  File "/usr/share/gramps/GrampsDb/", line 1677, in parse_INDI
    func(matches, state)
  File "/usr/share/gramps/GrampsDb/", line 2948, in func_person_birt
    self.parse_event(event_ref, event, self.generic_event_map, 2)
  File "/usr/share/gramps/GrampsDb/", line 1875, in parse_event
    func(matches, event_ref, event, level+1)
  File "/usr/share/gramps/GrampsDb/", line 2007, in func_event_place
    place = self.find_or_create_place(val)
  File "/usr/share/gramps/GrampsDb/", line 1208, in find_or_create_place
    if self.db.has_place_handle(intid):
  File "/usr/share/gramps/GrampsDb/", line 220, in has_place_handle
    return self.place_map.get(str(handle),txn=self.txn) != None
AttributeError: 'NoneType' object has no attribute 'get'

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: 
Gramps version: 2.2.10-1 
OS: Linux
Distribution: 2.6.24-19-generic

Sponsored by: Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at
Gramps-bugs mailing list