[ZCM] [ZC] 2341/ 4 Reject "Error when starting Zope"

"Collector: Zope Bugs, Features, and Patches ..." <[email protected]> Fri, 20 Jul 2007 10:17:11 -0400
Newsgroups gmane.comp.web.zope.devel.collector-monitor
Message-ID <[email protected]>
Issue #2341 Update (Reject) "Error when starting Zope"
 Status Rejected, Zope/bug critical
To followup, visit:
  http://www.zope.org/Collectors/Zope/2341

==============================================================
= Reject - Entry #4 by tseaver on Jul 20, 2007 10:17 am

 Status: Pending => Rejected


________________________________________
= Comment - Entry #3 by tseaver on Jul 20, 2007 10:16 am

I note as well that the traceback shows Python 2.3, rather than 2.4::

>   File
>     "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/sax/__init__.py", line 33, in parse
>     parser.parse(source)
>   File
>     "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/sax/expatreader.py", line 107, in parse
>     xmlreader.IncrementalParser.parse(self, source)
>   File
>     "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/sax/xmlreader.py", line 123, in parse
>     self.feed(buffer)
>   File
>     "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/sax/expatreader.py", line 207, in feed
>     self._parser.Parse(data, isFinal)
>   File
>     "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/sax/expatreader.py", line 300, in start_element


You need to ensure that Zope is both compiled and run using
the same Python, which needs to be 2.4.x for Zope > 2.8.

________________________________________
= Comment - Entry #2 by tseaver on Jul 20, 2007 9:19 am

I can't reproduce this::

  $ cd /tmp
  $ wget \
    http://www.zope.org/Products/Zope/2.10.4/Zope-2.10.4-final.tgz
  $ tar xzf Zope-2.10.4-final.tgz
  $ cd Zope-2.10.4-final
  $ ./configure \
    --with-python="/home/tseaver/projects/Zope-CVS/bin/python" \
    --prefix="/tmp/z210" && make && make install
  $ cd /tmp/z210
  $ bin/mkzopeinstance.py -d /tmp/inst -u admin:123
  $ cd /tmp/inst
  $ bin/zopectl fg
  ...
  2007-07-20 15:11:17 INFO Zope Ready to handle requests

Are you sure you changed to the "instance" directory (the one you
supplied to 'mkzopeinstance.py') before running 'bin/zopectl fg'?
________________________________________
= Request - Entry #1 by dcool on Jul 19, 2007 9:22 pm

I downloaded the latest version of Zope and compiled the same as mentioned in the install.txt. Following are the steps:

./configure --prefix=/where/to/install/zope

make

make install

/where/to/install/zope/bin/mkzopeinstance.py

Gave the directory name and initial user details.

When I run ./bin/zopectl start, I get the following error:

backup:~/Desktop/Zope2 dcool$ ./bin/zopectl fg   
Traceback (most recent call last):
  File "/Users/dcool/Desktop/Zope/lib/python//Zope2/Startup/zopectl.py", line 329, in ?
    main()
  File "/Users/dcool/Desktop/Zope/lib/python//Zope2/Startup/zopectl.py", line 287, in main
    options.realize(args)
  File "/Users/dcool/Desktop/Zope/lib/python//Zope2/Startup/zopectl.py", line 95, in realize
    ZDOptions.realize(self, *args, **kw)
  File "/Users/dcool/Desktop/Zope/lib/python/zdaemon/zdoptions.py", line 273, in realize
    self.load_schema()
  File "/Users/dcool/Desktop/Zope/lib/python/zdaemon/zdoptions.py", line 321, in load_schema
    self.schema = ZConfig.loadSchema(self.schemafile)
  File "/Users/dcool/Desktop/Zope/lib/python/ZConfig/loader.py", line 31, in loadSchema
    return SchemaLoader().loadURL(url)
  File "/Users/dcool/Desktop/Zope/lib/python/ZConfig/loader.py", line 65, in loadURL
    return self.loadResource(r)
  File "/Users/dcool/Desktop/Zope/lib/python/ZConfig/loader.py", line 159, in loadResource
    schema = ZConfig.schema.parseResource(resource, self)
  File "/Users/dcool/Desktop/Zope/lib/python/ZConfig/schema.py", line 27, in parseResource
    xml.sax.parse(resource.file, parser)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/sax/__init__.py", line 33, in parse
    parser.parse(source)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xml/sax/expatreader.py", line 300, in start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "/Users/dcool/Desktop/Zope/lib/python/ZConfig/schema.py", line 99, in startElement
    getattr(self, "start_" + name)(attrs)
  File "/Users/dcool/Desktop/Zope/lib/python/ZConfig/schema.py", line 475, in start_schema
    keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
  File "/Users/dcool/Desktop/Zope/lib/python/ZConfig/schema.py", line 201, in get_sect_typeinfo
    datatype = self.get_datatype(attrs, "datatype", "null", base)
  File "/Users/dcool/Desktop/Zope/lib/python/ZConfig/schema.py", line 194, in get_datatype
    return self._registry.get(dtname)
  File "/Users/dcool/Desktop/Zope/lib/python/ZConfig/datatypes.py", line 398, in get
    t = self.search(name)
  File "/Users/dcool/Desktop/Zope/lib/python/ZConfig/datatypes.py", line 423, in search
    package = __import__(n, g, g, component)
  File "/Users/dcool/Desktop/Zope/lib/python/Zope2/Startup/datatypes.py", line 20, in ?
    from ZODB.config import ZODBDatabase
  File "/Users/dcool/Desktop/Zope/lib/python/ZODB/__init__.py", line 20, in ?
    from persistent import TimeStamp
  File "/Users/dcool/Desktop/Zope/lib/python/persistent/__init__.py", line 19, in ?
    from cPersistence import Persistent, GHOST, UPTODATE, CHANGED, STICKY
ImportError: No module named cPersistence
==============================================================