From: Benny M. <ben...@gm...> - 2008-11-03 09:14:00
|
On my box: python Python 2.5.2 (r252:60911, Jul 31 2008, 17:31:22) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from bsddb import db >>> db.DB_LOG_AUTOREMOVE 524288 >>> db.version() (4, 6, 21) So here, db.DB_LOG_AUTOREMOVE exists It would appear it does not exist on your box. Can you check? As you see I run version 4.6.21 A bug at that moment means your data cannot load. The strange thing is, I cannot see this being related to an unclean closed database, as this should fail always if the attribute is not present, so GRAMPS should never work on your machine .... Please, provide more feedback. Note that line 483 in dbdir.py can be removed, it was added to avoid log files of several Mb clogging down the systhem. Benny 2008/11/3 Martin Steer <mar...@ma...> > I'm happy to post the following as a bug report, but I'd be grateful > also for some immediate feedback here. I have backups, so I'm not too > worried about my data. > > Gramps wasn't shut down cleanly when last used. Today it fails on > startup with the following message: > > 9381: ERROR: DbLoader.py: line 281: Failed to open database. > Traceback (most recent call last): > File "/usr/share/gramps/DbLoader.py", line 272, in read_file > self.dbstate.db.load(filename, self.uistate.pulse_progressbar, mode) > File "/usr/share/gramps/gen/db/dbdir.py", line 450, in load > return self.__load(name, callback, mode) > File "/usr/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 'DB_LOG_AUTOREMOVE' > > This is gramps version 3.0.2-1 on Arch linux. > > If I restart gramps the error recurs. It also recurs if I cancel the > error message then try to open any existing database. > > -- > Martin > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel > |