[Zope3-dev] Failing tests
Barry Warsaw
barry@python.org
Fri, 23 May 2003 09:13:11 -0400
On Friday, May 23, 2003, at 08:11 AM, Sidnei da Silva wrote:
>>>> import bsddb
>>>> bsddb.db.version()
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> AttributeError: 'module' object has no attribute 'db'
>>>> dir(bsddb)
> ['__doc__', '__file__', '__name__', 'btopen', 'error', 'hashopen',
> 'rnopen']
>>>> import bsddb3
>>>> dir(bsddb3)
> ['_DBWithCursor', '__builtins__', '__doc__', '__file__', '__name__',
> '__path__', '__version__', '_checkflag', '_db', 'btopen', 'error',
> 'hashopen', 'rnopen']
>>>> bsddb3._db.__version__
> '3.3.0'
>>>> bsddb3.__version__
> '3.3.0'
>
> Just for the records, I have the following packages installed:
> Package: libdb4.1
> Version: 4.1.25-4
You've got the right version of BerkeleyDB, but you should upgrade your
version of PyBSDDB (i.e. bsddb3). Go to pybsddb.sf.net and grab the
latest distutils package. Install it, and you should be good to go.
-Barry