Subject: HELP with zope
To: None <netbsd-help@NetBSD.org>
From: Paul Newhouse <newhouse@rockhead.com>
List: netbsd-help
Date: 03/20/2007 08:21:08
I installed zope3.  When I run zopetest I get:

   # zopetest
   Running unit tests:
   
   
   Error in test testUmask (zdaemon.tests.testzdrun.ZDaemonTests)
   Traceback (most recent call last):
     File "/usr/pkg/lib/python2.4/unittest.py", line 270, in run
       self.tearDown()
     File "/usr/pkg/share/zope3/lib/python/zdaemon/tests/testzdrun.py", line 76, in tearDown
       self.assertEqual(self.expect, output)
     File "/usr/pkg/lib/python2.4/unittest.py", line 333, in failUnlessEqual
       raise self.failureException, \
   AssertionError: '' != '\n\nFailure in test testUmask (zdaemon.tests.testzdrun.ZDaemonTests)\nTraceback (most recent call last):\n  File "/usr/pkg/lib/python2.4/unittest.py", line 260, in run\n    testMethod()\n  File "/usr/pkg/share/zope3/lib/python/zdaemon/tests/testzdrun.py", line 271, in testUmask\n    self.fail("""\n  File "/usr/pkg/lib/python2.4/unittest.py", line 301, in fail\n    raise self.failureException, msg\nAssertionError: \nI am root!\nDo not run the tests as root.\nTesting proper umask handling cannot be done as root.\nFurthermore, it is not a good idea and strongly discouraged to run zope, the \nbuild system (configure, make) or the tests as root.\nIn general do not run anything as root unless absolutely necessary.\n\n\n'
   
   
   
   Error in test testManyClients (zope.server.http.tests.test_httpserver.Tests)
   Traceback (most recent call last):
     File "/usr/pkg/lib/python2.4/unittest.py", line 260, in run
       testMethod()
     File "/usr/pkg/share/zope3/lib/python/zope/server/http/tests/test_httpserver.py", line 243, in testManyClients
     File "/usr/pkg/lib/python2.4/httplib.py", line 804, in request
     File "/usr/pkg/lib/python2.4/httplib.py", line 827, in _send_request
     File "/usr/pkg/lib/python2.4/httplib.py", line 798, in endheaders
     File "/usr/pkg/lib/python2.4/httplib.py", line 679, in _send_output
     File "/usr/pkg/lib/python2.4/httplib.py", line 646, in send
     File "/usr/pkg/lib/python2.4/httplib.py", line 630, in connect
   error: (24, 'Too many open files')
   
     Ran 8121 tests with 1 failures and 2 errors in 561.978 seconds.

Do I have a bad python2.4 install?  How many files does it need?

TIA,
Paul