Installing binaries...
sct_download_data -d binaries_debian -o /home/sahar/sct_4.1.0/bin
--
Spinal Cord Toolbox (4.1.0)
Folder /home/sahar/sct_4.1.0/bin has been created.
Trying URL: https://osf.io/bt58d/?action=download
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /bt58d/?action=download
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /bt58d/?action=download
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /bt58d/?action=download
Link download error, trying next mirror (error was: HTTPSConnectionPool(host='osf.io', port=443): Max retries exceeded with url: /bt58d/?action=download (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)))
Trying URL: https://www.neuro.polymtl.ca/_media/downloads/sct/20190930_sct_binaries_linux.tar.gz
Downloading 20190930_sct_binaries_linux.tar.gz...
Status: 81.1MB [01:35, 848kB/s]
Create temporary folder (/tmp/sct-20191205164103.654628-jx1fq50m)...
Unzip data to: /tmp/sct-20191205164103.654628-jx1fq50m
Check if folder already exists on the destination path...
Remove temporary folders...
Done!
All requirements installed!
. /home/sahar/sct_4.1.0/python/bin/activate /home/sahar/sct_4.1.0/python
Installing data...
rm -rf /home/sahar/sct_4.1.0/data
mkdir -p /home/sahar/sct_4.1.0/data
cd /home/sahar/sct_4.1.0/data
sct_download_data -d PAM50
--
Spinal Cord Toolbox (4.1.0)
Trying URL: https://osf.io/kc3jx/?action=download
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /kc3jx/?action=download
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /kc3jx/?action=download
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /kc3jx/?action=download
Link download error, trying next mirror (error was: HTTPSConnectionPool(host='osf.io', port=443): Max retries exceeded with url: /kc3jx/?action=download (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)))
Trying URL: https://www.neuro.polymtl.ca/_media/downloads/sct/20181214_PAM50.zip
Downloading 20181214_pam50.zip...
Status: 70.8MB [01:23, 850kB/s]
Create temporary folder (/tmp/sct-20191205164239.062522-z87c0bmy)...
Unzip data to: /tmp/sct-20191205164239.062522-z87c0bmy
Check if folder already exists on the destination path...
Remove temporary folders...
Done!
sct_download_data -d gm_model
--
Spinal Cord Toolbox (4.1.0)
Trying URL: https://osf.io/ugscu/?action=download
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /ugscu/?action=download
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /ugscu/?action=download
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /ugscu/?action=download
Link download error, trying next mirror (error was: HTTPSConnectionPool(host='osf.io', port=443): Max retries exceeded with url: /ugscu/?action=download (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)))
Trying URL: https://www.neuro.polymtl.ca/_media/downloads/sct/20160922_gm_model.zip
Downloading 20160922_gm_model.zip...
Status: 10.3MB [00:11, 871kB/s]
Create temporary folder (/tmp/sct-20191205164256.597817-rpc3d28n)...
Unzip data to: /tmp/sct-20191205164256.597817-rpc3d28n
Check if folder already exists on the destination path...
Remove temporary folders...
Done!
sct_download_data -d optic_models
--
Spinal Cord Toolbox (4.1.0)
Trying URL: https://osf.io/g4fwn/?action=download
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /g4fwn/?action=download
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /g4fwn/?action=download
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /g4fwn/?action=download
Link download error, trying next mirror (error was: HTTPSConnectionPool(host='osf.io', port=443): Max retries exceeded with url: /g4fwn/?action=download (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)))
Trying URL: https://www.neuro.polymtl.ca/_media/downloads/sct/20170413_optic_models.zip
Downloading 20170413_optic_models.zip...
Status: 17.7kB [00:00, 99.5kB/s]
Create temporary folder (/tmp/sct-20191205164302.272191-7lp6fxyc)...
Unzip data to: /tmp/sct-20191205164302.272191-7lp6fxyc
Check if folder already exists on the destination path...
Remove temporary folders...
Done!
sct_download_data -d pmj_models
--
Spinal Cord Toolbox (4.1.0)
Trying URL: https://osf.io/4gufr/?action=download
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /4gufr/?action=download
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /4gufr/?action=download
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /4gufr/?action=download
Link download error, trying next mirror (error was: HTTPSConnectionPool(host='osf.io', port=443): Max retries exceeded with url: /4gufr/?action=download (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)))
Trying URL: https://www.neuro.polymtl.ca/_media/downloads/sct/20170922_pmj_models.zip
Downloading 20170922_pmj_models.zip...
Status: 8.87kB [00:00, 5.76MB/s]
Create temporary folder (/tmp/sct-20191205164307.496233-acti4m2b)...
Unzip data to: /tmp/sct-20191205164307.496233-acti4m2b
Check if folder already exists on the destination path...
Remove temporary folders...
Done!
sct_download_data -d deepseg_sc_models
--
Spinal Cord Toolbox (4.1.0)
Trying URL: https://osf.io/avf97/?action=download
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /avf97/?action=download
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /avf97/?action=download
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /avf97/?action=download
Link download error, trying next mirror (error was: HTTPSConnectionPool(host='osf.io', port=443): Max retries exceeded with url: /avf97/?action=download (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)))
Trying URL: https://www.neuro.polymtl.ca/_media/downloads/sct/20180610_deepseg_sc_models.zip
Downloading 20180610_deepseg_sc_models.zip...
Status: 58.7MB [01:05, 891kB/s]
Create temporary folder (/tmp/sct-20191205164418.712245-qlqx9fef)...
Unzip data to: /tmp/sct-20191205164418.712245-qlqx9fef
Check if folder already exists on the destination path...
Remove temporary folders...
Done!
sct_download_data -d deepseg_gm_models
--
Spinal Cord Toolbox (4.1.0)
Trying URL: https://osf.io/b9y4x/?action=download
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /b9y4x/?action=download
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /b9y4x/?action=download
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /b9y4x/?action=download
Link download error, trying next mirror (error was: HTTPSConnectionPool(host='osf.io', port=443): Max retries exceeded with url: /b9y4x/?action=download (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)))
Trying URL: https://www.neuro.polymtl.ca/_media/downloads/sct/20180205_deepseg_gm_models.zip
Downloading 20180205_deepseg_gm_models.zip...
Status: 2.28MB [00:04, 466kB/s]
Create temporary folder (/tmp/sct-20191205164429.557469-y_fbpoyn)...
Unzip data to: /tmp/sct-20191205164429.557469-y_fbpoyn
Check if folder already exists on the destination path...
Remove temporary folders...
Done!
sct_download_data -d deepseg_lesion_models
--
Spinal Cord Toolbox (4.1.0)
Trying URL: https://osf.io/eg7v9/?action=download
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /eg7v9/?action=download
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /eg7v9/?action=download
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /eg7v9/?action=download
Link download error, trying next mirror (error was: HTTPSConnectionPool(host='osf.io', port=443): Max retries exceeded with url: /eg7v9/?action=download (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)))
Trying URL: https://www.neuro.polymtl.ca/_media/downloads/sct/20180613_deepseg_lesion_models.zip
Downloading 20180613_deepseg_lesion_models.zip...
Status: 16.0MB [00:18, 889kB/s]
Create temporary folder (/tmp/sct-20191205164452.818718-d24ff_sw)...
Unzip data to: /tmp/sct-20191205164452.818718-d24ff_sw
Check if folder already exists on the destination path...
Remove temporary folders...
Done!
sct_download_data -d c2c3_disc_models
--
Spinal Cord Toolbox (4.1.0)
Trying URL: https://osf.io/t97ap/?action=download
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /t97ap/?action=download
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /t97ap/?action=download
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)': /t97ap/?action=download
Link download error, trying next mirror (error was: HTTPSConnectionPool(host='osf.io', port=443): Max retries exceeded with url: /t97ap/?action=download (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),)))
Trying URL: https://www.neuro.polymtl.ca/_media/downloads/sct/20190117_c2c3_disc_models.zip
Unexpected: link doesn't provide a filename
Download error
Create temporary folder (/tmp/sct-20191205164458.404496-mb2hgxpz)...
Unzip data to: /tmp/sct-20191205164458.404496-mb2hgxpz
Traceback (most recent call last):
File "/home/sahar/sct_4.1.0/scripts/sct_download_data.py", line 248, in <module>
res = main()
File "/home/sahar/sct_4.1.0/scripts/sct_download_data.py", line 140, in main
unzip(tmp_file, dest_tmp_folder, verbose)
File "/home/sahar/sct_4.1.0/scripts/sct_download_data.py", line 174, in unzip
if compressed.endswith('zip'):
AttributeError: 'NoneType' object has no attribute 'endswith'
ERROR: Command failed.
Installation failed
sahar@sahar-Inspiron-N5110:~/spinalcordtoolbox-4.1.0$