Ubuntu22.04 and ccp3.1.0

That would have been too easy! Maybe try

echo $PYOPENGL_PLATFORM

and if it is not set, set it with

export PYOPENGL_PLATFORM=egl

in the shell that you run assign from.