bopen/elevation

Selfcheck fails to use curl 7.15.5 because curl --version has non-zero exit status

kundor opened this issue · 2 comments

On my system, I have an old version of curl (7.15.5.) Running curl --version exits with a status of 2.

eio selfcheck runs the code (line 38 of util.py)

        try:
            subprocess.check_output(check_cli, shell=True, stderr=subprocess.STDOUT)
        except subprocess.CalledProcessError:
            msg.append('%r not found or not usable.' % tool_name)

which fails then, even though curl is available.

Perhaps you could instead do something like

        try:
            subprocess.call(check_cli.split(), stderr=subprocess.STDOUT)
        except OSError:
            msg.append('%r not found or not usable.' % tool_name)

Sorry for being so late. I really like your suggestion, thanks!

@kundor unfortunately your suggestion or other variations that I tried don't work. The only possibility is to call curl --help instead of --version, can you test is it works for you?