I have a Raspberry Pi 3 Model B. Running Raspian. I'm currently going through a learn python book, so forgive me if I have forgotten something
I'm trying to use RPi GL which i downloaded from from https://github.com/stephanh42/rpigl
I installed using the following commands (From the book)
Code: Select all
unzip rpigl-master.zip
cd rpigl-master
python3 setup.py build
sudo python3 setup.py buildWhen I run python3 on the bumpedspere.py (demo code) I get the following error
libEGL warning: DRI2: failed to authenticate
Traceback (most recent call last):
File "bumpedspere.py", line 153, in <module>
MyWindow(640, 640, pygame.RESIZABLE).run()
File "/usr/local/lib/python3.4/dist-packages/rpigl/glesutils.py", line 906, in __init__
window = create_opengl_window(width, height, flags)
File "/usr/local/lib/python3.4/dist-packages/rpigl/rpi_egl.py", line 233, in create_opengl_window
window = rpi_create_window(2, attribList)
File "/usr/local/lib/python3.4/dist-packages/rpigl/rpi_egl.py", line 197, in rpi_create_window
window.create_EGL_context(gl_version, attrib_list)
File "/usr/local/lib/python3.4/dist-packages/rpigl/rpi_egl.py", line 169, in create_EGL_context
raise Exception("cannot create window surface")
Exception: cannot create window surface
I've tried reinstalling and googling for any common problems but I can't find any
I'd be grateful for any help you could give me!