Hi all,
My team and I all develop on a remote Python environment on the Azure cloud. Would like to run ParaView on these headless machines to visualize the systems we are engineering.
Since everyone is using conda + conda-forge (broadly used package manager in the Python community) to install libraries and modules, I would like to compile ParaView with EGL support for easy installation. To give you an idea of how widely this is used, ParaView from conda-forge has been downloaded 330k times!
Right now, paraview with EGL compiles without error but there is still an issue when running code:
(test-paraview2) cw-a-banijh ➜ ~ python
Python 3.8.10 | packaged by conda-forge | (default, May 11 2021, 07:01:05)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from paraview.simple import Sphere, Show, GetActiveView, Render
>>> sphere = Sphere(ThetaResolution=16, PhiResolution=32)
>>> Show(sphere)
( 22.097s) [paraview ]vtkOpenGLRenderWindow.c:458 ERR| vtkEGLRenderWindow (0x55827ecaa2d0): GLEW could not be initialized: Unknown error
<paraview.servermanager.GeometryRepresentation object at 0x2b69cb1baf70>
>>> view = GetActiveView()
>>> Render(view)
( 22.195s) [paraview ]vtkOpenGLRenderWindow.c:458 ERR| vtkEGLRenderWindow (0x55827ec3e4a0): GLEW could not be initialized: Unknown error
( 22.195s) [paraview ] vtkOpenGLState.cxx:1785 WARN| Hardware does not support the number of textures defined.
( 22.195s) [paraview ] vtkOpenGLState.cxx:1785 WARN| Hardware does not support the number of textures defined.
( 22.195s) [paraview ] vtkOpenGLState.cxx:1785 WARN| Hardware does not support the number of textures defined.
( 22.195s) [paraview ] vtkOpenGLState.cxx:1785 WARN| Hardware does not support the number of textures defined.
( 22.195s) [paraview ] vtkOpenGLState.cxx:1785 WARN| Hardware does not support the number of textures defined.
( 22.195s) [paraview ] vtkOpenGLState.cxx:1785 WARN| Hardware does not support the number of textures defined.
( 22.195s) [paraview ] vtkOpenGLState.cxx:1785 WARN| Hardware does not support the number of textures defined.
( 22.199s) [paraview ] vtkOpenGLState.cxx:1785 WARN| Hardware does not support the number of textures defined.
( 22.199s) [paraview ] vtkOpenGLState.cxx:1785 WARN| Hardware does not support the number of textures defined.
( 22.199s) [paraview ] vtkOpenGLState.cxx:1785 WARN| Hardware does not support the number of textures defined.
( 22.203s) [paraview ] vtkOpenGLState.cxx:1785 WARN| Hardware does not support the number of textures defined.
( 22.203s) [paraview ] vtkOpenGLState.cxx:1785 WARN| Hardware does not support the number of textures defined.
( 22.203s) [paraview ] vtkOpenGLState.cxx:1785 WARN| Hardware does not support the number of textures defined.
( 22.205s) [paraview ] vtkOpenGLState.cxx:1785 WARN| Hardware does not support the number of textures defined.
( 22.205s) [paraview ] vtkOpenGLState.cxx:1785 WARN| Hardware does not support the number of textures defined.
( 22.205s) [paraview ] vtkOpenGLState.cxx:1785 WARN| Hardware does not support the number of textures defined.
( 22.205s) [paraview ] vtkOpenGLState.cxx:1785 WARN| Hardware does not support the number of textures defined.
<paraview.servermanager.RenderView object at 0x2b69d5084c10>
This indicates an issue with GLEW, which I believe means an issue with OpenGL still.
At this point, I have no idea what to attempt to fix it. Any ideas or suggestions would be greatly appreciated.
For reference