Looks like /sys/class/gpio has been deprecated: https://www.thegoodpenguin.co.uk/blog/stop-using-sys-class-gpio-its-deprecated/ And now it's not present in the latest Ubuntu Server OS, which is what I'm running. Any plans to migrate away from /sys/class/gpio?
I am getting the same error as above, using RPi.GPIO 0.7.1 and Python 3.11. Is there any fix or workaround?