Re: [Zope] Win32 Zope Instance
(keep on the list) Gál László wrote:
Well, try installing Zope 2.7.0 on that machine ;-)
Not a good idea. As I said my task is to create a zope instance running from cd-rom *without* installation.
Urm, yeah, well, you'll need ot Zope source and binary code to be able to execute the Zope source and binary code ;-) You're currently trying to drive a car with fuel and no car ;-) You need to build an image which contains a Zope 2.7.0 install, and a Zope 2.7.0 instance home which uses that install, and make damn sure neither does anything to write to disk... cheers, Chris
You're currently trying to drive a car with fuel and no car ;-)
I definetly have got a car and fuel: /instance -- this is my instance /zope -- this is a copy from an installed zope 2.7.0 with all the sources and binaries setting env variables to here. And more or less the problem was solved by setting PYTHONCASEOK to 0 Further tracebacks are coming tomorrow :) Lac -- Europe now without walls - who needs Gates? http://latz.linsze.hu
/instance -- this is my instance /zope -- this is a copy from an installed zope 2.7.0 with all the Problem is (in another way, but) solved! Here are the experiences:
I never be able to run zope directly from CD-rom, because in iso9960 the max directory depth is restricted to 6. (zope/lib/python/Products has some product like PluginIndexes, that has deeper structure). mkisofs (was used from linux on a win instance, tried to move from native windows to vmware running on linux) trunclated them so I do had empty dirs :)) The another problem was the case sensitiveness. zip under linux had messed up the file names on a vfat partition, while zip under win has preserved it :)) But it can be solved with setting PYTHONCASEOK to 0. So, the solution: 1. I installed zope (2.7.0) to my computer, choosing to split server and instance 2. I put server (which was under C:\Program Files) and instance into one directory 3. I corrected the paths (SOFTWARE_HOME, etc) in instance\bin\runzopes.bat and instance\etc\zope.conf. I also put '@set PYTHONCASEOK=0' to runzope.bat (just to make sure :)) 4. I zipped zope instance (and server) with winzip, 5. Unzipping this to the same directory on another compöuter, it works! So the cd-rom should contain this zip file and a script to unzip it (or a self-extractor, wow :) ) I can make a howto on this if you are interested. Lac
Gál László wrote:
/instance -- this is my instance /zope -- this is a copy from an installed zope 2.7.0 with all the Problem is (in another way, but) solved! Here are the experiences:
I never be able to run zope directly from CD-rom, because in iso9960 the max directory depth is restricted to 6.
Oh, didn't know that :-S Really? You sure? Seems odd...
So, the solution:
1. I installed zope (2.7.0) to my computer, choosing to split server and instance 2. I put server (which was under C:\Program Files) and instance into one directory 3. I corrected the paths (SOFTWARE_HOME, etc) in instance\bin\runzopes.bat and instance\etc\zope.conf. I also put '@set PYTHONCASEOK=0' to runzope.bat (just to make sure :)) 4. I zipped zope instance (and server) with winzip,
5. Unzipping this to the same directory on another compöuter, it works!
Indeed.
So the cd-rom should contain this zip file and a script to unzip it (or a self-extractor, wow :) )
I'm suprised the zip step is necessary. PluginIndexes is Andreas' fault, beat him with a stick for having such a deeply nested directory structure ;-)
I can make a howto on this if you are interested.
That would be cool :-) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (2)
-
Chris Withers -
Gál László