installation issue MNE COREG -- on ubuntu

Hi, I’m having issues with getting the coregistration properly working. I installed a fresh conda enviroment with mne (installed via mamba; as suggested by the installation manual). However, when running “mne coreg” in the prompt I get a RuntimeError (File “…/anaconda3/envs/mne/lib/python3.10/site-packages/mne/viz/backends/”, line 1223, in _is_mesa). How can I get the coregistration gui to work?

  • MNE version: 1.3.1
  • operating system: Ubuntu 18.04

Input in prompt: mne coreg

Using pyvistaqt 3d backend.

Qt: Session management error: None of the authentication protocols specified are supported
Traceback (most recent call last):
File “/home/”, line 10, in
File “/home/”, line 107, in main
File “/home/”, line 85, in run
File “”, line 12, in coregistration
File “/home/”, line 193, in coregistration
return CoregistrationUI(
File “”, line 12, in init
File “/home/”, line 222, in init
self._renderer = _get_renderer(
File “/home/”, line 44, in _get_renderer
return backend._Renderer(*args, **kwargs)
File “/home/”, line 1626, in init
super().init(*args, **kwargs)
File “/home/”, line 229, in init
File “/home/”, line 725, in _enable_antialias
bad_system |= _is_mesa(self.plotter)
File “/home/”, line 1223, in _is_mesa
raise RuntimeError

System Information:

Platform: Linux-5.4.0-132-generic-x86_64-with-glibc2.27
Python: 3.10.9 | packaged by conda-forge | (main, Feb 2 2023, 20:20:04) [GCC 11.3.0]
Executable: /home/
CPU: x86_64: 8 cores
Memory: 31.2 GB

mne: 1.3.1
numpy: 1.23.5 {OpenBLAS 0.3.21 with 8 threads}
scipy: 1.10.1
matplotlib: 3.7.1 {backend=QtAgg}

sklearn: 1.2.2
numba: 0.56.4
nibabel: 5.0.1
nilearn: 0.10.0
dipy: 1.6.0
openmeeg: 2.5.5
cupy: Not found
pandas: 1.5.3
pyvista: 0.38.5 {OpenGL 4.6 (Core Profile) Mesa 20.3.0-devel (git-2b977ad 2020-10-06 bionic-oibaf-ppa) via Mesa Intel(R) UHD Graphics 620 (KBL GT2)}
pyvistaqt: 0.9.1
ipyvtklink: 0.2.2
vtk: 9.2.6
Qt: Session management error: None of the authentication protocols specified are supported
qtpy: 2.3.0 {PyQt5=5.15.6}
ipympl: Not found
pyqtgraph: 0.13.2
pooch: v1.7.0

mne_bids: Not found
mne_nirs: Not found
mne_features: Not found
mne_qt_browser: 0.4.0
mne_connectivity: Not found
mne_icalabel: Not found

Thanks in advance,