pyinstaller not compatible with joblib based functions

External Email - Use Caution

Dear users of mne software,

I encountered a very specific issue regarding the use of pyinstaller in combination with the parallel computing performed in the variety of mne functions, based on joblib.

When I run the .exe file, created via pyinstaller my code runs until a piece of line where the parallel computing is first called upon (make_forward_solution). However, this spikes my GUI to open mulitple times (three times more), as defined by the number of cores for parallel computing. At this point, the .exe stops performing as well unfortunately.

Is anyone familiair with this problem and is there a workaround?

Thanks in advance.

Kind regards
Tijmen Wartenberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201111/f0f3438b/attachment.html

External Email - Use Caution

hi Tijmen,

we recommend you use anaconda to install Python and MNE on windows

see instructions: https://secure-web.cisco.com/1ic513LlZLjTQW_lP4-3Yi8DbHlFsWheziOLDoL7VtLHT9kWNdRGUmRhF81qTGFDVdoyUotrFCzq5WYROm3PmF46w2yNKWppfARVcKn5QT2Lrqq0DMpJpoGfUHNzf2vs-bSHWgecDC9Dwh9lJtSO1oWjlfB5QKweI7ULhLsZM7Bg2Uvdv_L4aVV_YQi2a_AogoRrsKx64yjJwgR8VUToBxuZste4LxAw59hbshpTHMDp8riSSSg7UPmIQTlZM2mCJ7mXKweUTqCwkO06YxAyj0w/https%3A%2F%2Fmne.tools%2Fstable%2Finstall%2Fmne_python.html

Alex

External Email - Use Caution

Hi Alex,

Thanks for your answer. I am using anaconda at the moment. The problem lies not with the software I am using but with the compability between mne and pyinstaller.

So I tested my scripts in anaconda and they run fine, but I get the problem I described when I transform my scripts to an exectuable via pyinstaller. After I run the .exe, the parallel computing functions using the module joblib don?t work.

Thanks.

Tijmen

External Email - Use Caution

Did you already follow the steps here?
https://secure-web.cisco.com/1Xfp1C7ZEXa58Ey7SGggEtpoABO6ZKUQz4UOG8oVDNE6W_sBJ3joZMwHi7jaxz9FSpUzTCulUx39-nW4negTcR9msvaToSr-wOAVZBBMmhB9SXiuna-j-6iDm7Ux_5Ebx4BlZm53BnuM7nNEG2CXWQAL9MC_I-OO5jGUeiE0scKydK9506AMshvsmSL1VRiHDHA0DwYlLrYw29F7Eka5sJ0a1FgR6YTnJp8Ogyye5nKw8q51wIxHJ6-scGrrN6t6sSGlEPsUQnC5WjD-lis5cFA/https%3A%2F%2Fpyinstaller.readthedocs.io%2Fen%2Fstable%2Fwhen-things-go-wrong.html

I think you're much more likely to get useful help from the pyinstaller devs. In particular, I notice that joblib is not on their list of supported packages, so I'd start by asking them about that. But do please report back and let us know what solution you find, or if you end up opening a GitHub issue the pyinstaller repository, let us know the URL so we can follow the discussion there and chime in when appropriate.
-- dan
Daniel McCloy
https://secure-web.cisco.com/17SNFiYWWZtzRcrdSDMv1PYO7k2ekF3pvLSja_GDAi8Nx6VVpM9WzkSphixIdKSpO_O1IKOESWD2Opngy4H7vBwHRz5VU7bRC_Tyfu8FgNEjl5GfPSm2bHu82uwfisvAJfdOFc7WUwliYOEWMORZaucDbNDQY1n-4nMoxfgrmmkLSWV935fX-P77xbWQDOUPomCspEeGmNbKfAzWg532VIUsAjIconqC6F0udg-u1hVU-iOQgP3L5GFnArtohDoWmQtlxkriecE0T9O-1ivAD3g/https%3A%2F%2Fdan.mccloy.info
Research Scientist
Institute for Learning and Brain Sciences
University of Washington

??? Original Message ???