Ken Ara wrote:
Hi all,
Recently, I've had to restart Zope a few times from the command line. Suddenly I noticed this:
/usr/local/www/Zope/zope01/bin/zopectl stop
. . . . . . daemon process stopped
/usr/local/www/Zope/zope01/bin/zopectl start
. daemon process started, pid=55616
/usr/local/www/Zope/zope01/bin/zopectl stop
/usr/local/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom module is deprecated; please use the random module DeprecationWarning) . . . . . . daemon process stopped
/usr/local/www/Zope/zope01/bin/zopectl start
/usr/local/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom module is deprecated; please use the random module DeprecationWarning) . daemon process started, pid=9498
Checking my Control Panel, I see this:
Python Version 2.4 (#2, Dec 4 2004, 12:47:50) [GCC 2.95.4 20020320 [FreeBSD]]
where previously there hed been
Python Version 2.3.4 (#2, Sep 6 2004, 12:15:06) [GCC 2.95.4 20020320 [FreeBSD]]
Some has been in there messing with my install! (I know exacly where I was on Dec 4 2004, at 12:47:50, it must have been my ISP friend..)
Now, Zope won't pack, I've got a couple of corrupted objects and I've developed a case of the hangs... Fortunately, I have a viable Data.fs.old.
Help Mr Wizard! How do I get back my old Python?
You are probably hosed because you have been using the distribution-provided version of Python. "Don't do that." $ cd /tmp $ wget http://www.python.org/ftp/python/2.3.4/Python-2.3.4.tgz $ tar xzf Python-2.3.4.tgz $ cd Python-2.3.4 $ configure --prefix="/opt/zope" && make $ sudo make install Then edit your 'runzope' and 'zopectl' scripts (and the ZEO equivalents, if you are using ZEO) to use '/opt/zope/bin/python' (or whatever prefix you chose). Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com