Thanks Tres and others who have commented. I discovered that my ISP-friend installed a program which replaced my Python 2.3.4 with Python 2.4. I installed a new copy of Python 2.3.4, as below. Now when I run zopectl, I get:
/usr/local/www/Zope/zope01/bin/zopectl start Error: The object named by "DBTab.ClassFactories.autoClassFactory" could not be imported (line 854 in file:///usr/local/www/Zope/zope01/etc/zope.conf) For help, use /usr/local/www/Zope/lib/python/Zope/Startup/zopectl.py -h
/usr/local/www/Zope/lib/python/Zope/Startup/zopectl.py -h /usr/local/www/Zope/lib/python/Zope/Startup/zopectl.py: permission denied Line 854 in zope.conf relates to 'mount point'.. Now what? Thanks in advance for your assistance! Ken --- Tres Seaver <tseaver@zope.com> wrote:
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
__________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail