AttributeError: module 'click' has no attribute 'get_os_args'

I get this error when trying to create a new application, your help please

Hi @Antonella_Campana, welcome to the Streamlit community!

This is an issue that is affecting several packages that have click as a dependency. We will patch Streamlit to avoid having this issue in the future, but in the meantime, if you add the following line to your requirements.txt file and re-boot the app, it should get resolved

click==8.0

Best,
Randy

2 Likes

Hello.

I tried 8.0 and didn’t work, yesterday I had the same problem but tried 8.0.4 and it worked, however now none of the two options worked for me

I tries on a different app updating requirements.txt with click==8.0 and didn’t work:

click == 7.1.2 does the trick

Today Streamlit version 1.8.1 was released (with a fix for the dependency issue with the click library) and is also available in the pypi repository.
Therefore this issue should be resolved.

4 Likes

It works for me. Thanks a lot!
My app

streamlit>=1.8.1

should do the trick, there is no need for nailing the click version anymore

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.