2

I am facing a problem running PyQt5 on Raspberry Pi 4.

I use raspberry pi 4, version 10 (buster) kernel version 4.19.75-v71.

The default python is 3.7.3.

I followed the exact same steps of installing sip and PyQt5 as mentioned on this thread here. I also installed python 3.6.0 following the steps introduced on the aforementioned thread.

After finishing the installation without any error, and when I run my code, I face the following error message:

qt5ct: using qt5ct plugin

QEGLPlatformContext: Failed to create context: 3009

QOpenGLWindow::beginPaint: Failed to create context

QOpenGLWindow::beginPaint: Failed to make context current

Traceback (most recent call last):

  File "my_code.py", line 68, in initializeGL

    self.gl = self.context().versionFunctions()

AttributeError: module 'PyQt5._QOpenGLFunctions_ES2' has no attribute 'QOpenGLFunctions_ES2'

Aborted

Any guidance how to overcome this problem? Much appreciated. Thanks in advance.

PS the code is running smoothly on Win10. Thus, the code itself must have no problem. (the environment on Win10 is: numpy=1.14.3; numpy-stl=2.5.0; pyqt5=5.10.1; sip=4.19.8; six=1.11.0; python=3.6.0; python-utils=2.3.0)

Baraa
  • 176
  • 7

0 Answers0