-
Notifications
You must be signed in to change notification settings - Fork 77
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
ifupdown2 - python 3.12 compability #296
Comments
@d4nys3k can you submit the patch as a PR? So you get credit for finding the issue and i click merge it :) |
KoffieNu
added a commit
to KoffieNu/ifupdown2
that referenced
this issue
Jul 9, 2024
Since pythong 3.2 readfp needs to be replaced by read_file. Python 3.12 dropped this function. Patch provided as PR by me, as original reported failed to do so since 4-4-2024 and my systems break due to this issue.
KoffieNu
added a commit
to KoffieNu/ifupdown2
that referenced
this issue
Jul 9, 2024
Since python 3.2, readfp needs to be replaced by read_file. Python 3.12 dropped the readfp function. Patch provided as PR by me, as the original reporter failed to do so since 4-4-2024 and my systems break due to this issue.
Patch provided as PR by me, as original reported failed to do |
julienfortin
added a commit
that referenced
this issue
Jul 9, 2024
Bug #296: python 3.12 compability
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed ifupdown2 stopped working after upgrading to Python3.12. It fails to bring up all interfaces with:
error: main exception: 'RawConfigParser' object has no attribute 'readfp'
According to the documentation,
readfp
can be replaced byread_file
since Python 3.2. Python 3.12 removes this object. After local modification ofifupdown/main.py
(see diff below) I managed ifupdown2 to resume operation as expected in my envinronment.The text was updated successfully, but these errors were encountered: