Looks like click removed get_os_args today: github
I think it’ll take a patch to streamlit library (get_os_args is removed, use sys.argv[1:] instead), so in the meantime pinning click<=8.0.4 should solve it. (worked locally for me running with python -m streamlit run app.py)
ex requirements.txt:
click<=8.0.4
streamlit
EDIT someone already opened a streamlit issue