payu-org / payu

A workflow management tool for numerical models on the NCI computing systems
Apache License 2.0
19 stars 26 forks source link

Breaks with tenacity >= 7.0.0 #301

Closed aidanheerdegen closed 2 years ago

aidanheerdegen commented 3 years ago

Latest upgrade to tenacity breaks payu

Traceback (most recent call last):
  File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-21.04/bin/payu-run", line 10, in <module>
    sys.exit(runscript())
  File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/payu/subcommands/run_cmd.py", line 132, in runscript
    expt.run()
  File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/payu/experiment.py", line 629, in run
    info = get_job_info()
  File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/payu/schedulers/pbs.py", line 160, in get_job_info
    info = get_qstat_info('-ft {0}'.format(jobid), 'Job Id:')
  File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/tenacity/__init__.py", line 339, in wrapped_f
    return self(f, *args, **kw)
  File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/tenacity/__init__.py", line 430, in __call__
    do = self.iter(retry_state=retry_state)
  File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-21.04/lib/python3.8/site-packages/tenacity/__init__.py", line 375, in iter
    return self.retry_error_callback(retry_state=retry_state)
TypeError: <lambda>() got an unexpected keyword argument 'retry_state'
ScottWales commented 3 years ago

This should be added as a dependency in conda/meta.yaml