pesummary accesses protected variable from tqdm
I've just noticed (after a job failed) that pesummary
accesses a protected variable from tqdm
at https://git.ligo.org/lscsoft/pesummary/-/blob/master/pesummary/utils/utils.py#L28.
This works with the latest version of the code, but not with an (admittedly much) older version I was running.
It also looks like this is done to support python 2, which pesummary
doesn't do.
Please can we remove this from the code, as I suspect it will be unceremoniously removed from tqdm
in some future release?
This was the traceback
Traceback (most recent call last):
File "/home/colm.talbot/.conda/envs/bilby/bin/summarypages", line 7, in <module>
from pesummary.cli.summarypages import main
File "/home/colm.talbot/.conda/envs/bilby/lib/python3.7/site-packages/pesummary/cli/summarypages.py", line 18, in <module>
from pesummary.utils.utils import logger, gw_results_file
File "/home/colm.talbot/.conda/envs/bilby/lib/python3.7/site-packages/pesummary/utils/__init__.py", line 16, in <module>
from .utils import gw_results_file, functions
File "/home/colm.talbot/.conda/envs/bilby/lib/python3.7/site-packages/pesummary/utils/utils.py", line 28, in <module>
from tqdm.utils import _range
ModuleNotFoundError: No module named 'tqdm.utils'
Edited by Colm Talbot