Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extra eggs cause incorrect PYTHONPATH in zeoserver script #29

Open
LadyNamedLaura opened this issue Jun 4, 2018 · 0 comments
Open

extra eggs cause incorrect PYTHONPATH in zeoserver script #29

LadyNamedLaura opened this issue Jun 4, 2018 · 0 comments

Comments

@LadyNamedLaura
Copy link

[zeoserver]
recipe = plone.recipe.zeoserver
zeo-address = ${conf:zeoserver}:${conf:zeoport}
blob-storage = ${buildout:directory}/var/blobstorage
monitor-address = ${conf:zeoport_monitor}
eggs = raven

results in

#!/usr/bin/python2

import sys
sys.path[0:0] = [
  '/tmp/ugent-portaal-plone-4x/eggs/raven-6.4.0-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/plone.recipe.zeoserver-1.2.9-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/ZopeUndo-2.12.0-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/zope.mkzeoinstance-3.9.5-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/zc.recipe.egg-1.3.2-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/setuptools-33.1.1-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/zc.buildout-2.5.2-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/contextlib2-0.5.5-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/zope.interface-3.6.7-py2.7-linux-x86_64.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/zope.event-3.5.2-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/zdaemon-2.0.7-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/ZConfig-2.9.3-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/zc.lockfile-1.0.2-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/transaction-1.1.1-py2.7.egg',
  ]

import os; os.environ['PYTHONPATH'] = '/tmp/ugent-portaal-plone-4x/eggs/raven-6.4.0-py2.7.egg:/tmp/ugent-portaal-plone-4x/eggs/contextlib2-0.5.5-py2.7.egg:'



import plone.recipe.zeoserver.ctl

if __name__ == '__main__':
    sys.exit(plone.recipe.zeoserver.ctl.main(
        ["-C", '/tmp/ugent-portaal-plone-4x/parts/zeoserver/etc/zeo.conf']
        + sys.argv[1:]))

instead of

#!/usr/bin/python2

import sys
sys.path[0:0] = [
  '/tmp/ugent-portaal-plone-4x/eggs/raven-6.4.0-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/plone.recipe.zeoserver-1.2.9-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/ZopeUndo-2.12.0-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/zope.mkzeoinstance-3.9.5-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/zc.recipe.egg-1.3.2-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/setuptools-33.1.1-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/zc.buildout-2.5.2-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/zope.interface-3.6.7-py2.7-linux-x86_64.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/zope.event-3.5.2-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/zdaemon-2.0.7-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/ZConfig-2.9.3-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/zc.lockfile-1.0.2-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/transaction-1.1.1-py2.7.egg',
  '/tmp/ugent-portaal-plone-4x/eggs/contextlib2-0.5.5-py2.7.egg',
  ]

import os; os.environ['PYTHONPATH'] = '/tmp/ugent-portaal-plone-4x/eggs/raven-6.4.0-py2.7.egg:/tmp/ugent-portaal-plone-4x/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg:/tmp/ugent-portaal-plone-4x/eggs/plone.recipe.zeoserver-1.2.9-py2.7.egg:/tmp/ugent-portaal-plone-4x/eggs/ZopeUndo-2.12.0-py2.7.egg:/tmp/ugent-portaal-plone-4x/eggs/zope.mkzeoinstance-3.9.5-py2.7.egg:/tmp/ugent-portaal-plone-4x/eggs/zc.recipe.egg-1.3.2-py2.7.egg:/tmp/ugent-portaal-plone-4x/eggs/setuptools-33.1.1-py2.7.egg:/tmp/ugent-portaal-plone-4x/eggs/zc.buildout-2.5.2-py2.7.egg:/tmp/ugent-portaal-plone-4x/eggs/zope.interface-3.6.7-py2.7-linux-x86_64.egg:/tmp/ugent-portaal-plone-4x/eggs/zope.event-3.5.2-py2.7.egg:/tmp/ugent-portaal-plone-4x/eggs/zdaemon-2.0.7-py2.7.egg:/tmp/ugent-portaal-plone-4x/eggs/ZConfig-2.9.3-py2.7.egg:/tmp/ugent-portaal-plone-4x/eggs/zc.lockfile-1.0.2-py2.7.egg:/tmp/ugent-portaal-plone-4x/eggs/transaction-1.1.1-py2.7.egg:/tmp/ugent-portaal-plone-4x/eggs/contextlib2-0.5.5-py2.7.egg:'



import plone.recipe.zeoserver.ctl

if __name__ == '__main__':
    sys.exit(plone.recipe.zeoserver.ctl.main(
        ["-C", '/tmp/ugent-portaal-plone-4x/parts/zeoserver/etc/zeo.conf']
        + sys.argv[1:]))

The lack of correct PYTHONPATH makes the zeoserver fail to start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants