-
Notifications
You must be signed in to change notification settings - Fork 378
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
Build failure with Python 3.11 #898
Comments
This issue was addressed by waf upstream 3 years ago: https://gitlab.com/ita1024/waf/-/commit/68997828c850ce7fb30b73b4adfde35053e539d1 Upgrading waf to latest should fix the py3.11 incompatibility. See also #884 |
Do you mean no one has updated waf for last three years? |
it is not something projects are expected to do to be honest.. |
Is jackaudio/jack2 going to be switched away from waf? |
eventually switching to meson yes |
'U' is default and deprecated since python-3.3, becomes a failure in 3.11. See also: jackaudio/jack2#898 Obtained from: Gentoo Approved by: portmgr blanket (trivial fix build)
Any progress regarding this? fwiw the bundled waf is yet again broken if try to use python 3.12 (3.12 still in beta atm so not really an issue yet), given 3.12 removed the deprecated imp module resulting in:
Alternatively may be an easy fix in waf like did with 3.11, haven't really looked. |
This is fixed in version 1.9.22. |
I want to exclusively use Python 3.12. So I looked into this. All it took was a small patch to
See: https://docs.python.org/3/library/types.html#types.ModuleType |
@Schamschula for the record, the 3.12 issues with imp are already fixed in git (by updating waf), but we're still waiting for release to include the change (issue #974). Albeit a short patch may be useful for people wanting to backport something smaller, the upstream fix is to update waf. In Gentoo we've backported the waf bump though (applies as-is). |
No problem! Looking forward to the update! Jack was blocking other ports, so I needed a workaround. |
Describe the bug
jack2 tells Python to use mode rUb which Python 3.11 rejects as invalid. As a result this project cannot be built. The invalid mode is constructed from here https://github.com/jackaudio/jack2/blob/v1.9.21/waflib/Context.py#L665
Environment
Steps To Reproduce
Install a distro with Python 3.11, eg Fedora 37 beta and try to build jack2 with waflib.
Expected vs. actual behavior
Expected behaviour is jack2 builds, actual behaviour is Python stacktrace on invalid mode.
The text was updated successfully, but these errors were encountered: