Closed d4nys3k closed 3 months ago
@d4nys3k can you submit the patch as a PR? So you get credit for finding the issue and i click merge it :)
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.
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.