-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Event listeners crash supervisord on Python 3 #663
Comments
Consider using six package, so you would have the same-named byte-string conversion functions for Python 2 and Python 3 code. |
Supervisor has its own |
Instructions to reproduce the crash above:
Tested on e73d017 but it looks like this crash has always existed in the Python 3 port. |
why? You rather create your own very buggy python2-to-3 conversion library, rather than using a very mature well tested tool that the rest of the python-world uses? Please rethink about this. |
I'd appreciate if you'd refrain from comments like this if you can. You're welcome to participate here but there's nicer ways to do it.
Other users have said on this issue tracker that they do.
The approach of bundling a small compat module with just the functions needed is shared by other packages, e.g. pyramid. There isn't much needed in Supervisor's compat module, and the Python 3 issues we have remaining are caused by larger design problems that changing out the module isn't going to solve. |
One advantage of six is that most people will be familiar with exactly how it works. This is an example of something that won't do what anybody expects (and I'm fairly sure needs changing). Since six is only one file, it could be included in the source tree to avoid another dependency. |
Working on a fix, this is what I get now:
Is this what one would expect given that the event listener is a |
Yes, Now that you have fixed the original exception, you need a process that implements the eventlistener protocol to see if eventlisteners really work. You can try this minimal example or the superlance package). A further thing to check is |
I get the following error when running the master with Python 3.2:
When I do replace in process.py (line 873)
as_bytes
byas_string
, then it is working...The text was updated successfully, but these errors were encountered: