[Zope] ZEO or INSTANCE_HOME Problem

seb bacon seb@jamkit.com
18 Dec 2001 14:23:47 +0000


Well, I'm never quite sure on the whys of this (perhaps someone else
could explain?) but here's my take:

PYTHONHOME is meant to point to your python libs, but it's also used to
find your Zope installation when you're using INSTANCE_HOME (AFAIK).

So what I do is, point PYTHONHOME at the zope install; and make a
symlink to the python libs somewhere there:

  ln -s /usr/local/python2.1/lib/python-2.1 /usr/local/Zope/lib/.

hth
seb

On Tue, 2001-12-18 at 14:14, Ben Ocean wrote:
> At 10:07 AM 12/18/01 +0000, you wrote:
> >your python can't find your python libraries.  set PYTHONHOME variable
> >or symlink them into your lib folder.
> 
> So, my Python distro lives here:
> /usr/lib/Python-2.1.1
> so I make this link in zctl.py:
> env['PYTHONHOME'] = '/usr/lib/Python-2.1.1/'
> or I try this:
> env['PYTHONHOME'] = '/usr/lib/Python-2.1.1/Lib'
> or this:
> env['PYTHONHOME'] = '/usr/local/lib/python2.1'
> but it doesn't work. Forgive my ignorance, but what am I doing wrong? Or, 
> if I symlink, which of the above do I symlink into, I presume, 
> Zope_software_home/lib?
> TIA,
> BenO
> 
> 
> >seb
> >
> >On Tue, 2001-12-18 at 00:10, Ben Ocean wrote:
> > > Hi;
> > > I'm building a new Zope server with ZEO and INSTANCE_HOME and I've run 
> > into
> > > this problem when trying to start it:
> > >
> > > #./zctl.py start -v
> > > Stopping ZEO pid: 4604 4605
> > > sh: kill: (4604) - No such pid
> > > sh: kill: (4605) - No such pid
> > > Starting ZEO server on 5800
> > > "/usr/local/bin/python"
> > > /home/httpd/ZopeInstallation/Zope_software_home/lib/python/ZEO/start.py -p
> > > 5800   &
> > > waiting for ZEO server to start 1/200
> > > 'import site' failed; use -v for traceback
> > > Traceback (most recent call last):
> > >    File
> > > "/home/httpd/ZopeInstallation/Zope_software_home/lib/python/ZEO/start.py",
> > > line 91, in ?
> > >      import sys, os, getopt, string
> > > ImportError: No module named os
> > >
> > > No module named os?? Huh? What have I screwed up?
> > > TIA,
> > > BenO
> > >
> > >
> > >
> > > _______________________________________________
> > > Zope maillist  -  Zope@zope.org
> > > http://lists.zope.org/mailman/listinfo/zope
> > > **   No cross posts or HTML encoding!  **
> > > (Related lists -
> > >  http://lists.zope.org/mailman/listinfo/zope-announce
> > >  http://lists.zope.org/mailman/listinfo/zope-dev )
>