Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: loading failed for 'i386' on windows #5

Closed
DejanDraschkow opened this issue May 6, 2019 · 4 comments
Closed

ERROR: loading failed for 'i386' on windows #5

DejanDraschkow opened this issue May 6, 2019 · 4 comments

Comments

@DejanDraschkow
Copy link
Contributor

first of all - amazing work! thanks!

I am getting into trouble when trying to install the package on two different windows machines (iOS works perfectly well).

Error: loading failed
Execution halted
*** arch - x64
Importing MNE version=0.17.dev0, path='C:\Users\Public\ANACON~1\lib\site-packages\mne'
ERROR: loading failed for 'i386'

this is in response to devtools::install_github("mne-tools/mne-r")

I am trying to troubleshoot this at the moment, but maybe somebody has an idea?
It seems to be defaulting to the wrong python version during installation.

thanks,
dejan

@dengemann
Copy link
Member

@DejanDraschkow the question is what exactly fails. Can you import mne inside python? Could it be that you use a 32 bit version of R? Perhaps update the R installation. This is what apparently worked for @craddm.

@craddm
Copy link

craddm commented May 6, 2019

@DejanDraschkow the problem, I think, is that if both 32-bit and 64-bit versions of R are installed, devtools tries to build for both of them. During the build process, it checks if the newly built package can be loaded under both 32-bit and 64-bit R versions. When it tries running the 32-bit version, the reticulate package causes an error if the version of Python it has access to is 64-bit, so the install process fails. I think the key part of the update which spared me this problem was not installing the 32-bit version of R, as now devtools only builds for 64-bit.

Rather than having to update R, you can add INSTALL_opts=c("--no-multiarch") to your install_github() call:
devtools::install_github("mne-tools/mne-r", INSTALL_opts=c("--no-multiarch"))

This should force it to only build the package for your currently running R version.

edit: Actually, I suspect this might also happen because reticulate is loaded by the mne-r package itself using library(reticulate) , which it shouldn't be

@DejanDraschkow
Copy link
Contributor Author

perfect, this worked :)
and yes, the issue might be connected to loading reticulate in the package

@dengemann
Copy link
Member

This looks like something we should document in the troubleshooting section here https://mne-tools.github.io/mne-r/index.html#troubleshooting-and-known-issues-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants