[pybsddb] How to install bsdbb?

Jesus Cea jcea at jcea.es
Tue Oct 26 15:54:16 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 25/10/10 23:35, lasizoillo wrote:
>> Socket support seems to work ok but I can't figure out how to get bsddb
>> support.
[...]
> This mailing list is about bsddb3 module, but maybe you are lucky and
> someone uses opensolaris here.
> 
> You can do a dirty (very very dirty) hack monkey patching bsddb module
> with bsddb3. But you don't want, isn't?

"bsddb" is distributed with python, in the standard lib. If it is not,
it is a package bug.

To import bsddb3 instead of bsddb, the easy approach would be something
like:

*BEFORE* importing the module trying to use "bsddb":

"""
import bsddb3
import sys
sys.modules["bsddb"]=sys.modules["bsddb3"]
"""

Now, import the problematic module.

- -- 
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea at jabber.org         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBTMbdiJlgi5GaxT1NAQJrIwP+O9+7hrC1RvlT43PLJccSUNK/vQD32SXw
oCug2VODI1tWfVgoRHGJMZDAn4+qb1WO9uxv7ubDwn8VKyQOSB0ZDbgb2VTWiYAU
UkPfkD8Pv5CIs+nSddYuDKGNav2ojjj13kiurZW3CDz5lLPRZfNEblB5IVhXeGP4
GDga5braj0c=
=7QxQ
-----END PGP SIGNATURE-----


More information about the pybsddb mailing list