Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199003 - app-misc/gramps fails to run - No module named _bsddb
Summary: app-misc/gramps fails to run - No module named _bsddb
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Steve Dibb (RETIRED)
URL:
Whiteboard:
Keywords:
: 210325 (view as bug list)
Depends on: 179377
Blocks:
  Show dependency tree
 
Reported: 2007-11-13 01:27 UTC by Adam Fabicki
Modified: 2008-02-20 18:07 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Fabicki 2007-11-13 01:27:20 UTC
gramps ebuild ran fine, but when I try to run it, it crashes with the following traceback from python:

  File "/usr/share/gramps/gramps.py", line 81, in ?
    import gramps_main 
  File "/usr/share/gramps/gramps_main.py", line 57, in ?
    import GrampsBSDDB
  File "/usr/share/gramps/GrampsBSDDB.py", line 37, in ?
    from bsddb import dbshelve, db
  File "/usr/lib/python2.4/bsddb/__init__.py", line 47, in ?
    import _bsddb
ImportError: No module named _bsddb
Comment 1 Rauch Christian 2007-11-20 08:56:51 UTC
For a (possible) fix see http://gramps-project.org/wiki/index.php?title=Install_latest_BSDDB#Remove_old_BSDDB_and_replace_with_new_in_GRAMPS

You have to emerge bsddb3 before applying the changes.
Watch out, it's not only changing "import bsddb" but also some lines starting with "from bsddb."!

Worked for me, gramps 2.2.8 is running just fine now.
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2007-12-13 19:04:55 UTC
Adam, could you please check if comment #1 helps you?
Comment 3 Adam Fabicki 2007-12-14 03:53:45 UTC
Yep, the directions worked to fix the problem, thanks.
Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2007-12-14 04:49:04 UTC
Closing then.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-02-16 06:55:47 UTC
*** Bug 210325 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2008-02-16 06:57:27 UTC
(In reply to comment #4)
> Closing then.

Manually messing with installed files != fix. 

Comment 7 Michael C. Vergallen 2008-02-16 14:28:48 UTC
Please make a patch that solves this. Because editing the source files of a ebuild 
to get a package to work is not the solution.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2008-02-16 14:30:49 UTC
(In reply to comment #7)
> Please make a patch that solves this.

There's no patch needed for this; this is a python issue (see Bug 179377).
Comment 9 Michael C. Vergallen 2008-02-16 15:09:59 UTC
I see...his problem seems to take ages to fix....It's been about 8 months since the python problem was reported.
Comment 10 Christian Faulhammer (RETIRED) gentoo-dev 2008-02-16 15:28:00 UTC
(In reply to comment #9)
> I see...his problem seems to take ages to fix....It's been about 8 months since
> the python problem was reported.

 Maybe the bug slipped for the Python team...I will commit the fix as soon as I made clear if the proposed fix is sane.  It uses some features from EAPI=1 (slot dependencies) and I will check with someone else.  Or do you know something that stands against EAPI=1 in the (stable) tree, jakub?

Comment 11 Jakub Moc (RETIRED) gentoo-dev 2008-02-16 15:31:48 UTC
(In reply to comment #10)
> something that stands against EAPI=1 in the (stable) tree, jakub?

Hmmm? No, there's tons of stuff using EAPI=1 now. Just make sure to revbump the thing and get it stabilized ASAP, thanks... ;)

Comment 12 Christian Faulhammer (RETIRED) gentoo-dev 2008-02-16 16:26:49 UTC
Fixed I hope.  Closing. -r9 should go stable soon, I try to take care of it.
Comment 13 Michael C. Vergallen 2008-02-20 11:28:00 UTC
(In reply to comment #12)
> Fixed I hope.  Closing. -r9 should go stable soon, I try to take care of it.
> 

Still waiting on this to go stable ...
Comment 14 Christian Faulhammer (RETIRED) gentoo-dev 2008-02-20 18:07:46 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > Fixed I hope.  Closing. -r9 should go stable soon, I try to take care of it.
> Still waiting on this to go stable ...

 You sure have talent for it...give it some time, python team did not react to my request, but I will come to it next week (need to check there are no other bugs holding it back).