Jump to content

Brickviewer 'object has no attribute' error


Recommended Posts




I 'm getting error messages when running bricker viewer with my IMU brick 2.0 connected.

Error message as followed and I made a screenshot attached.

Traceback (most recent call last):

  File "/usr/share/brickv/plugin_system/plugins/imu_v2/imu_v2_gl_widget.py", line 163, in initializeGL


AttributeError: 'QOpenGLFunctions_ES2' object has no attribute 'glClearDepth'


I have used the following terminal commands to install brick viewer in this exact order:


1. Install Brick Daemon


$ sudo apt-get install libusb-1.0-0 libudev0 pm-utils


$ wget http://download.tinkerforge.com/tools/brickd/linux/brickd_linux_latest_armhf.deb


$ sudo dpkg -i brickd_linux_latest_armhf.deb



2.  Install Brick Viewer


(for python only)

$ sudo apt-get install python3 python3-pyqt5 python3-pyqt5.qtopengl python3-serial


$ wget http://download.tinkerforge.com/tools/brickv/linux/brickv_linux_latest.deb


$ sudo dpkg -i brickv_linux_latest.deb


Please advise.  Thank you.




Link to comment
Share on other sites


can you please try the attached version of Brick Viewer?


The problem seems to be, that the IMU 2.0 3D rendering uses the (very old) immediate mode, which is only supported by OpenGL, not OpenGLES. The Raspberry Pi does not support OpenGL, so we can't render the 3D model, which was not handled.


I will rewrite the rendering to use more modern OpenGL capabilities, which are also supported by OpenGLES. But for now, you can use the attached version, which disables the 3D rendering if only OpenGLES is available.


Thanks for reporting the bug,



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...