I'm developing an application using Python 3 / PyQt5. Everything seems ship-shape until I try to run the GUI (which is partially reliant on a live graph that is backed by pyqtgraph) on my Raspberry Pi 2 Model B (Raspbian Jessie), when it throws the error libEGL warning: DRI2: failed to authenticate
. This question has a potential fix, but it's very long and might not be exactly what I need, so I don't want to embark on that reconfig journey unless I absolutely have to. I'm trying to make this software easy to configure on a fresh installation.
Exactly what happens: I execute my application from the terminal (python3 app.py
) on the Pi. The application does start, but throws the aforementioned libEGL
warning. My application consists of a starting window that has buttons to open the functional portions of my application. This starts fine, but when I try to open my "control panel" with a live plot in it, this new window stops responding. There is no Python error traceback.
Any ideas?
libEGL warning
that I'm seeing, and then the window I try to open freezes. I'll provide a few more details.sudo raspi-config
to configure your Pi for full OpenGL (a reboot may be required), then warning will likely go away. However, it's usually benign and doesn't explain your hang. If you try running (and plotting from)examples/designerExample.py
from github.com/pyqtgraph/pyqtgraph do you get the same hang? Whether or not will help you narrow down whether the problem is with your system configuration or your code.