I installed/built EMAN2 development version using conda and cmake, following the normal procedure. When I try to start any GUI program, I receive the error (below) basically saying getGLUTFontPointer cannot find a GLUT font retrieval function.
My laptop is running Fedora 41, using Wayland, and Nvidia 565.57.01.
I was able to workaround this problem by installing mesa-libOSMesa-devel and setting PYOPENGL_PLATFORM=osmesa in the command line.
I suspect I can set that variable either in my bashrc file, or directly in the conda env. But I wanted to report this here in case anyone else runs into it, so that they can fix it too.
Best,
Colin Gauvin
Structural Biologist
Superluminal Medicines
Details:
e2version.py output
EMAN 2.99.66 ( GITHUB: 2024-12-12 09:42 - commit: 643d2872c )
Your EMAN2 is running on: Linux-6.11.10-300.fc41.x86_64-x86_64-with-glibc2.40 6.11.10-300.fc41.x86_64
Your Python version is: 3.12.8
Exact command ran to produce failure:
e2display.py
Failure output:
Traceback (most recent call last):
File "/home/colin/.micromamba/envs/eman2/bin/e2filtertool.py", line 44, in <m
odule>
from eman2_gui.emimage2d import EMImage2DWidget
File "/home/colin/.micromamba/envs/eman2/lib/python3.12/site-packages/eman2_g
ui/emimage2d.py", line 39, in <module>
from OpenGL import GL,GLU,GLUT
File "/home/colin/.micromamba/envs/eman2/lib/python3.12/site-packages/OpenGL/
GLUT/__init__.py", line 5, in <module>
from OpenGL.GLUT.fonts import *
File "/home/colin/.micromamba/envs/eman2/lib/python3.12/site-packages/OpenGL/
GLUT/fonts.py", line 20, in <module>
p = platform.getGLUTFontPointer( name )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/colin/.micromamba/envs/eman2/lib/python3.12/site-packages/OpenGL/
platform/baseplatform.py", line 350, in getGLUTFontPointer
raise NotImplementedError(
^^^^^^^^^^^^^^^^^^^^^^^^^^
NotImplementedError: Platform does not define a GLUT font retrieval function