Does your environment have sudo?
Paul
On 06/08/2019, Tashrif Billah <[log in to unmask]> wrote:
> Error message:
>
> ```
> [root@512228747be2 home]# python fslinstaller.py -V 5.0.11 -p -d
> `pwd`/fsl-5.0.11-centos7
> --- FSL Installer - Version 3.0.16 ---
> When asked a question, the default answer is given in square brackets.
> Hit the Enter key to accept this default answer.
> Downloading...
> Checking FSL package
> [OK] File downloaded
> Installing FSL software version 5.0.11...
> Traceback (most recent call last):
> File "fslinstaller.py", line 2899, in <module>
> do_install(options, installer_settings)
> File "fslinstaller.py", line 2760, in do_install
> archive=fname, fsldir=fsldir)
> File "fslinstaller.py", line 2280, in install_archive
> unarchive, ua_option = archive_type(archive)
> File "fslinstaller.py", line 2172, in archive_type
> file_type = run_cmd("file %s" % (archive))
> File "fslinstaller.py", line 416, in run_cmd
> cmd = Popen(command_line, stdin=PIPE, stdout=PIPE, stderr=PIPE)
> File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
> errread, errwrite)
> File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory
>
> ```
>
> Environment:
> A docker container with Centos7 image:
>
> ```
> docker pull centos:7.5.1804
> docker run --rm -ti -v /home:/home centos
> apt-get update
> apt-get install python2.7
>
> ```
>
> Probable solution:
>
> https://stackoverflow.com/questions/30657858/file-gets-created-but-subprocess-call-says-no-such-file-or-directory
>
> Setting `shell=True` didn't help me because it might have fixed the
> particular subprocess call in the above, but other calls broke.
>
> Did anyone else experience this issue?
>
> ########################################################################
>
> To unsubscribe from the FSL list, click the following link:
> https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1
>
########################################################################
To unsubscribe from the FSL list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1
|