[Zope] ZODB install time error

P. Nagaraj pn at tifr.res.in
Wed Aug 16 07:59:55 EDT 2006


Hi Diether,

On Tue, 15 Aug 2006, Dieter Maurer wrote:

> P. Nagaraj wrote at 2006-8-14 22:56 +0530:
>> ...
>> I executed the "python setup.py build". And then when I execute the
>> "python test.py", I get these kind of errors, many of them
>>
>> //==
>> Error in test checkReconnectReadOnly
>> (ZEO.tests.testConnection.FileStorageReconnectionTests)
>> Traceback (most recent call last):
>>   File "build/lib.linux-i686-2.3/ZEO/tests/ConnectionTests.py", line 122,
>> in tearDown
>>     os.waitpid(pid, 0)
>> OSError: [Errno 10] No child processes
>> ==//
>
> The "waitpid" call should get rid of so called "Zombie" processes
> (a died child process -- not yet acknowledged by the parent).
>
> If for some reason the server could not be created in the first
> place, then there will be no dead child to reap off.
>
> Furthermore, some *nixes allow to call for automatic
> child reaping *AND* may propagate this option automatically
> to child processes. In those cases, "waitpid" may non deterministically
> fail (if the OS was quicker to reap the child).
>
> I would put a "try: ... except OSError: pass" around the "waitpid".
> If there is no child (that's the error you are told about), then
> there is no Zombie and no need for "waitpid".
>

Your suggestion worked. But one error came up.

[ZODB3-3.4.0]# python test.py
Running tests from build/lib.linux-i686-2.3
Running unit tests:


Error in test testUmask (zdaemon.tests.testzdrun.ZDaemonTests)
Traceback (most recent call last):
   File "build/lib.linux-i686-2.3/zdaemon/tests/testzdrun.py", line 75, in 
tearDown
     self.assertEqual(self.expect, output)
   File "/var/tmp/python2.3-2.3.5-root/usr/lib/python2.3/unittest.py", line 
302, in failUnlessEqual
     raise self.failureException, \
AssertionError: '' != '\n\nFailure in test testUmask 
(zdaemon.tests.testzdrun.ZDaemonTests)\nTraceback (most recent call 
last):\n  File "build/lib.linux-i686-2.3/zdaemon/tests/testzdrun.py", line 
260, in testUmask\n    self.assert_(not os.access(path, os.W_OK))\n  File 
"/var/tmp/python2.3-2.3.5-root/usr/lib/python2.3/unittest.py", line 278, 
in failUnless\n    if not expr: raise self.failureException, 
msg\nAssertionError\n\n'

   Ran 2173 tests with 1 failures and 1 errors in 160.065 seconds.
--//

In the error message there is reference to 
/var/tmp/python2.3-2.3.5-root/usr/lib/python2.3/unittest.py.
But I have this: /usr/lib/python2.3/unittest.py
Do I have to modify something to remove that error?

Thanks for help, again.
Regards,
Nagaraj



-- 

+----------------------------------+--------------------------------------+
Nagaraj Panyam                     | Office tel: +91-22-22782610
Dept of High Energy Physics        | Office fax: +91-22-22804610 
Tata Instt. of Fundamental Research| Home  tel : +91-22-22804936 
Mumbai - 400 005, INDIA            | **Email** : pn at tifr.res.in 
+----------------------------------+--------------------------------------+


More information about the Zope mailing list