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
Illegal instruction when importing Keras/Tensorflow with CPU not supporting AVX #2562
Comments
Hi,
What is your hardware configuration (CPU type)? Before digging too extensively, could you please try the following:
|
I tried install SCT via virtual machine, but failed again.
Installation validation Failed! Please copy the historic of this Terminal (starting with the command install_sct) and paste it in the SCT Help forum (create a new discussion): http://forum.spinalcordmri.org/c/sct Installation failed brain@neurodebian:~/spinalcordtoolbox-4.2.0$ |
I tried install SCT via virtual machine, but failed again.
|
@zgm0407 likely related to this issue. It is possible that your CPU version does not support AVX, which is used by TF v1.5 and higher, as explained here. Could you please try to downgrade to TF 1.5 to see if it works? Please run the following in your virtual machine environment (and then copy/paste your entire Terminal output):
|
It would be nice to check if CPU supports AVX before installing SCT. One way to do it would be to check if the output of the following command is not empty:
But the above command does not work on OSX (and possibly not on all Linux distros). @bcdarwin @cfhammill any insight/idea how to proceed best? |
Maybe either depend on https://github.com/workhorsy/py-cpuinfo, which uses no command-line programs which might not be installed or other Python libraries, or read the code there to find out how to get OSX (/Windows) CPU info. |
right, the only thing is that ideally, we would do the check before installing Python+SCT, as done here. On the other hand, doing it in Python would be easier/cleaner. We could add this check under |
I guess there are three options:
|
ok, i think we should go for the 3rd one. The pros are:
the only cons i see is:
|
I'm following up on the issue you had while installing SCT, you experienced an We have solved that issue in a pre-release, and we would like to ask users who have experienced that issue to make sure this solution works in most cases. Could you please go back to the computer that produced that error, and try the following (copy/paste the Terminal output): git clone --branch=jca/2562-tensorflow-1.5 --depth=1 https://github.com/neuropoly/spinalcordtoolbox.git sct-tf1.5
cd sct-tf1.5/
yes | ./install_sct Open a new Terminal and run (send us this terminal output if at least one test fails): sct_testing Thanks! |
Inside conda virtual env |
I run sct_check_dependencies after launch sct_4.0.0 on Win10's docker DeskTop, it seemed something wrong. how can I resolve the problem?
Description
The text was updated successfully, but these errors were encountered: