[Zope3-dev] Failing tests

Barry Warsaw barry@python.org
22 May 2003 18:40:18 -0400


On Thu, 2003-05-22 at 13:31, Sidnei da Silva wrote:
> Maybe im the only one seeing this, but running all the tests with
> 'make test' I get 133 errors, all of them look like:
> 
>   File "/home/sidnei/Zope3/Zope3/src/zodb/storage/base.py", line 811,
>   in env_from_string
>     db.DB_CREATE          # create underlying files as necessary
> DBNoMemoryError: (12, 'Cannot allocate memory -- mmap: Cannot allocate
> memory')
> 
> Theres anything I can do to help debugging?

What version, or do you even have, BerkeleyDB installed?  What version
of Python?  Are you running the tests with --all?

Try this:

% pythonPython 2.3b1+ (#1, May  5 2003, 11:50:40) 
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import bsddb
>>> bsddb.db.version()
(4, 1, 25)
>>> bsddb.db.__version__
'4.1.5'

If you get errors, try bsddb3 instead of bsddb.

-Barry