Quantcast
Viewing all articles
Browse latest Browse all 5359

Python • Re: Python code that works on my Pi2 won't work on my Pi5

Code:

pygame 2.1.2 (SDL 2.26.5, Python 3.11.2)Hello from the pygame community. https://www.pygame.org/contribute.htmlAuthorization required, but no authorization protocol specifiedDriver: x11 failed.Driver: fbcon failed.Driver: directfb failed.Driver: svgalib failed.Traceback (most recent call last):  File "/home/scruss/Documents/src/python/./pygame-thing.py", line 65, in <module>    scope = pyscope()            ^^^^^^^^^  File "/home/scruss/Documents/src/python/./pygame-thing.py", line 38, in __init__    raise Exception("No suitable video driver found!")Exception: No suitable video driver found!
That's exactly what I getting, sorry I should have included it in my original post, I had been trying all day to make it work and had already shut the pi down by the time I posted, completely forgetting the actual error might be useful.

I have tried running it as root which gave me the same error

I know the x11 driver also fails on the Pi 2 and i believe the fbcon driver is the one that is used, googling around some people have has other problems with fbcon and say it might be something with the pi 5 using wayland but at this point i'm straight up lost

Statistics: Posted by radcom123 — Mon Apr 15, 2024 8:59 am



Viewing all articles
Browse latest Browse all 5359

Trending Articles