[Mne_analysis] Latest environment.yml again installing MNE in a dedicated 'mne' environment
dan at mccloy.info
Fri Jul 10 14:16:43 EDT 2020
External Email - Use Caution
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:
Institute for Learning and Brain Sciences
University of Washington
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, July 10, 2020 9:30 AM, Dan McCloy <dan at mccloy.info> wrote:
> 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
> Research Scientist
> Institute for Learning and Brain Sciences
> University of Washington
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Friday, July 10, 2020 5:43 AM, Johan Wessberg <johan.wessberg at gu.se> wrote:
>> External Email - Use Caution
>> 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!
>> 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
>> Inst. of Neuroscience and Physiology
>> University of Gothenburg
>> Göteborg, Sweden
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mne_analysis