Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gramps fails with missing _bsddb python module
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
bbe
Apprentice
Apprentice


Joined: 10 Jan 2005
Posts: 158
Location: UK

PostPosted: Tue Jun 19, 2007 12:35 pm    Post subject: gramps fails with missing _bsddb python module Reply with quote

gramps emerges fine, but fails with the following when I try to launch it. It appears _bsddb.so is missing in /usr/lib/python2.4/lib-dynload/ I have python installed with "berkdb" use flag but it doesn't help. Any ideas?

Code:

Traceback (most recent call last):
  File "/usr/share/gramps/gramps.py", line 97, in ?
    import gramps_main
  File "/usr/share/gramps/gramps_main.py", line 47, in ?
    import ViewManager
  File "/usr/share/gramps/ViewManager.py", line 65, in ?
    import DisplayState
  File "/usr/share/gramps/DisplayState.py", line 52, in ?
    import GrampsDb
  File "/usr/share/gramps/GrampsDb/__init__.py", line 41, in ?
    from _GrampsDbBase import DbState, GrampsDbBase
  File "/usr/share/gramps/GrampsDb/_GrampsDbBase.py", line 42, in ?
    from bsddb import db
  File "/usr/lib/python2.4/bsddb/__init__.py", line 47, in ?
    import _bsddb
ImportError: No module named _bsddb
Back to top
View user's profile Send private message
bbe
Apprentice
Apprentice


Joined: 10 Jan 2005
Posts: 158
Location: UK

PostPosted: Sat Jun 23, 2007 3:35 pm    Post subject: Reply with quote

bump... anyone?
Back to top
View user's profile Send private message
EricHsu
Moderator
Moderator


Joined: 03 May 2004
Posts: 590
Location: Aragon Consulting Group, Beijing, China

PostPosted: Tue Jul 03, 2007 3:23 am    Post subject: Reply with quote

Same problem here, but with Scribes editor. I figured out there's no _bsddb.so with my python build, although:

Code:

$ emerge -pv python

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/python-2.4.4-r4  USE="berkdb gdbm ncurses readline ssl -bootstrap -build -doc -examples -ipv6 -nocxx -nothreads -tk -ucs2" 0 kB


I've already set the +berkdb flag.

I tried:

Code:

$ qlist python | grep bsddb
/usr/lib/python2.4/test/test_bsddb185.py
/usr/lib/python2.4/test/test_bsddb3.py
/usr/lib/python2.4/test/test_bsddb.py
/usr/lib/python2.4/test/test_bsddb.pyc
/usr/lib/python2.4/test/test_bsddb185.pyc
/usr/lib/python2.4/test/test_bsddb3.pyc
/usr/lib/python2.4/test/test_bsddb.pyo
/usr/lib/python2.4/test/test_bsddb185.pyo
/usr/lib/python2.4/test/test_bsddb3.pyo
[snip]
...


when importing bsddb, it actually looking for a _bsddb.so file, but:

Code:

$ ls /usr/lib64/python2.4/lib-dynload/
array.so            datetime.so         _random.so
audioop.so          dbm_failed.so       readline.so
binascii.so         fcntl.so            regex.so
_bisect.so          gdbm.so             resource.so
bz2.so              grp.so              select.so
cmath.so            _heapq.so           sha.so
_codecs_cn.so       _hotshot.so         _socket.so
_codecs_hk.so       itertools.so        _ssl.so
_codecs_iso2022.so  linuxaudiodev.so    strop.so
_codecs_jp.so       _locale.so          struct.so
_codecs_kr.so       math.so             syslog.so
_codecs_tw.so       md5.so              termios.so
collections.so      mmap.so             _testcapi.so
cPickle.so          _multibytecodec.so  time.so
crypt.so            nis.so              timing.so
cStringIO.so        operator.so         unicodedata.so
_csv.so             ossaudiodev.so      _weakref.so
_curses_panel.so    parser.so           zlib.so
_curses.so          pyexpat.so


There's no _bsddb.so

Anyone has any clue? TIA :)
_________________
- http://blog.nkbit.com
- http://twitter.com/xuyihua
Back to top
View user's profile Send private message
EricHsu
Moderator
Moderator


Joined: 03 May 2004
Posts: 590
Location: Aragon Consulting Group, Beijing, China

PostPosted: Tue Jul 03, 2007 2:52 pm    Post subject: Reply with quote

OK, some one has posted this bug report :)
_________________
- http://blog.nkbit.com
- http://twitter.com/xuyihua
Back to top
View user's profile Send private message
lostboy1
n00b
n00b


Joined: 03 Sep 2003
Posts: 12
Location: Chicago, IL

PostPosted: Wed Jul 11, 2007 4:23 pm    Post subject: Possible workaround Reply with quote

This appears to occur when building python against >=sys-libs/db-4.5. Python
appears to build the lib correctly with sys-libs/db-4.3 and sys-libs/db-4.4.
_________________
AMD Athlon64 3400+ -- Asus K8V SE Deluxe
HP9000 819/K200
Back to top
View user's profile Send private message
chuckdiepflanze
n00b
n00b


Joined: 13 Sep 2007
Posts: 3

PostPosted: Sat Nov 03, 2007 5:11 am    Post subject: Reply with quote

Same error with gramps here - has anybody found a solution?
Back to top
View user's profile Send private message
grimm26
Apprentice
Apprentice


Joined: 23 May 2004
Posts: 295
Location: Chicagoland, IL

PostPosted: Mon Feb 11, 2008 9:39 pm    Post subject: Reply with quote

Yeah, emerge db < 4.5 and then rebuild python.
_________________
"Blessed is he who finds happiness in his own foolishness, for he will always be happy".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum