You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed this project with python3.10 but when trying to run...I couldn't find reference to str2bool library used in main.py
please help to find the reference.
Thanks!
The text was updated successfully, but these errors were encountered:
You can use the below code snippet instead and it would work as expected. Thanks! :)
#from utils import #str2bool
def str2bool(v):
if isinstance(v, bool):
return v
if v.lower() in ("yes", "true", "t", "y", "1"):
return True
if v.lower() in ("no", "false", "f", "n", "0"):
return False
raise argparse.ArgumentTypeError("Boolean value expected.")
I have installed this project with python3.10 but when trying to run...I couldn't find reference to str2bool library used in main.py
please help to find the reference.
Thanks!
The text was updated successfully, but these errors were encountered: