Headless Install Issue

It seems like the headless install of MNE may be broken. This seemed to be working not too long ago.

mamba create --override-channels --channel=conda-forge --name=mne mne -y 
mamba install --name=mne -c conda-forge "vtk>=9.2=*osmesa*" "mesalib=21.2.5" -y

This results in a mamba error

Could not solve for environment specs
Encountered problems while solving:
  - package qt-main-5.15.8-h01ceb2d_13 requires libxcb >=1.15,<1.16.0a0, but none of the providers can be installed

The environment can't be solved, aborting the operation
  • operating system: Ubuntu 22.04 and Rocky 8 (fails on both)

I’m not sure if this is just my setup or more systemic. If someone could confirm this one way or the other, that would be helpful.

Thanks,
Jeff Stout

ping @richard and @bloyl who I think use headless install somewhat regularly?

Nope I’ve never used it, sorry. Only regular install on a headless server.

Edit: oh. This is exactly what @jstout211 was referring to.

Anyway I’m not using MNE these days anymore, so I cannot help here unfortunately

@jstout211 why do you pin mesalib…?
Also, have you tried installing everything with just a single call to conda or mamba instead of two?

2 Likes

@richard - Thanks for the heads up - running as a single command does work.

mamba create --override-channels --channel=conda-forge --name=mne mne "vtk>=9.2=*osmesa*" "mesalib=21.2.5" -y

Regarding - why do you pin mesalib - below are the instructions from the website:

We had set this up as a local/nightly testing for mne scripts. So it was working up until a week or two ago. After investigating it, the install turned out to be the issue of why the testing script failed. The single line install does work as a fix.

Thank you for the help.

–Jeff

2 Likes