-
-
Notifications
You must be signed in to change notification settings - Fork 30.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
pyexpat changes in 3.10.14 broke Supervisor #117173
Comments
Hello! |
Hello! The supervisor definitely works on 3.10.13 - verified. If you look at the supervisor code, they solved the problem you describe try: # pragma: no cover
import xmlrpc.client as xmlrpclib
except ImportError: # pragma: no cover
import xmlrpclib Also, the supervisor hasn’t changed anything for a long time, and the breakdown occurred precisely after the release of Python 3.10.14 The problem is on your side |
A closer look at the traceback makes it clear that the problem is probably related to version of the |
Highlighting the most relevant part of the traceback: Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/supervisor/compat.py", line 67, in <module>
import xmlrpc.client as xmlrpclib
File "/usr/lib/python3.10/xmlrpc/client.py", line 138, in <module>
from xml.parsers import expat
File "/usr/lib/python3.10/xml/parsers/expat.py", line 4, in <module>
from pyexpat import *
ImportError: Error relocating /usr/lib/python3.10/lib-dynload/pyexpat.cpython-310-x86_64-linux-gnu.so: XML_SetReparseDeferralEnabled: symbol not found Diff between the releases: v3.10.13...v3.10.14 Had three expat changes: |
And the related issues:
This last one seems most relevant, to expose We don't provide Linux installers (and don't provide any installers for 3.10 because it's in the security-only/source-code only phase). Could it be a problem with a distro-provided Python installation? (See also jupyterhub/repo2docker-action#113 for a similar report.) |
From a quick look my understanding is that @unlike777 is using Python binaries compiled on a host that did have symbol |
@unlike777 which distro is this on, which release of the distro, and how did you install CPython and libexpat and which version are they now? |
Thank you very much for being included! I use alpine:3, 3.16, 3.16.3, latest Install the supervisor: [supervisor 1/3] RUN apk add supervisor |
@unlike777 thanks. I cannot reproduce the issue with Alpine 3.16. This will need a robust minimal reproducer. What's a way to reliably reproduce the issue? |
It's a bug in Alpine's packaging of Python 3.10.14-r0, not an upstream issue. |
Great — thanks @hartwork! |
Bug report
Bug description:
Link for supervisor issue Supervisor/supervisor#1636
CPython versions tested on:
3.10
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: