[Zope-Coders] silly windows request

Chris McDonough chrism@zope.com
09 Oct 2002 13:13:03 -0400


On Wed, 2002-10-09 at 13:01, Guido van Rossum wrote:
> I got a bit further on Windows.
> 
> I checked in changes that fixed all the redundant CRLF line endings I
> found in your tree.

Thanks so much. ;-)

> I gave up on the configure.bat file.  I gave all the special commands
> a @ prefix (e.g. echo became @echo), which fixed the "Bad command"
> errors, but I didn't know what to do with the "for" command that also
> mystified Tim.

Yes, I officially give up trying to make portable batch files.

> So instead I ran inst\configure.py as recommended.  Each tool gave me

Woo hoo!

> instructions on what to do, and this generally worked.  I picked
> C:\zope as my zope home as well as instance home.  The last command
> that completed successfully was make_instance.py.  This told me to run
> C:\zope\bin\zctl.py, but when I run that, I get
> 
> ImportError: No module named Controller
> 
> What could I have done wrong?  (It doesn't seem to make a difference
> what arguments I give to zctl.py.)

What values are in zctl.py for the following module-level variables:

CONFIG_LOCATION
ZOPE_HOME
SOFTWARE_HOME

The error is indicative of zctl.py inserting an incorrect path to the
Zope software into sys.path which can only mean that it's got the wrong
SOFTWARE_HOME value.  SOFTWARE_HOME is written into the zctl.py file out
of a "templatized" zctl.py.in, so this might not be working properly. As
I look at it, this might be due to unquoted '\' characters in the
ZOPE_HOME value under Windows.

- C