Fresh 5.0.7 install fails to work on OSX

The last week I've been installing Plone 5.0.6 and 5.0.7 on my OSX system with the unified installer without problems.
I use homebrew to install python.
Everything went fine until yesterday when a fresh install fails with the following error:

$ bin/plonectl fg
instance: Traceback (most recent call last):
  File "/Users/mjm/Zcratch/instance/zinstance/bin/instance", line 264, in <module>
    + sys.argv[1:]))
  File "/Users/mjm/Zcratch/instance/buildout-cache/eggs/plone.recipe.zope2instance-4.2.22-py2.7.egg/plone/recipe/zope2instance/ctl.py", line 610, in main
    options.realize(args, doc=__doc__)
  File "/Users/mjm/Zcratch/instance/buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/Zope2/Startup/zopectl.py", line 162, in realize
    ZDOptions.realize(self, *args, **kw)
  File "/Users/mjm/Zcratch/instance/buildout-cache/eggs/zdaemon-2.0.7-py2.7.egg/zdaemon/zdoptions.py", line 290, in realize
    self.load_schema()
  File "/Users/mjm/Zcratch/instance/buildout-cache/eggs/zdaemon-2.0.7-py2.7.egg/zdaemon/zdoptions.py", line 338, in load_schema
    self.schema = ZConfig.loadSchema(self.schemafile)
  File "/Users/mjm/Zcratch/instance/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/loader.py", line 33, in loadSchema
    return SchemaLoader().loadURL(url)
  File "/Users/mjm/Zcratch/instance/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/loader.py", line 67, in loadURL
    return self.loadResource(r)
  File "/Users/mjm/Zcratch/instance/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/loader.py", line 195, in loadResource
    schema = ZConfig.schema.parseResource(resource, self)
  File "/Users/mjm/Zcratch/instance/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/schema.py", line 27, in parseResource
    xml.sax.parse(resource.file, parser)
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/__init__.py", line 33, in parse
    parser.parse(source)
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/expatreader.py", line 110, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/expatreader.py", line 213, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/expatreader.py", line 317, in start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "/Users/mjm/Zcratch/instance/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/schema.py", line 103, in startElement
    getattr(self, "start_" + name)(attrs)
  File "/Users/mjm/Zcratch/instance/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/schema.py", line 306, in start_import
    src = self._loader.schemaComponentSource(pkg, file)
  File "/Users/mjm/Zcratch/instance/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/loader.py", line 217, in schemaComponentSource
    package=package)
ZConfig.SchemaResourceError: could not load package ZServer: No module named common.interfaces
  Package name: 'ZServer'
  File name: 'component.xml'
  Package path: None

I have reinstalled python, redownloaded the Plone installer. All to no avail. Even tried on another OSX system: same error.
Any ideas? TIA

Marcel

Hi Marcel,

I can't help, but co-incidentally I have been trying to install 5.0.7 on an Ubuntu Trusty (14.04) server today, with exactly the same results, so whatever the issue is I don't think that its particular to OSX. The same server has 5.0.6 instances installed from that version's binary installer, FWIW.

I've run out of time just now, but if I find a solution I will report it here.

--

Cheers,

PhilK

1 Like

@mjmare @glimmung I can confirm I received the same error trying to install Plone 5.0.7 on my other Ubuntu 16.0.4.2 droplet on DigitalOcean during the weekend (already installed it successfully on one droplet).

I've installed Plone successfully on my macOS Sierra (10.12.3) as well, but I just created another account after seeing this thread and encountered the same error as you after installing it.

I'm glad to know I'm not the only one encountering this. I'll try to troubleshoot and see if I can find out what's causing this, but if anyone finds a solution, definitely report back!

1 Like

I also got the same error. Both on CENTOS 7 and Ubuntu 16.0.4.2 droplets at DigitalOcean.

This the error from CENTOS7.

[jpnps@centos-1gb-nyc3-01 zinstance]$ bin/plonectl fg
instance: Traceback (most recent call last):
File "/home/jpnps/pljpnps_sa/zinstance/bin/instance", line 264, in
+ sys.argv[1:]))
File "/home/jpnps/pljpnps_sa/buildout-cache/eggs/plone.recipe.zope2instance-4.2.22-py2.7.egg/plone/recipe/zope2instance/ctl.py", line 610, in main
options.realize(args, doc=doc)
File "/home/jpnps/pljpnps_sa/buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/Zope2/Startup/zopectl.py", line 162, in realize
ZDOptions.realize(self, *args, **kw)
File "/home/jpnps/pljpnps_sa/buildout-cache/eggs/zdaemon-2.0.7-py2.7.egg/zdaemon/zdoptions.py", line 290, in realize
self.load_schema()
File "/home/jpnps/pljpnps_sa/buildout-cache/eggs/zdaemon-2.0.7-py2.7.egg/zdaemon/zdoptions.py", line 338, in load_schema
self.schema = ZConfig.loadSchema(self.schemafile)
File "/home/jpnps/pljpnps_sa/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/loader.py", line 33, in loadSchema
return SchemaLoader().loadURL(url)
File "/home/jpnps/pljpnps_sa/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/loader.py", line 67, in loadURL
return self.loadResource(r)
File "/home/jpnps/pljpnps_sa/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/loader.py", line 195, in loadResource
schema = ZConfig.schema.parseResource(resource, self)
File "/home/jpnps/pljpnps_sa/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/schema.py", line 27, in parseResource
xml.sax.parse(resource.file, parser)
File "/usr/lib64/python2.7/xml/sax/init.py", line 33, in parse
parser.parse(source)
File "/usr/lib64/python2.7/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib64/python2.7/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib64/python2.7/xml/sax/expatreader.py", line 210, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib64/python2.7/xml/sax/expatreader.py", line 304, in start_element
self.cont_handler.startElement(name, AttributesImpl(attrs))
File "/home/jpnps/pljpnps_sa/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/schema.py", line 103, in startElement
getattr(self, "start
" + name)(attrs)
File "/home/jpnps/pljpnps_sa/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/schema.py", line 306, in start_import
src = self._loader.schemaComponentSource(pkg, file)
File "/home/jpnps/pljpnps_sa/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/loader.py", line 217, in schemaComponentSource
package=package)
ZConfig.SchemaResourceError: could not load package ZServer: No module named common.interfaces
Package name: 'ZServer'
File name: 'component.xml'
Package path: None

Can somebody please help me and Marcel (as above).... This a fresh install..

I've gone ahead and submitted this as an issue in the Unified Installer repository at https://github.com/plone/Installers-UnifiedInstaller/issues/59

1 Like

Very strange, I was able to successfully install Plone 5.0.7 on Ubuntu 14.0.4 but it definitely failed on Ubuntu 16.04.2 (this is on Hetzner).

Traceback:

  File "/home/dbain/plone/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/loader.py", line 195, in loadResource
    schema = ZConfig.schema.parseResource(resource, self)
  File "/home/dbain/plone/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/schema.py", line 27, in parseResource
    xml.sax.parse(resource.file, parser)
  File "/usr/lib/python2.7/xml/sax/__init__.py", line 33, in parse
    parser.parse(source)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 110, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 213, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 317, in start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "/home/dbain/plone/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/schema.py", line 103, in startElement
    getattr(self, "start_" + name)(attrs)
  File "/home/dbain/plone/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/schema.py", line 309, in start_import
    self.loadComponent(src)
  File "/home/dbain/plone/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/schema.py", line 312, in loadComponent
    r = self._loader.openResource(src)
  File "/home/dbain/plone/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/loader.py", line 97, in openResource
    file = openPackageResource(package, filename)
  File "/home/dbain/plone/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/loader.py", line 166, in openPackageResource
    path=pkg.__path__)
ZConfig.SchemaResourceError: schema component not found
  Package name: 'ZConfig.components.logger'
  File name: 'handlers.xml'
  Package path: ['/home/dbain/plone/buildout-cache/eggs/ZConfig-2.9.3-py2.7.egg/ZConfig/components/logger']

it's setuptools fault; for a workaround see:

2 Likes

@hvelarde Thanks for posting the workaround! I'm on mobile, but I'll try it out later. :slight_smile:

Successfully installed on centos 7 and Ubuntu 16.04.2. I updated my setuptools. I followed https://packaging.python.org/installing/
. Thanks a lot.

Works again. Thx!