installation failure on OS X

External Email - Use Caution

Hi,
   I could use some help on installing MNE. I have some UNIX experience and am a newcomer to Python. On OS X 10.13.5 I followed the installation instructions at https://www.martinos.org/mne/stable/install_mne_python.html

The version numbers are:
conda 4.5.4
Python 3.6.5 :: Anaconda, Inc.

Everything went fine until I got to:

conda env create -f environment.yml

which resulted in the error:

NotWritableError: The current user does not have write permissions to a required path.
  path: /Users/jdien/.conda/environments.txt

I didn?t notice the error message and went all the way to the end.

I got the message that MessagePack wasn?t installed, perhaps because of the error, so I installed it manually.

When I wasn?t able to import MNE, I went back and saw the problem. .conda belonged to root rather than me and I didn?t have permission. I fixed the permissions problem and redid the conda env create -f environment.yml step.

This time it mostly went fine all the way through.

I did get the message that:

mkl-random 1.0.1 requires cython, which is not installed.
mkl-fft 1.0.0 requires cython, which is not installed.

when I tried manually installing cython, I was informed that it was already installed.

anyway, when I get to the final step, I get:

import mne

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'mne'

I?m not sure what to do at this point. Any assistance would be greatly appreciated!

Joe

External Email - Use Caution

When I wasn?t able to import MNE, I went back and saw the problem. .conda
belonged to root rather than me and I didn?t have permission. I fixed the
permissions problem and redid the conda env create -f environment.yml step.

That's odd -- perhaps someone did a `sudo` operation at some point.

This time it mostly went fine all the way through.

You might need to do `conda env remove -n mne` and then start over. Maybe
there was some cruft left in there.

I?m not sure what to do at this point. Any assistance would be greatly
appreciated!

You got this error after the `source activate mne` step? If you do `which
python` does it tell you `~/anaconda3/envs/mne/bin/python`? Doing `conda
list` will list all the packages currently available in the environment.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180621/0db127de/attachment.html

External Email - Use Caution

Okay, I did the remove command like you suggested and then redid the curl command (said it was all there), then the conda env create command and it went through everything again. I got the errors about cython again. "which python" does indeed produce the correct result. I did the python command and then ?import mne?. This time no error! conda list does include mne as one of the packages. :slight_smile:

Thanks!

Joe