ZopeSandBox and zope-error
Hello, I created a Zope sandbox based on the script of Sidnei http://cvs.zope.org/NZO_SiteLayout/buildout_zope_sandbox?cvsroot=Zope.org I've tested with Python 2.3b1 and Zope 2.7 (using CVS-head). I also created a Makefile which can be easily used for making, cleaning-up and starting/stopping Zope. The scripts are available at http://gewis.nl/~pieterb/zope/zopesandbox (work-in-progress). It would be great to have a (modular) create_sandbox script which would work on all (Unix) platforms and where you can easiliy select which version of the various products you want to use. When starting/stopping Zope I get the following error: bin/zopectl stop /home/pieterb/ZopeSandBox/opt/Zope-head/lib/python/ ZServer/medusa/test/max_sockets.py:53: DeprecationWarning: integer argument expected, got float for i in range(1 + len(sl) * 0.05): which can be easility fixed: for i in range(int((1 + len(sl) * 0.05))): After fixing that I get the following error when I start Zope: /home/pieterb/ZopeSandBox/opt/Zope-head/lib/python/App/Product.py:37: DeprecationWarning: the rotor module uses an insecure algorithm and is deprecated import os, re, zlib, marshal, rotor, cPickle This seems harder to fix. I also tried adding a Plone site, but that gives an "Action cancelled" error in the browser (and I don't see any logging of the problem). I'll also tried with Python 2.2.2, but that also fails... Some questions: - Will Python 2.3 be supported for Zope 2.7/Zope 3? - Should I use the HEAD or the 2.7-dev-branche for Zope 2.7? (please document this in the 2.7 Wiki). - Would others try the scrips on their platform (and possibly improve it) PieterB
PieterB wrote:
Hello,
I created a Zope sandbox based on the script of Sidnei http://cvs.zope.org/NZO_SiteLayout/buildout_zope_sandbox?cvsroot=Zope.org I've tested with Python 2.3b1 and Zope 2.7 (using CVS-head). I also created a Makefile which can be easily used for making, cleaning-up and starting/stopping Zope. The scripts are available at http://gewis.nl/~pieterb/zope/zopesandbox (work-in-progress).
It would be great to have a (modular) create_sandbox script which would work on all (Unix) platforms and where you can easiliy select which version of the various products you want to use.
Eh. It was a secret, but now that you mentioned it I will need to reveal. I spent the whole day yesterday figuring out a way to use kernel's 'make menuconfig' to build custom instances of Zope. I have it barely working, and will certainly need help for creating the Makefile with the output of 'make menuconfig' (which is a file with some variables set, like 'CONFIG_ZOPE_26=y'). Ill put it in CVS later today, and lets see how far we go.
When starting/stopping Zope I get the following error:
bin/zopectl stop /home/pieterb/ZopeSandBox/opt/Zope-head/lib/python/ ZServer/medusa/test/max_sockets.py:53: DeprecationWarning: integer argument expected, got float for i in range(1 + len(sl) * 0.05):
which can be easility fixed:
for i in range(int((1 + len(sl) * 0.05))):
After fixing that I get the following error when I start Zope:
/home/pieterb/ZopeSandBox/opt/Zope-head/lib/python/App/Product.py:37: DeprecationWarning: the rotor module uses an insecure algorithm and is deprecated import os, re, zlib, marshal, rotor, cPickle
This seems harder to fix.
AFAIK, you can ignore this. Its just a warning that the library may not be available in the future and recommendation to use something else that does the same job.
I also tried adding a Plone site, but that gives an "Action cancelled" error in the browser (and I don't see any logging of the problem). I'll also tried with Python 2.2.2, but that also fails...
Interesting. I have quite a few plone sites running on zope-head+python2.2.
Some questions: - Will Python 2.3 be supported for Zope 2.7/Zope 3? - Should I use the HEAD or the 2.7-dev-branche for Zope 2.7? (please document this in the 2.7 Wiki).
I dont think theres a 2.7 branch at this point.
- Would others try the scrips on their platform (and possibly improve it)
Of course. Just FWIW, it works in debian-powerpc. :P -- Sidnei da Silva sidnei@x3ng.com
On Sun, May 18, 2003 at 08:02:08AM -0300, Sidnei da Silva wrote: | >It would be great to have a (modular) create_sandbox script which | >would work on all (Unix) platforms and where you can easiliy select | >which version of the various products you want to use. | | Eh. It was a secret, but now that you mentioned it I will need to | reveal. I spent the whole day yesterday figuring out a way to use | kernel's 'make menuconfig' to build custom instances of Zope. I have it | barely working, and will certainly need help for creating the Makefile | with the output of 'make menuconfig' (which is a file with some | variables set, like 'CONFIG_ZOPE_26=y'). Ill put it in CVS later today, | and lets see how far we go. Here it is: http://cvs.sf.net/cgi-bin/viewcvs.cgi/collective/build_sandbox/ Im a bit of a newbie with all this Makefile thing, so, if you find any problem... well, you probably know enough to fix it :) []'s -- Sidnei da Silva (dreamcatcher) <sidnei@x3ng.com.br> X3ng Web Technology <http://www.x3ng.com.br> GNU/Linux user 257852 Debian GNU/Linux 3.0 (Sid) 2.4.18 ppc I *____knew* I had some reason for not logging you off... If I could just remember what it was.
Sidnei da Silva wrote:
Here it is: http://cvs.sf.net/cgi-bin/viewcvs.cgi/collective/build_sandbox/ I've given it a try.
Im a bit of a newbie with all this Makefile thing, so, if you find any problem... well, you probably know enough to fix it :) Me, too. I didn't get it to work on FreeBSD, may be later this week...
Some remarks: - The README mentions using ./autogen.sh. The file is not included, and I didn't needed it (I think). - The current build requires AutoMake 1.4. Shouldn't we use Automake 1.5? (anybody knows the difference). Unfortuately, I can't get the Makefile to do anything usefull at this moment. - Change the name "NZO Configuration" to "Zope Installer v0.1". I think we should ship the NZO configuration as profile.zope.org.default (other profiles, e.g. profile.plone.org.default or profile.demo.plone.org.default or profile.zope3.default or profile.zope27-python23.default, etc.) - The 'make menuconfig' even works on FreeBSD 4.8 (I didn't expect that ;) - I made an alternative config.in that creates a different profile.user see my files http://www.gewis.nl/~pieterb/zope/build_sandbox/ I changed the CONFIG_INSTALL_PRODUCT to CONFIG_PRODUCT_INSTALL, and have tried to make a good hierarchy. - How do I get access to the Collective CVS? (my SF-id is pieterb) PieterB
PieterB wrote:
Im a bit of a newbie with all this Makefile thing, so, if you find any problem... well, you probably know enough to fix it :)
Me, too. I didn't get it to work on FreeBSD, may be later this week...
Some remarks:
- The README mentions using ./autogen.sh. The file is not included, and I didn't needed it (I think).
Oh, right. My fault. I used autogen.sh, but when I did 'make distcheck' it includes the result of autogen.sh, but not autogen.sh itself.
- The current build requires AutoMake 1.4. Shouldn't we use Automake 1.5? (anybody knows the difference). Unfortuately, I can't get the Makefile to do anything usefull at this moment.
Dunno. AFAIK, 1.4 is the most common version (at least in Debian).
- Change the name "NZO Configuration" to "Zope Installer v0.1". I think we should ship the NZO configuration as profile.zope.org.default (other profiles, e.g. profile.plone.org.default or profile.demo.plone.org.default or profile.zope3.default or profile.zope27-python23.default, etc.)
Thats what I had in mind.
- The 'make menuconfig' even works on FreeBSD 4.8 (I didn't expect that ;)
Kewl indeed, but not as surprising as it seems. It only needs a C compiler and ncurses after all.
- I made an alternative config.in that creates a different profile.user see my files http://www.gewis.nl/~pieterb/zope/build_sandbox/ I changed the CONFIG_INSTALL_PRODUCT to CONFIG_PRODUCT_INSTALL, and have tried to make a good hierarchy.
Looks very nice, and its exactly what Im trying to achieve.
- How do I get access to the Collective CVS? (my SF-id is pieterb)
Just added you there. And guess what: your #70! I never thought the collective would get so big! -- Sidnei da Silva sidnei@x3ng.com
Some questions: - Will Python 2.3 be supported for Zope 2.7/Zope 3? Who can answer this? BTW, Is their any plan on releasing a Zope 2.7 alpha/beta? I can't find any information on the ZopeDev-wiki, and I would like to update the ZopeRoadmap at http://zwiki.org/ZopeRoadmap
- Should I use the HEAD or the 2.7-dev-branche for Zope 2.7? (please document this in the 2.7 Wiki). I dont think theres a 2.7 branch at this point. Well, I can select http://cvs.zope.org/?only_with_tag=Zope-2_7-development-branch what's the difference between that branche and the HEAD? Is the Zope-2_7-development-branch not used?
- Would others try the scrips on their platform (and possibly improve it) Of course. Just FWIW, it works in debian-powerpc. :P I'll do my best to let it play nice with FreeBSD and FreeBSD ports.
For more information on my thoughts on continuous integration and/or ZopeInstaller, please read http://mail.zope.org/pipermail/zope3-dev/2003-May/007064.html and/or http://zwiki.org/ZopeContinuousIntegration. I think Zope3 and the wiki is the best place to discuss the issue. PieterB -- http://zwiki.org/PieterB
--On Sonntag, 18. Mai 2003 15:28 Uhr +0200 PieterB <pieterb@gewis.nl> wrote:
Some questions: - Will Python 2.3 be supported for Zope 2.7/Zope 3? Who can answer this? BTW, Is their any plan on releasing a Zope 2.7 alpha/beta? I can't find any information on the ZopeDev-wiki, and I would like to update the ZopeRoadmap at http://zwiki.org/ZopeRoadmap
python 2.2 will be the recommended platform for Zope 2.7. Zope 3 requires Python 2.2 and seems to run with 2.3.
- Should I use the HEAD or the 2.7-dev-branche for Zope 2.7? (please document this in the 2.7 Wiki). I dont think theres a 2.7 branch at this point.
there is no 2.7 branch. the HEAD will become 2.7. -aj
--On Sonntag, 18. Mai 2003 15:40 Uhr +0200 Andreas Jung <andreas@andreas-jung.com> wrote:
--On Sonntag, 18. Mai 2003 15:28 Uhr +0200 PieterB <pieterb@gewis.nl> wrote:
Some questions: - Will Python 2.3 be supported for Zope 2.7/Zope 3? Who can answer this? BTW, Is their any plan on releasing a Zope 2.7 alpha/beta? I can't find any information on the ZopeDev-wiki, and I would like to update the ZopeRoadmap at http://zwiki.org/ZopeRoadmap
python 2.2 will be the recommended platform for Zope 2.7. Zope 3 requires Python 2.2 and seems to run with 2.3.
Minor addition: Zope 2.7 compiles and starts up fine with Python 2.3 but there are a bunch of unittests failing. -aj
On Sun, 2003-05-18 at 08:02, Sidnei da Silva wrote:
[...] I spent the whole day yesterday figuring out a way to use kernel's 'make menuconfig' to build custom instances of Zope. I have it barely working, and will certainly need help for creating the Makefile with the output of 'make menuconfig' (which is a file with some variables set, like 'CONFIG_ZOPE_26=y'). Ill put it in CVS later today, and lets see how far we go.
I sugest you also take a look at CML2: http://catb.org/~esr/cml2/ IIRC it's written entirely in python, whereas CML1 (which is what ESR calls the original kernel configuration system) might have some tcl/tk dependencies (I think it's only for the "make xconfig" module) along with the C dependencies you mentioned. Besides, we all know how long we've been meaning to have an Adventure front end to Zope configuration :-) http://lwn.net/2001/0621/a/kernel-adventure.php3
participants (4)
-
Andreas Jung -
Leonardo Rochael Almeida -
PieterB -
Sidnei da Silva