GLEW could not be initialized: Missing GL version ubuntu 20.04


Previously I was able to run my programs using vtk on python 3.8, after installing GPU drivers it stopped working and I get the error message “ERR| vtkXOpenGLRenderWindow (0x5194010): GLEW could not be initialized: Missing GL version” . I tried already what is suggested here : issue with vtkOpenGLRenderWindow on linux with vtk=9.1 - #5 by dgobbi, and the cylinder example works fine.

I am using vtk version 9.1.0 and the drivers I am using for OpenGL:
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro P2200/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 525.85.12

What could be the problem?

1 Like

Just a guess, did you reboot after installing the drivers?

I met this problem before. Twice !!! And it really make me crazy.

I will introduce the two experience.

The first time, the GPU is incorrect. My system is windows server 2019, but my GPU is incorrect for windows server. So, you must make sure whether the GPU can be used for ubuntu.

For the second time, my GPU driver is incorrect. The used driver is download from this, and it is:

And the correct driver is download from this, and it is:

The Standard is necessary.

Hope it helps.

1 Like

Thanks! I will reinstall the drivers and try it out again.