<div dir="ltr"><br><div>Hi Mainak,</div><div>after uninstalling all the packages and reinstalling anaconda, the errors persisted, but now the error messages contained the right path to my anaconda installation. </div><div>I finally found out that there were two apparently independent issues, one with scipy&#39;s cobyla function and one with numpy&#39;s einsum function:  <br></div><div><a href="https://github.com/scipy/scipy/issues/8118">https://github.com/scipy/scipy/issues/8118</a><br></div><div><a href="https://github.com/numpy/numpy/issues/10343">https://github.com/numpy/numpy/issues/10343</a><br></div><div>I managed to fix it by manually editing cobyla and uninstalling and reinstalling numpy (not sure why the updated version wasn&#39;t installed right away). </div><div>Not sure whether my solution is the cleanest one, but I thought it might be usefull to know these issues in case someone else runs into similar problems. </div><div>Best,</div><div>Sophie</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">Mainak Jas &lt;<a href="mailto:mainakjas@gmail.com">mainakjas@gmail.com</a>&gt; schrieb am Di., 20. Feb. 2018 um 18:21 Uhr:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi Sophie,<br><br></div>I suspect you have conflicting python packages in your /home/sh252228/.local/ directory which are installed when you use the flag --user with pip. There is a priority order for the packages to be imported and it&#39;s possible you are importing some library which is not from Anaconda or an older version.<br><br>Make sure you have removed everything that is in site.getusersitepackages() and site.getsitepackages(). Only after that, make a fresh install of Anaconda.<br><br></div>I would recommend asking your sysadmin for help if you&#39;re still stuck.<br><br></div>Best,<br></div>Mainak</div><div dir="ltr"><br><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 20, 2018 at 5:55 PM, Sophie Herbst <span dir="ltr">&lt;<a href="mailto:ksherbst@googlemail.com" target="_blank">ksherbst@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Mainak,<div>sorry to bug you again, but it still doesn&#39;t work. </div><div><br></div><div>I uninstalled and reinstalled anaconda following the descriptions on the mne website. </div><div>When installing the dependencies, I run into <a href="https://github.com/conda/conda/issues/5985" target="_blank">this</a> issue and followed the work around of creating an environment for mayavi. </div><div>I get no error messages during installation, but still the same errors with interpolate_bads. </div><div>Any idea what I could do? </div><div><br></div><div>Thank you!</div><span class="m_1138451966599136714HOEnZb"><font color="#888888"><div>Sophie</div></font></span></div><div class="m_1138451966599136714HOEnZb"><div class="m_1138451966599136714h5"><br><div class="gmail_quote"><div dir="ltr">Sophie Herbst &lt;<a href="mailto:ksherbst@googlemail.com" target="_blank">ksherbst@googlemail.com</a>&gt; schrieb am Di., 20. Feb. 2018 um 17:00 Uhr:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Mainak,</div>Indeed. It doesn&#39;t reproduce on another system.  <div>Thank you for pointing that out!</div></div><div dir="ltr"><div>Sophie</div></div><br><div class="gmail_quote"><div dir="ltr">Mainak Jas &lt;<a href="mailto:mainakjas@gmail.com" target="_blank">mainakjas@gmail.com</a>&gt; schrieb am Di., 20. Feb. 2018 um 16:10 Uhr:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Sophie,<br><br></div>If I had to guess, I would say you have an installation problem. Can you make sure you reproduce this problem on other systems?<br><br></div>Mainak<br><div><div class="gmail_extra"><br><div class="gmail_quote"></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote">On Tue, Feb 20, 2018 at 10:56 AM, Sophie Herbst <span dir="ltr">&lt;<a href="mailto:ksherbst@googlemail.com" target="_blank">ksherbst@googlemail.com</a>&gt;</span> wrote:<br></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear list,<div>I am running into errors when trying to interpolate bad channels. </div><div>I have tried it on different versions of my M/EEG data, but the problem is there from the raw import (data recorded at Neurospin). Running interpolate_bads on freshly imported data (no maxfilter applied) gives the errors below. Same after applying Maxfilter (and adding a bad MEG channel). <br></div><div><br></div><div>Any help would be greatly appreciated. </div><div>Best, Sophie</div><div><br></div><b>Picking either meg, mag or grad:</b><br>  File &quot;/home/sh252228/.local/lib/python2.7/site-packages/numpy/core/einsumfunc.py&quot;, line 710, in einsum_path<br>    &quot;not match previous terms.&quot;, char, tnum)<br><br>ValueError: (&quot;Size of label &#39;%s&#39; for operand %d does not match previous terms.&quot;, &#39;i&#39;, 1)<br><br><b>Picking EEG:</b><br>File &quot;/home/sh252228/.local/lib/python2.7/site-packages/scipy/optimize/cobyla.py&quot;, line 252, in _minimize_cobyla<br>    rhoend=rhoend, iprint=iprint, maxfun=maxfun,<br><br>UnboundLocalError: local variable &#39;iprint&#39; referenced before assignment</div>
<br></blockquote></div></div></div></div><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div></div></div>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
</blockquote></div></blockquote></div>
</div></div><br>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div></div></div></div></div></div></div>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
</blockquote></div>