-
Notifications
You must be signed in to change notification settings - Fork 19
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
runzeo error (Plone 5/Python 2.7): Attempted relative import in non-package #87
Comments
Please don't use zeoctl. No one really knows how to make it work. There should be no real difference between zdaemon and supervisord.
2 a) If you're using supervisord generate/update your supervisord config to run runzeo with the ZEO config. 2 b) If you're using zdaemon, generate a zdaemon config that runs runzeo. (The zc.zdaemon recipe is good for this. |
You got me wrong, I did not use The startup script for runzeo looks like this:
the generated configuration looks like this
Now, when I start the runzeo script directly, w/o the patch it runs into the traceback:
|
And, I forgot to mention, with the patch in #88 everything works as expected. |
I tried to find the reason of the problem. The generated script runs the
So changing the generated script at the end to:
works. Question: Should a direct call of I'll fix |
What an odyssey! I never touched this, just found the code generated is in So best it's fixed there. |
I close this one. Finally, it looks like the problem is in zope.mkzeoinstance |
In order to not run into the problems of #84 I tried to use
runzeo
with supervisor.runzeo
fails to start with:I added a configuration to the Plone coredev buildout here:
https://github.com/plone/buildout.coredev/blob/5.1/experimental/zeoserver.cfg
and run it with ./bin/buildout -c experimental/zeoserver.cfg
The generated script
./bin/zeoserver
has two modes, one useszeoctl
and the other, if in enviromentSUPERVISOR_ENABLED=1
is set,runzeo
is used.After changing the relative import to an absolute one this specific problem is gone and
runzeo
orSUPERVISOR_ENABLED=1 ./bin/zeoserver
works (but #84 is still an issue).The text was updated successfully, but these errors were encountered: