hpc / hpc/mpifileutils

test/legacy/dtest/dtest fails on RHEL8 and does not run under python3

Open
#674 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
200
Forks
85
Avg merge
3d 21h
Merged PRs (30d)
2

Description

The shebang line in test/legacy/dtest/dtest is #!/usr/bin/python referring to an un-versioned python executable. No such executable exists on RHEL8 by default, nor on other more modern releases of major distros.

$ dtest/dtest
bash: dtest/dtest: /usr/bin/python: bad interpreter: No such file or directory

In addition, it does not run under python3.

$ python3 dtest/dtest 
  File "dtest/dtest", line 10
    print '\ncould not load argparse'
                                    ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('\ncould not load argparse')?

modern distros generally do not provide python2 at all, and do not provide it by default. dtest should probably be updated to run under python3, or replaced.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with test/legacy/dtest/dtest and run it with python3 to reproduce the syntax error, then inspect its Python 2-specific syntax and unversioned shebang. Done means dtest runs under Python 3 on modern distributions without the missing /usr/bin/python interpreter failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.