Could sct_install -d not check the existance of the data folder?

Dear all,

we installed the version 4.0.0-beta.3 and tried to run it with the -d flag and this happened (i am posting nothing in between since everything worked fine)

nic@nic-docker:~/sct$ ./install_sct -d

Validate installation…
SCT info:

  • version: git-master-5de003c7962051320e27c2ba579bf9f5bcc73a39
  • path: /home/nic/sct
    OS: linux (Linux-4.15.0-47-generic-x86_64-with-debian-stretch-sid)
    CPU cores: Available: 12, Used by SCT: 12
    RAM: MemTotal: 131699548 kB
    total used free shared buff/cache available
    Memoria: 128612 4969 97467 284 26175 121935
    Swap: 9401 0 9401
    Check Python executable…[OK]
    Using bundled python 3.7.3 (default, Mar 27 2019, 22:11:17)
    [GCC 7.3.0] at /home/nic/sct/python/bin/python
    Check if data are installed…Traceback (most recent call last):
    File “/home/nic/sct/scripts/sct_check_dependencies.py”, line 364, in
    main()
    File “/home/nic/sct/scripts/sct_check_dependencies.py”, line 177, in main
    if os.listdir(sct.data_dir):
    FileNotFoundError: [Errno 2] No such file or directory: ‘/home/nic/sct/data’
    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

Of course the installation failed since we did not have the data folder.
We were wondering whether the data folder is absolutely necessary for the sct to work and, perhaps, whether the -d flag could skip over this fact?

thanks

aran

Hi Aran,

indeed, the data folder is absolutely necessary for SCT to run properly. It includes all the models, template, etc.

the -d flag is mostly use for development, when we have to re-install SCT multiple times for debugging and we know the data folder is already there (to save time)

Cheers,
Julien