Unable to install sct due to tensorflow fail

ok, let’s try this:

cd ~/sct-master/
source python/etc/profile.d/conda.sh 
conda activate python/envs/venv_sct/
pip install Keras==2.0.6
python -c 'import keras; print(keras.__version__)'

Here is the output:

(venv_sct) ipac-imac:sct-master shazeebm$ cd ~/sct-master/

(venv_sct) ipac-imac:sct-master shazeebm$ source python/etc/profile.d/conda.sh 

(venv_sct) ipac-imac:sct-master shazeebm$ conda activate python/envs/venv_sct/

(venv_sct) ipac-imac:sct-master shazeebm$ pip install Keras==2.0.6

Collecting Keras==2.0.6

Downloading https://files.pythonhosted.org/packages/ec/45/f69527dca07582dddce1e66921484e50802f4d15095a72c793e15723bf46/Keras-2.0.6.tar.gz (228kB)

|████████████████████████████████| 235kB 1.1MB/s 

Collecting theano (from Keras==2.0.6)

Downloading https://files.pythonhosted.org/packages/7d/c4/6341148ad458b6cd8361b774d7ee6895c38eab88f05331f22304c484ed5d/Theano-1.0.4.tar.gz (2.8MB)

|████████████████████████████████| 2.8MB 2.3MB/s 

Requirement already satisfied: pyyaml in ./python/envs/venv_sct/lib/python3.6/site-packages (from Keras==2.0.6) (5.1.1)

Requirement already satisfied: six in ./python/envs/venv_sct/lib/python3.6/site-packages (from Keras==2.0.6) (1.12.0)

Requirement already satisfied: numpy>=1.9.1 in ./python/envs/venv_sct/lib/python3.6/site-packages (from theano->Keras==2.0.6) (1.16.4)

Requirement already satisfied: scipy>=0.14 in ./python/envs/venv_sct/lib/python3.6/site-packages (from theano->Keras==2.0.6) (1.3.0)

Building wheels for collected packages: Keras, theano

Building wheel for Keras (setup.py) ... done

Stored in directory: /Users/shazeebm/Library/Caches/pip/wheels/d1/70/83/9be5aef9c4c863ea21adacd0be83139b20d3d819401a2b07d3

Building wheel for theano (setup.py) ... done

Stored in directory: /Users/shazeebm/Library/Caches/pip/wheels/88/fb/be/483910ff7e9f703f30a10605ad7605f3316493875c86637014

Successfully built Keras theano

Installing collected packages: theano, Keras

Found existing installation: Keras 2.2.4

Uninstalling Keras-2.2.4:

Successfully uninstalled Keras-2.2.4

Successfully installed Keras-2.0.6 theano-1.0.4

(venv_sct) ipac-imac:sct-master shazeebm$ python -c 'import keras; print(keras.__version__)'

Using TensorFlow backend.

Illegal instruction: 4

OK, this is going to take more time as I need to access a mid-2007 Laptop in order to be able to reproduce (and then fix) the error on my end. Stay tuned!

Sure thing. By the way, do you think accessing my system remotely will help you expedite the process? This is a secondary system, hence I can work on my other computer in the mean time. If so let me know and we can communicate through email to exchange information.

Best Regards,

-Salman-

Yes, remote access would definitely help as I was not able to find a mid-2007 laptop (yet). I am quite busy today, but let’s aim for Monday. Here’s my email address: jcohen [at] polymtl.ca

Sounds great! I’ll be in touch.

Unfortunately installing Tensorflow with Python3.6 on a 2007 macOS system does not seem feasible. The hack proposed here did not solve it.
Sorry about that.
Julien