You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ctypes dlopen failed when use no-gil mode on Android #140041
I compiled Python 3.14 with the no-gil mode. In this mode, the Python library file is named 'libpython3.14t.so', but ctypes internally still tries to load 'libpython3.14.so', which causes an error.
Marking as a release-blocker because it may be quite annoying as we announced the official support of free-threading. @hugovk is there a plan to release 3.14.1 earlier (like other outstanding issues that require another release)?
Apparently so, but that isn't a supported platform. What they have in common is that they're the only Unix platforms that use a dynamically-linked libpython. Well, I guess iOS does as well, but maybe the PyDLL(None) branch works well enough there. I'll do some experimentation.
Marking as a release-blocker because it may be quite annoying as we announced the official support of free-threading. @hugovk is there a plan to release 3.14.1 earlier (like other outstanding issues that require another release)?
Not as yet, let's come up with a fix first and then assess the impact and whether it can wait. At least this doesn't need to hold up today's 3.15.0a1.
Activity
picnixz commentedon Oct 13, 2025
Marking as a release-blocker because it may be quite annoying as we announced the official support of free-threading. @hugovk is there a plan to release 3.14.1 earlier (like other outstanding issues that require another release)?
colesbury commentedon Oct 13, 2025
Is this Android specific?
mhsmith commentedon Oct 13, 2025
Yes:
cpython/Lib/ctypes/__init__.py
Lines 550 to 557 in ebf955d
I think the actual library name is available from sysconfig.
picnixz commentedon Oct 13, 2025
Isn't it also cygwin specific?
mhsmith commentedon Oct 14, 2025
Apparently so, but that isn't a supported platform. What they have in common is that they're the only Unix platforms that use a dynamically-linked libpython. Well, I guess iOS does as well, but maybe the
PyDLL(None)branch works well enough there. I'll do some experimentation.[-]ctypes dlopen failed when use no-gil mode[/-][+]ctypes dlopen failed when use no-gil mode on Android[/+]hugovk commentedon Oct 14, 2025
Not as yet, let's come up with a fix first and then assess the impact and whether it can wait. At least this doesn't need to hold up today's 3.15.0a1.
picnixz commentedon Oct 14, 2025
I'll mark it as a "deferred" blocker for now to avoid thinking it's a true blocker.
gh-140041: Fix import of `ctypes` on Android and Cygwin when ABI flag…
pythongh-140041: Fix import of `ctypes` on Android and Cygwin when AB…
pythongh-140041: Fix import of `ctypes` on Android and Cygwin when AB…
[3.13] gh-140041: Fix import of `ctypes` on Android and Cygwin when A…
[3.14] gh-140041: Fix import of `ctypes` on Android and Cygwin when A…
pythongh-140041: Fix import of `ctypes` on Android and Cygwin when AB…