-
Notifications
You must be signed in to change notification settings - Fork 28
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
bullseye convert hyperpixel-touch script to python3 #54
Comments
Looks like this is a very similar set of changes - https://github.com/pimoroni/phat-beat/pull/37/files For stderr: se = open("/dev/null", "ab+", 0)
os.dup2(se.fileno(), sys.stderr.fileno()) Works for me on Python 3.8 |
Hi, been a while, just spent a bit more time on it, it is now failing on the line below does it need a udev rule or something? Tried compiling the overlays and that gave warnings, so I'm thinking its the same as with the hyperpixel4, stick with buster if you want the touch screen ??? ==== File "/usr/bin/hyperpixel-touch", line 117, in |
OK, it is now SMBus(11) on buster and bullseye And to stop a segfault, change /usr/lib/systemd/system/triggerhappy.socket works for me anyway |
python2-pip gone and that sort of problem, so convert it to python3?
simply change the shebang to python3
basically you use some odd old python2 function file(), converting to python open() works ok except for the se file which fails on the os.dup(). cant find the old python documentation on the file() function it is that old...
any ideas
The text was updated successfully, but these errors were encountered: