Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Okdesk opened this issue May 1, 2024 · 1 comment
Open

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

Okdesk opened this issue May 1, 2024 · 1 comment

Comments

@Okdesk
Copy link

Okdesk commented May 1, 2024

Following the instructions to run RAG with Phi3 gives:

streamlit run cookbook/llms/ollama/rag/app.py
Traceback (most recent call last):
File "/Users/gangcai/opt/miniconda3/bin/streamlit", line 8, in
sys.exit(main())
File "/Users/gangcai/opt/miniconda3/lib/python3.9/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/Users/gangcai/opt/miniconda3/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/Users/gangcai/opt/miniconda3/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/gangcai/opt/miniconda3/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/gangcai/opt/miniconda3/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/Users/gangcai/opt/miniconda3/lib/python3.9/site-packages/streamlit/cli.py", line 191, in main_run
_main_run(target, args, flag_options=kwargs)
File "/Users/gangcai/opt/miniconda3/lib/python3.9/site-packages/streamlit/cli.py", line 212, in _main_run
command_line = _get_command_line_as_string()
File "/Users/gangcai/opt/miniconda3/lib/python3.9/site-packages/streamlit/cli.py", line 201, in _get_command_line_as_string
cmd_line_as_list.extend(click.get_os_args())
AttributeError: module 'click' has no attribute 'get_os_args'

How can I fix this? Would love to see it run. Thanks!

@ysolanky
Copy link
Contributor

ysolanky commented May 1, 2024

@Okdesk I am not able to replicate this error and it seems like it's from Streamlit

Can you make sure you upgraded your libraries to match the requirements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants