spinalcordtoolbox / sct_docker

Docker distribution of Spinal Cord Toolbox
3 stars 3 forks source link

sct_docker build fails #22

Closed alexfoias closed 5 years ago

alexfoias commented 5 years ago

Using version https://github.com/neuropoly/sct_docker/commit/c99a4714386bda08a3e5f3b091f06b1173656fb9

The docker build fails for Fedora 25, 26, 27, 28.

To generate build I used the command: ./sct_docker_images.py generate --version 4.0.0-beta.5 --distros fedora:28

Here is the message:

Installing Python dependencies...
Collecting numpy
ERROR: Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path: /etc/pki/ca-trust/source/anchors/zougloub.eu.pem

Collecting numpy (from -r requirements.txt (line 1))
ERROR: Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path: /etc/pki/ca-trust/source/anchors/zougloub.eu.pem

Obtaining file:///home/sct/sct_4.0.0-beta.5
Installing collected packages: spinalcordtoolbox
  Running setup.py develop for spinalcordtoolbox
Successfully installed spinalcordtoolbox

Creating launchers for Python scripts...

Installing binaries...
>> sct_download_data -d binaries_debian -o /home/sct/sct_4.0.0-beta.5/bin
Traceback (most recent call last):
  File "/home/sct/sct_4.0.0-beta.5/scripts/sct_download_data.py", line 22, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'
Failed to download SCT binaries.
Installation failed

The command '/bin/bash -c curl --location https://github.com/neuropoly/spinalcordtoolbox/archive/4.0.0-beta.5.tar.gz | gunzip | tar x && cd spinalcordtoolbox-4.0.0-beta.5 && sed -i -e 's/conda install/conda --insecure install/g'  -e "s@pip install@pip --trusted-host pypi.org --trusted-host pythonhosted.org --cert ${CERTDIR}/zougloub.eu.pem install@g" install_sct && yes | ./install_sct && cd - && rm -rf spinalcordtoolbox-4.0.0-beta.5' returned a non-zero code: 1
ERROR:root:sct-4.0.0-beta.5-fedora-25 failed with error code 1
Done building images
ERROR:root:sct-4.0.0-beta.5-fedora-25 failed with error code 1
[1]
ERROR:root:Not proceeding further as one distro failed

The problem seems to persists for ubuntu:16.04

zougloub commented 5 years ago

I also notice that my caching proxy thing has contaminated the normal build...

zougloub commented 5 years ago

@alexfoias please try again with master?

./sct_docker_images.py generate --version 4.0.0-beta.5 --distros fedora:28
...
Successfully tagged sct-4.0.0-beta.5-fedora-28:latest
Done building images
INFO:root:sct-4.0.0-beta.5-fedora-28 finished successfully
alexfoias commented 5 years ago

Tested on ubuntu 16.04 and the build worked. thanks @zougloub