Python and gramps...

Chuck Swiger cswiger at
Fri Feb 23 22:58:23 UTC 2007

On Feb 23, 2007, at 2:21 PM, Anders Troback wrote:
> The port builds fine but when I'm start up the program and tries to do
> things in the program I've got errors. The following error occurs when
> I'm trying to create a new file:
> 8<-------------------------------------------------------------------
> 13416: ERROR: line 468: Failed to open database.
> Traceback (most recent call last):
>   File "/usr/local/share/gramps/", line 447, in read_file
>     self.dbstate.db.load(filename,self.uistate.pulse_progressbar,mode)
>   File "/usr/local/share/gramps/GrampsDb/", line  
> 347, in
> load self.env.set_flags(db.DB_LOG_AUTOREMOVE,1)  # clean up unused  
> logs
> AttributeError: 'module' object has no attribute 'DB_LOG_AUTOREMOVE'
> 8<-------------------------------------------------------------------
> Similar error pops up almost every were! One person in the gramps ML
> are hinting to a problem with the installation of BSDDB. I don't know
> mush about Python so I'm kind of lost here!

I think you need to choose a particular flavor of BDB which is recent  
enough to support these log capabilities; try setting something like  
these in /etc/make.conf:


...or choose some other recent 4.x version, and then try  
reinstalling /usr/ports/databases/py-bsddb.


More information about the freebsd-ports mailing list