polex icon indicating copy to clipboard operation
polex copied to clipboard

TypeError: __init__() got an unexpected keyword argument 'max_value'

Open PenghangF opened this issue 5 years ago • 3 comments

when I use python to run the ncltpoles.py in ubuntu16.04, I met thiserror Screenshot from 2020-02-25 16-08-35 : 2012-01-08 Traceback (most recent call last): File "ncltpoles.py", line 516, in save_global_map() File "ncltpoles.py", line 119, in save_global_map with progressbar.ProgressBar(max_value = len(imaps)) as bar: TypeError: init() got an unexpected keyword argument 'max_value'

PenghangF avatar Feb 25 '20 08:02 PenghangF

I received the same error on WSL for Ubuntu 18.04 on the same dataset

snbenge avatar Apr 28 '20 15:04 snbenge

Solved by: pip uninstall progressbar pip install progressbar2

snbenge avatar Apr 29 '20 04:04 snbenge

I use pycham to run the ncltpoles.py in windows,received the same error i changed 'max_value' into 'maxvalue' to adapt to the def in progressbar.py It seems to be working

Huashuijingying avatar Feb 20 '23 15:02 Huashuijingying