[Zope] - ZServer and RedHat

Michel Pelletier michel@digicool.com
Tue, 26 Jan 1999 12:38:20 -0500


Amos,

I spent a good bit of this morning playing with ZServer on my RedHat 5.2
machine.
The good news is it's working and it's fast, but there are some trickies
that
should be noted.

I edited the start.py file to use the python that came with RH.  That
didn't work
because the default Python for RH stupidly doesn't have threads enabled.

So... I edited the start.py again to use the Python that comes with the
linux binary distribution of Zope, and that bombs because we don't ship
the FCNTL module with our Python, which medusa uses (in
medusa/asyncore.py).

So... I d/led, compiled and installed my own Python (1.5.1 and
overwriting
the RH one).  For those of you out there who want to do this but aren't
down
on compiling things, I used this sequence:

./configure --prefix=/usr --with-threads
make
make install (<- probably have to be root)

...and then re-edited the start.py file to go back to the (new) system
python.
Everything started up fine, but when I tried to hit the HTTP server
I got an
'unhandled exception in thread' error, cPickle choked on reading the
Zope
database file.  Brian said this is because I installed ZServer *over* an
existing
Zope, and that the python that comes with Zope uses a different cPickle
format.
The solution is either to recompile my new Python (again) with the
different
cPickle format enabled, or to delete my database files and let Zope make
new
ones, using the new format.  I chose the latter.  Moving 'var/Data.bbb*'
into
an old directory, firing up ZServer/start, and it worked!

Now I'm going to play with FTP. :)

Michel