You are not logged in.

#1 2011-07-06 20:40:47

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

[Solved] Recent updates cause Gramps error: No module named _bsddb

Did a 'pacman -Syu' today and Gramps fails to start:

$ gramps
2599: ERROR: gramps.py: line 142: Unhandled exception
Traceback (most recent call last):
  File "/usr/share/gramps/gui/grampsgui.py", line 271, in __startgramps
    from GrampsLogger import RotateHandler, GtkHandler
  File "/usr/share/gramps/GrampsLogger/__init__.py", line 45, in <module>
    from _GtkHandler import GtkHandler
  File "/usr/share/gramps/GrampsLogger/_GtkHandler.py", line 4, in <module>
    from _ErrorView import ErrorView
  File "/usr/share/gramps/GrampsLogger/_ErrorView.py", line 15, in <module>
    from _ErrorReportAssistant import ErrorReportAssistant
  File "/usr/share/gramps/GrampsLogger/_ErrorReportAssistant.py", line 14, in <module>
    import bsddb
  File "/usr/lib/python2.7/bsddb/__init__.py", line 67, in <module>
    import _bsddb
ImportError: No module named _bsddb

Was working fine a few days ago ... wink

Last edited by ninian (2011-07-07 20:20:32)

Offline

#2 2011-07-06 20:54:14

Fififox
Member
From: France
Registered: 2010-11-30
Posts: 17

Re: [Solved] Recent updates cause Gramps error: No module named _bsddb

Hi !

My mother faces the same problem, it seems that the `db' package (`bsddb' as python2 names it) was updated today, most probably breaking something in python2, which was also updated today... So it's a problem in python2 itself, more than in gramps (as can be seen from the error in python2's bsddb __init__, in the OP).

EDIT: From old bug reports seen on the net, it would have to do with the presence of BerkeleyDB headers when python is compiled...

Last edited by Fififox (2011-07-06 20:57:11)

Offline

#3 2011-07-06 20:56:20

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [Solved] Recent updates cause Gramps error: No module named _bsddb

report this bug on the tracker


Give what you have. To someone, it may be better than you dare to think.

Offline

#4 2011-07-06 21:11:59

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,405
Website

Re: [Solved] Recent updates cause Gramps error: No module named _bsddb

I needs python2-bsddb as a dependency.  This has been removed from the python2 package due to that having an old version that did not work with the current db.

Offline

#5 2011-07-06 21:16:18

Fififox
Member
From: France
Registered: 2010-11-30
Posts: 17

Re: [Solved] Recent updates cause Gramps error: No module named _bsddb

Please put it in the bug report, as installing python2-bsddb didn't seem to fix the issue...
Report for python2: https://bugs.archlinux.org/task/25045 [CLOSED]

EDIT:
In fact, the problem comes from gramps, which should import bsddb3, see GRAMPS wiki.
Report for gramps (the config should be changed to use bsddb3 by default): https://bugs.archlinux.org/task/25050

Last edited by Fififox (2011-07-07 08:54:32)

Offline

#6 2011-07-07 20:19:51

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: [Solved] Recent updates cause Gramps error: No module named _bsddb

Today's 'pacman -Syu' has fixed the problem for me.
Thanks for the swift updates to fix this.
smile

Offline

Board footer

Powered by FluxBB