Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'glActiveTexture' #259

Open
n21brown opened this issue Jan 18, 2022 · 6 comments
Open

Comments

@n21brown
Copy link

n21brown commented Jan 18, 2022

Rasp Pi 4 on Buster. Up to date, fresh install

When trying to run any of the demos I get

Traceback (most recent call last):
  File "Earth.py", line 11, in <module>
    import pi3d
  File "/usr/local/lib/python3.7/dist-packages/pi3d/__init__.py", line 10, in <module>
    from pi3d.constants import (USE_PYGAME, PIL_OK,
  File "/usr/local/lib/python3.7/dist-packages/pi3d/constants/__init__.py", line 198, in <module>
    PLATFORM, bcm, openegl, opengles = _detect_platform_and_load_libraries()
  File "/usr/local/lib/python3.7/dist-packages/pi3d/constants/__init__.py", line 193, in _detect_platform_and_load_libraries
    set_gles_function_args(opengles) #function defined in constants/gl.py
  File "/usr/local/lib/python3.7/dist-packages/pi3d/constants/gl.py", line 387, in set_gles_function_args
    gles.glActiveTexture.argtypes = [GLenum] #
AttributeError: 'NoneType' object has no attribute 'glActiveTexture'

This looks like the same error as before in https://github.com/tipam/pi3d/issues/214

@paddywwoof
Copy link
Collaborator

Is this due to the type of driver set up in raspbi-config? I will see if I can reproduce this error.

@reflect23
Copy link

I've got the same issue on a Raspberry Pi 3b using Raspberry Pi OS current version as of 2/26/22

@paddywwoof
Copy link
Collaborator

Away at moment but will do some tests when I'm back. Also with 64 bit version

@Jacques-Olivier-Farcy
Copy link

I have the same error on a fresh PI OS install and update with snake eyes from adafruit.

@paddywwoof
Copy link
Collaborator

Thanks @Jacques-Olivier-Farcy,
In case anyone else comes across this thread - it seems to be related to the changes in RPi graphics driver. You can see discussion and solutions helgeerbe/picframe#195 (comment)

However the OP does say they are using original buster OS which hasn't loaded the OpenGLES library correctly. Not sure if this is fixed or not as I haven't reproduced it.

@Jacques-Olivier-Farcy
Copy link

Jacques-Olivier-Farcy commented Mar 28, 2022

Hi there,
Yes i can confirm that with the Buster image of raspios and after a (long) update / upgrade, it is working fine.
I used PI OS [raspios armhf buster lite](http://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-05-28/2021-05-07-raspios-buster-armhf-lite.zip.torrent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants