| View previous topic :: View next topic |
| Author |
Message |
bbe Apprentice

Joined: 10 Jan 2005 Posts: 158 Location: UK
|
Posted: Tue Jun 19, 2007 12:35 pm Post subject: gramps fails with missing _bsddb python module |
|
|
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 |
|
 |
bbe Apprentice

Joined: 10 Jan 2005 Posts: 158 Location: UK
|
Posted: Sat Jun 23, 2007 3:35 pm Post subject: |
|
|
| bump... anyone? |
|
| Back to top |
|
 |
EricHsu Moderator


Joined: 03 May 2004 Posts: 590 Location: Aragon Consulting Group, Beijing, China
|
Posted: Tue Jul 03, 2007 3:23 am Post subject: |
|
|
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 |
|
 |
EricHsu Moderator


Joined: 03 May 2004 Posts: 590 Location: Aragon Consulting Group, Beijing, China
|
|
| Back to top |
|
 |
lostboy1 n00b


Joined: 03 Sep 2003 Posts: 12 Location: Chicago, IL
|
Posted: Wed Jul 11, 2007 4:23 pm Post subject: Possible workaround |
|
|
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 |
|
 |
chuckdiepflanze n00b

Joined: 13 Sep 2007 Posts: 3
|
Posted: Sat Nov 03, 2007 5:11 am Post subject: |
|
|
| Same error with gramps here - has anybody found a solution? |
|
| Back to top |
|
 |
grimm26 Apprentice


Joined: 23 May 2004 Posts: 295 Location: Chicagoland, IL
|
Posted: Mon Feb 11, 2008 9:39 pm Post subject: |
|
|
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 |
|
 |
|