Skip to content
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

Remove usage of 'U' mode bit for opening files in python #884

Merged
merged 1 commit into from
Jan 28, 2023

Conversation

DaanDeMeyer
Copy link
Contributor

The 'U' mode bit is removed in python 3.11. It has been
deprecated for a long time. The 'U' mode bit has no effect
so this change doesn't change any behavior.

See https://docs.python.org/3.11/whatsnew/3.11.html#changes-in-the-python-api

The 'U' mode bit is removed in python 3.11. It has been
deprecated for a long time. The 'U' mode bit has no effect
so this change doesn't change any behavior.

See https://docs.python.org/3.11/whatsnew/3.11.html#changes-in-the-python-api
@nedko
Copy link
Contributor

nedko commented Sep 10, 2022

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.

@cclauss
Copy link
Contributor

cclauss commented Jan 22, 2023

Blocking Homebrew/homebrew-core#119011

@falkTX
Copy link
Member

falkTX commented Jan 28, 2023

We do indeed need to update waf, but needs to be done carefully as there are custom changes in there. And I think extra modules too.
For now manually backporting fixes is quite welcome.

So thanks, merging now!

@falkTX falkTX merged commit 328c589 into jackaudio:develop Jan 28, 2023
@cclauss
Copy link
Contributor

cclauss commented Jan 29, 2023

Can we please get a release of jack2 because this is one of the installs that is blocking Homebrew's upgrade to Python 3.11 as the default Python?

@falkTX
Copy link
Member

falkTX commented Jan 29, 2023

If we manage to fix #869 then it would make sense to get a release out. Any help for that one is greatly appreciated!

arnout pushed a commit to buildroot/buildroot that referenced this pull request Feb 10, 2023
Fixes:
http://autobuild.buildroot.net/results/5ce/5ce5ebd20e0e509b31b51d2ec1aed56fdb8f45aa/

The bundled waf script is too old (2.0.12) for python >= 3.11 as it uses the
'U' modifier to open (universal newlines), which have been deprecated since
python 3.3 and finally removed in 3.11.

Jack unfortunately uses a modified waf, so we cannot just set
JACK2_NEEDS_EXTERNAL_WAF, so instead backport an upstream patch fixing the
compatibility issue:

jackaudio/jack2#884

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants