Closed fyviezhao closed 2 years ago
Sorry I didn't check my code carefully. I added another debug line os.environ['PYOPENGL_PLATFORM'] = 'egl'
at the beginning of the python script, which wrongly overwrite the PYOPENGL_PLATFORM
setting. The solution in https://github.com/MPI-IS/mesh/issues/49#issuecomment-705194582 is correct and for those who also meet this problem, you can solve it by:
$ sudo apt-get install libosmesa6
$ export PYOPENGL_PLATFORM=osmesa
Closed.
I've tried
export PYOPENGL_PLATFORM=osmesa
, and also added -X when I ssh'ed into the linux machine https://github.com/MPI-IS/mesh/issues/49#issuecomment-705194582, but it didn't work. Can someone help me with this error?