Mayavi fails to get wglchoosepixelformatarb and other error reporting solutions

Development environment:

Win10 + Python 3.6 (virtual environment) + mayavi2 + pychar

Phenomenon:

This virtual environment used to work well in the past, but suddenly one day when drawing with mayavi, the following error appears:
error: in C: \ VPP \ standalone build \ VTK source \ rendering \ opengl2 \ vtkwin32openglrenderwindow.cxx, line 685

vtkWin32OpenGLRenderWindow (000001FACEF53880): failed to get wglChoosePixelFormatARB

ERROR: In C:\VPP\standalone-build\VTK-source\Rendering\OpenGL2\vtkWin32OpenGLRenderWindow.cxx, line 769

vtkWin32OpenGLRenderWindow (000001FACEF53880): failed to get valid pixel format.

ERROR: In C:\VPP\standalone-build\VTK-source\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 785

vtkWin32OpenGLRenderWindow (000001FACEF53880): GLEW could not be initialized.

The program is a routine on the official website. The phenomenon is that after executing the program, if an error is reported, it exits after a few seconds.

Solution:

Consult relevant materials and initially locate the problem on environmental variables and drivers. Looking back on what I have done in recent days, I found that I have newly installed Master Lu and updated some drivers. So I tried to return the graphics card driver to the previous version, and the problem was successfully solved
the figure below shows that Master Lu has completed the rollback of the driver version


happy drawing again

Read More: