[Zope3-Users] Installing Zope3 on Redhat AS 4 has make check problems

2005-11-28 Thread pms2111
Hi,

I am new to Zope and am having problems installing it on a fresh Red
Had Linux AS 4 machine. In summary, Zope3 seems to compile without
error (and the daemon can even get started), but make check
causes errors to occur on the ZEO tests. Something about No child
processes. It also fails on zdaemon.tests.testzdrun.ZDaemonTests.
I am not running as root.

Since this linux distribution uses Python 2.3.4 as the default, I
downloaded and compiled Python 2.4.1. The new python interpreter
was make altinstall into /usr/bin/python2.4 as to not clobber the
original /usr/bin/python which Red Hat utils seem to be dependent
upon.

Here is some background on my system:

$ whoami
psun
$ uname -a
Linux plato 2.6.9-22.0.1.EL #1 Tue Oct 18 18:29:40 EDT 2005 i686
i686 i386 GNU/Linux
$ /usr/bin/python2.4
Python 2.4.1 (#1, Nov 28 2005, 18:39:16)
[GCC 3.4.4 20050721 (Red Hat 3.4.4-2)] on linux2
Type help, copyright, credits or license for more
information.


The following is an abridged transcript of the steps I used to try
and install Zope3:

$ tar -zxf Zope-3.1.0.tgz
$ cd Zope-3.1.0
$ ./configure --with-python /usr/bin/python2.4

Configuring Zope installation

Using Python interpreter at /usr/bin/python2.4
$ make
/usr/bin/python2.4 install.py -q build
$ make check
/usr/bin/python2.4 install.py -q build
/usr/bin/python2.4 test.py -v
Running UNIT tests at level 1
Running UNIT tests from
/home/psun/src/Zope-3.1.0/build/lib.linux-i686-2.4
...[many many dots]...
Error in test checkReadOnlyStorage
(ZEO.tests.testConnection.FileStorageReconnectionTests)
Traceback (most recent call last):
  File /usr/lib/python2.4/unittest.py, line 270, in run
self.tearDown()
  File
/home/psun/src/Zope-3.1.0/build/lib.linux-i686-2.4/ZEO/tests/ConnectionTests.py,
line 122, in tearDown
os.waitpid(pid, 0)
OSError: [Errno 10] No child processes


Error in test checkReconnectFallback
(ZEO.tests.testConnection.FileStorageReconnectionTests)
Traceback (most recent call last):
  File /usr/lib/python2.4/unittest.py, line 270, in run
self.tearDown()
  File
/home/psun/src/Zope-3.1.0/build/lib.linux-i686-2.4/ZEO/tests/ConnectionTests.py,
line 122, in tearDown
os.waitpid(pid, 0)
OSError: [Errno 10] No child processes

[Many more errors in originating from ZEO/tests/* files omitted]
.

Failure in test testRunIgnoresParentSignals
(zdaemon.tests.testzdrun.ZDaemonTests)
Traceback (most recent call last):
  File /usr/lib/python2.4/unittest.py, line 260, in run
testMethod()
  File
/home/psun/src/Zope-3.1.0/build/lib.linux-i686-2.4/zdaemon/tests/testzdrun.py,
line 237, in testRunIgnoresParentSignals
self.assert_(is_started, spawned process failed to start in a
minute)
  File /usr/lib/python2.4/unittest.py, line 309, in failUnless
if not expr: raise self.failureException, msg
AssertionError: spawned process failed to start in a minute

...

Ran 6991 tests in 311.657s

FAILED (failures=1, errors=18)
make: *** [check] Error 1


However, the daemon seems to run OK, and I can connect to
http://localhost:8080.

Can anyone help me with this? I have been racking my brains for
hours trying to figure this out.

Thanks!

--Peter Sun



___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Installing Zope3 on Redhat AS 4 has make check problems

2005-11-28 Thread Peter Sun
Ahh.. .. I'm so sorry that I did not check that mail archive. Thanks for 
taking the time to reply and point me in the right direction.  Their 
discussion is right on point.

--Peter Sun




- Original Message - 
From: Tim Peters [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: zope3-users@zope.org
Sent: Monday, November 28, 2005 11:46 PM
Subject: Re: [Zope3-Users] Installing Zope3 on Redhat AS 4 has make check 
problems


[EMAIL PROTECTED]
 I am new to Zope and am having problems installing it on a fresh Red
 Had Linux AS 4 machine. In summary, Zope3 seems to compile without
 error (and the daemon can even get started), but make check
 causes errors to occur on the ZEO tests. Something about No child
 processes. It also fails on zdaemon.tests.testzdrun.ZDaemonTests.
 I am not running as root.

There was a long thread about a probably-related symptom in August:

http://mail.zope.org/pipermail/zope/2005-August/161025.html

Alas, AFAICT, it was never resolved.  There are suggestions about what
to _try_ to do in the thread referenced above, but AFAICT they weren't
tried.

... 

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Installing Zope3 on Redhat AS 4 has make check problems

2005-11-28 Thread Tim Peters
[Peter Sun, about
http://mail.zope.org/pipermail/zope/2005-August/161025.html
]
 Ahh.. .. I'm so sorry that I did not check that mail archive.

Not a problem -- it was a different list, and not necessarily easy to
find that old thread.

 Thanks for taking the time to reply and point me in the right direction.  
 Their
 discussion is right on point.

Except it didn't reach a conclusion, so eventually bit you too.  If
you figure out what's really happening, please let us know!  The old
thread not only didn't resolve it, it never (IIRC) even generated a
likely theory for the waitpid() failures.

BTW, you had another test (testRunIgnoresParentSignals) fail with
spawned process failed to start in a minute.  For that one, look for
file donothing.sh and make sure its execute bit is set.  In some
combinations of Zope + Python, the execute bit on donothing.sh is
getting cleared, and then testRunIgnoresParentSignals spins its wheels
for a minute wating for donothing.sh to (despite its name wink) do
something.  donothing.sh won't exist in the next Zope3 release.
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users