On Fri, 09 Jan 2009 11:40:18 -0500
john f jarvis wrote:
> Is the following GRAMPS error another manifestation of the bsddb
> problem or is it a different one. I tried to report this via the
> GRAMPS bug reporting mechanism yesterday.
> Thanks in advance, John Jarvis
> 12182: ERROR: DbLoader.py: line 281: Failed to open database.
> Traceback (most recent call last):
> File "/usr/local/share/gramps/DbLoader.py", line 272, in read_file
> self.dbstate.db.load(filename, self.uistate.pulse_progressbar,
> mode) File "/usr/local/share/gramps/gen/db/dbdir.py", line 450, in
> load return self.__load(name, callback, mode)
> File "/usr/local/share/gramps/gen/db/dbdir.py", line 483, in __load
> self.env.set_flags(db.DB_LOG_AUTOREMOVE, 1) # clean up unused
> logs AttributeError: 'module' object has no attribute
I encountered this same problem with Gramps-3.0.3. It's fixed in
The underlying problem has to do with the version of BerkeleyDB
installed on your machine. Old versions use db.DB_LOG_AUTOREMOVE while
new versions use db.DB_LOG_AUTO_REMOVE (not the added "_").
If memory serves, this problem occurs 2 or 3 places in the code. I
expect you could modify the python source code to fix things. It'd
probably be better to use the newer version of gramps as it has the
fix built in.