esmf-org / esmf-profiler

ESMF Profiler application converts binary traces into a web based, dynamic report.
0 stars 2 forks source link

Head of development broken on Hera #121

Closed rsdunlapiv closed 2 years ago

rsdunlapiv commented 2 years ago

Describe the bug

esmf-profiler: error: the following arguments are required: -t/--tracedir, -n/--name, -o/--outdir
[venv] [Rocky.Dunlap@hfe04 esmf-profiler]$ esmf-profiler -t tests/fixtures/test-traces/atm-ocn-concurrent -n slug -o ./slug -p git@github.com:esmf-org/app-profiles.git
esmf_profiler.main : Processing trace: tests/fixtures/test-traces/atm-ocn-concurrent
esmf_profiler.main : Generating 1 profiles
Traceback (most recent call last):
  File "/scratch2/NCEPDEV/stmp1/Rocky.Dunlap/esmf-profiler/venv/bin/esmf-profiler", line 11, in <module>
    load_entry_point('esmf-profiler', 'console_scripts', 'esmf-profiler')()
  File "/scratch2/NCEPDEV/stmp1/Rocky.Dunlap/esmf-profiler/src/esmf_profiler/main.py", line 234, in main
    push_profile_to_repo(input_path=output_path, name=args.name, url=args.push)
  File "/scratch2/NCEPDEV/stmp1/Rocky.Dunlap/esmf-profiler/src/esmf_profiler/main.py", line 96, in push_profile_to_repo
    git.clone(url, _temp)
  File "/scratch2/NCEPDEV/stmp1/Rocky.Dunlap/esmf-profiler/src/esmf_profiler/git.py", line 109, in clone
    return _command_safe(cmd, target_path)
  File "/scratch2/NCEPDEV/stmp1/Rocky.Dunlap/esmf-profiler/src/esmf_profiler/git.py", line 30, in _command_safe
    encoding="utf-8",
  File "/usr/lib64/python3.6/subprocess.py", line 423, in run
    with Popen(*popenargs, **kwargs) as process:
TypeError: __init__() got an unexpected keyword argument 'capture_output'
[venv] [Rocky.Dunlap@hfe04 esmf-profiler]$ which python3
/scratch2/NCEPDEV/stmp1/Rocky.Dunlap/esmf-profiler/venv/bin/python3
[venv] [Rocky.Dunlap@hfe04 esmf-profiler]$ python3 --version
Python 3.6.8

This might be related to Python 3.6.8 because head of development does work on 3.9.5.

ryanlong1004 commented 2 years ago

Python <3.7 does not support capture_output for subprocess.run.

image

Verified pushing to Github.

image