[Zope-dev] A-A-P and Zope 2.7 issues

PieterB PieterB <pieterb@gewis.nl>
Fri, 20 Jun 2003 03:28:10 +0200 (CEST)


Hi,

I created a first draft cut of a A-A-P file for Zope/Python and
Zope products. I think of using it for creating a zopetest "product"
and a new FreeBSD zopetest port (a Makefile that uses 'aap' and can
be used to create several zopeinstances with several sets of products.
I also would like to write some scripts which can be used to do
functional/performance tests (on the various Zope/Python versions
on various platforms).  I think that would really be usefull for
the Zope continuous integration process.

The current script (invoke with 'aap') downloads Python 2.2.3 and
PyXML, builds and tests Python, gets Zope from CVS and configures
Zope.

Have a look at: http://gewis.nl/~pieterb/zope/zopetest/main.aap-v0.01.txt
and rename it to main.aap.

Some Zopeissues I ran into:

---------------------------------------------------
As a followup to: http://collector.zope.org/Zope/952
When you specify a python using --with-python you don't get warned
about whether you use a non-optimal python or not.  Maybe it's also
good to mention the user that he/she IS using the optimal python
version, when he/she does so.

--------------------------------------------------
Please rename the makefile to Makefile


---------------------------------------------------

zopectl has a hardcoded PYTHON variable set to:

	PYTHON="/usr/local/bin/python"

shouldn't it use the --with-python version?

-------------------------------------------------------

ZConfig requires PyXML. Default Python doesn't provide it.
Both zopectl using Python 2.2.2 and Python 2.2.3 give the following 
traceback:

./zopectl start
Traceback (most recent call last):
  File "/tmp/zope/lib/python/Zope/Startup/zopectl.py", line 148, in ?
    main()
  File "/tmp/zope/lib/python/Zope/Startup/zopectl.py", line 131, in main
    options.realize(args)
  File "/tmp/zope/lib/python/Zope/Startup/zopectl.py", line 80, in
realize
    ZDOptions.realize(self, *args, **kw)
  File "/tmp/zope/lib/python/zdaemon/zdoptions.py", line 257, in realize
    self.load_schema()
  File "/tmp/zope/lib/python/zdaemon/zdoptions.py", line 298, in
load_schema
    self.schema = ZConfig.loadSchema(self.schemafile)
  File "/tmp/zope/lib/python/ZConfig/loader.py", line 36, in loadSchema
    return SchemaLoader().loadURL(url)
  File "/tmp/zope/lib/python/ZConfig/loader.py", line 70, in loadURL
    return self.loadResource(r)
  File "/tmp/zope/lib/python/ZConfig/loader.py", line 134, in
loadResource
    self.registry, self)
  File "/tmp/zope/lib/python/ZConfig/schema.py", line 42, in
parseResource
    xml.sax.parse(resource.file, parser)
  File "/usr/local/lib/python2.2/xml/sax/__init__.py", line 30, in parse
    parser = make_parser()
  File "/usr/local/lib/python2.2/xml/sax/__init__.py", line 93, in
make_parser
    raise SAXReaderNotAvailable("No parsers found", None)
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found

Shouldn't ./configure already check this? 

------------------------------------------------------------------

The doc/INSTALL.txt states:

	The Python you run Zope with *must* have threads compiled
	in, which is the case for a vanilla build.  Warning: Zope
	will not run with a Python version that uses libpth.  You
	*must* use libpthread.

Can this be checked when running ./configure?