mne-bids is installed in environment but is not in docker image based on this env

  • MNE version: 1.0.3
  • operating system: Ubuntu 18.04.6 LTS

I installed mne-bids with pip install --user -U mne-bids[full] and I can also import it in my environment. However, if a docker image is build based on my environment and a new environment uses this image, the following error appears ModuleNotFoundError: No module named 'mne_bids'.
I checked conda list of my environment, only mne is listed and mne-bids not.

Anybody knows why? How can I solve this problem? Thank a lot!

Hello, you need to provide more information. How exactly do you create the docker image? Please share your Dockerfile. Also, why don’t you just run the standalone installer inside your container? It contains everything you should need, including MNE-BIDS.

Best wishes,
Richard

1 Like

Hi, thanks for the swift reply!
I wanted to use mne and mne-bids on cloud computers (azure machine learning), therefore I cannot provide the information myself about how the docker image was created, since it was created by the process on azure… I tried to find the Dockerfile, but also didn’t succeed.
I just managed to use another method to add mne-bids into the environment.
But thanks anyway! :grinning:

i am having the same issue. what is this other method you speak of?

I wrote extra lines to install mne-bids with the function add_pip_package in the submit script.