Latest environment.yml again installing MNE in a dedicated 'mne' environment

External Email - Use Caution

Hi!

I just noted a discrepancy between the documentation for installation (?Install?) on mne.tools, and the latest environment.yml file.

I did a clean install of MNE-Python under Conda on a Mac running OS X 10.15.5. I have been using MNE-Python on this specific machine for many years, but I do periodic upgrades to the latest MNE version.

I noted today that the latest environment.yml file has ?name: mne? on the first line. This will create a dedicated Conda environment called ?mne?. This was standard behavior going back a couple of years, but lately the documentation has instead suggested that MNE should be installed in the base environment.

So, PLEASE NOTE that the text on the ?Install Python? under ?Install? on mne.tools still refers to a ?base environment file?. There is also an instruction on how to create the mne environment, if preferred. All this is now confusing since the current environment.yml does exactly that!
https://mne.tools/stable/install/mne_python.html

The problem I had with the dedicated mne environment that was created with the newly downloaded environment.yml was that spyder was not installed there. Trying to install spyder in the mne environment resulted in the previously described PyQt5 conflict problem (a mailing list discussion about a week ago). I tried the solution suggested by the devs of changing the Python interpreter in Spyder to point to the mne environment, but this was not accepted by Spyder, probably because the base environment Python interpreter was version 3.7.7, whereas the newly installed Python interpreter in the mne environment was 3.8.1? (According to the documentation, this should not be an issue, but I got an error message saying that the currently running and the pointed-to Python interpreters were incompatible.)
(Trying to upgrade the one in base does not work; and I gave up trying to downgrade the one in the mne environment.)

In the end, I changed the first line in environment.yml to ?name: base? and reinstalled.

I then downgraded PyQt5 to 5.10 with the now usual
                pip install ?PyQt5==5.10?
This will allow Spyder to run, and this is how we have done it for a long time now, on many installations on Mac OS X and Windows 10 computers.

Actually, after some unrelated tinkering (a Mayavi backend issue, topic for a later post), I ended up trying
pip install ?PyQt==5.11.3?
This also allows Spyder to run.

All the best,
Johan Wessberg

Professor
Inst. of Neuroscience and Physiology
University of Gothenburg
G?teborg, Sweden

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200710/0ec0393d/attachment.html

External Email - Use Caution

Hi Johan,
Sorry about the confusion. Both the environment.yml file and the instructions were changed earlier this week, but I was slow on getting the changed instructions backported from the [docs for the dev version](https://mne.tools/dev/install/mne_python.html#id5) into the docs for the stable version. I'll fix that immediately. As for the solution of setting the python interpreter within spyder: one of our devs tested it before the change was made, and it worked for them, but I don't know what version of macOS they were running. I can now confirm that for macOS 10.15.5 "Catalina" I experience the same problem as you: Spyder will not allow me to change the interpreter, saying "You selected an invalid Python interpreter for the console so the previous interpreter will stay. Please make sure to select a valid one." I will raise this problem with the Spyder developers ASAP, and report back here.
-- dan
Daniel McCloy
https://dan.mccloy.info
Research Scientist
Institute for Learning and Brain Sciences
University of Washington

??? Original Message ???

External Email - Use Caution

Hi Johan,
I've reported the issue to Spyder developers here; if you have a GitHub account you can subscribe to that issue to stay abreast of progress toward a fix:
https://github.com/spyder-ide/spyder/issues/13252
-- dan
Daniel McCloy
https://dan.mccloy.info
Research Scientist
Institute for Learning and Brain Sciences
University of Washington

??? Original Message ???