3D doesn't work on Raspberry 4B

208 views
Skip to first unread message

Anakin

unread,
Mar 5, 2021, 10:11:44 AM3/5/21
to pyqtgraph
Hello. Opening examples from pyqtgraph.examples. run (). Everything works except 3D.

Part of the example:
******************************
from pyqtgraph.Qt import QtCore, QtGui
import pyqtgraph.opengl as gl

app = QtGui.QApplication([])
w = gl.GLViewWidget()
w.opts['distance'] = 200
w.show()
w.setWindowTitle('pyqtgraph example: GLVolumeItem')

******************************


Outputs this:

******************************
qt5ct: using qt5ct plugin
bind: Invalid command `enable-meta-key'.
>>> Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/pyqtgraph/opengl/GLViewWidget.py", line 204, in paintGL
    self.setProjection(region=region)
  File "/home/pi/.local/lib/python3.7/site-packages/pyqtgraph/opengl/GLViewWidget.py", line 126, in setProjection
    glMatrixMode(GL_PROJECTION)
  File "/home/pi/.local/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 415, in __call__
    return self( *args, **named )
  File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glMatrixMode,
cArguments = (GL_PROJECTION,)
)
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/pyqtgraph/opengl/GLViewWidget.py", line 204, in paintGL
    self.setProjection(region=region)
  File "/home/pi/.local/lib/python3.7/site-packages/pyqtgraph/opengl/GLViewWidget.py", line 126, in setProjection
    glMatrixMode(GL_PROJECTION)
  File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glMatrixMode,
cArguments = (GL_PROJECTION,)
)
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/pyqtgraph/opengl/GLViewWidget.py", line 204, in paintGL
    self.setProjection(region=region)
  File "/home/pi/.local/lib/python3.7/site-packages/pyqtgraph/opengl/GLViewWidget.py", line 126, in setProjection
    glMatrixMode(GL_PROJECTION)
  File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glMatrixMode,
cArguments = (GL_PROJECTION,)
)
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/pyqtgraph/opengl/GLViewWidget.py", line 204, in paintGL
    self.setProjection(region=region)
  File "/home/pi/.local/lib/python3.7/site-packages/pyqtgraph/opengl/GLViewWidget.py", line 126, in setProjection
    glMatrixMode(GL_PROJECTION)
  File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glMatrixMode,
cArguments = (GL_PROJECTION,)
)

******************************

I've been working with Raspberry and Linux for a couple of months, so the question may be silly.

What could be the problem?

Anakin

unread,
Mar 5, 2021, 10:19:28 AM3/5/21
to pyqtgraph
Python 3.8.2
pyqtgraph 0.11.1
Linux version 5.4.83-v7l+(Raspbian GNU/Linux 10 (buster))

Architecture:        armv7l
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
Vendor ID:           ARM
Model:               3
Model name:          Cortex-A72
Stepping:            r0p3
CPU max MHz:         1500,0000
CPU min MHz:         600,0000
BogoMIPS:            270.00
Flags:               half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
пятница, 5 марта 2021 г. в 18:11:44 UTC+3, Anakin:

Ognyan Moore

unread,
Mar 6, 2021, 12:03:29 AM3/6/21
to pyqt...@googlegroups.com
There is actually an open issue for this, there won't be any fix we can implement in the library, as I don't think there exists a change pyqtgraph _can_ make; but the issue details some of the criteria needed to be met for 3D graphics to work on it:




--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/d4607163-55f1-4ebe-b1bd-e936c5bc30ean%40googlegroups.com.

Anakin

unread,
Mar 8, 2021, 6:39:16 AM3/8/21
to pyqtgraph
Thank you!!!

суббота, 6 марта 2021 г. в 08:03:29 UTC+3, ognyan...@gmail.com:
Reply all
Reply to author
Forward
0 new messages