我不明白错误消息 - Streamlit 应用程序
I don't understand the error message - Streamlit app
我有一个在其他计算机上编写的 streamlit 应用程序,它 运行 运行得很顺利。因为我需要更换计算机,所以我将它从我的存储库克隆到新计算机并为其创建了带有 env 的目录,但是我无法 运行 它。执行以下 运行ning 代码会出现以下错误
streamlit run app.py
我收到以下错误,有人可以帮我解释一下错误是什么吗?
(venv) C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA>streamlit run app.py
Traceback (most recent call last):
File "C:\Users\CLAHAXY8W\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\CLAHAXY8W\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\Scripts\streamlit.exe\__main__.py", line 7, in <module>
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\lib\site-packages\click\core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\lib\site-packages\click\core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\lib\site-packages\click\core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\lib\site-packages\streamlit\cli.py", line 204, in main_run
_main_run(target, args, flag_options=kwargs)
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\lib\site-packages\streamlit\cli.py", line 232, in _main_run
command_line = _get_command_line_as_string()
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\lib\site-packages\streamlit\cli.py", line 221, in _get_command_line_as_string
cmd_line_as_list.extend(click.get_os_args())
AttributeError: module 'click' has no attribute 'get_os_args'
这是一个错误,Click 模块在没有增加其语义版本的情况下进行了重大更改。
在您的需求文件中固定 click==8.0
或将 Streamlit 升级到 1.8.1 以上
https://discuss.streamlit.io/t/attributeerror-module-click-has-no-attribute-get-os-args/23621/12
我有一个在其他计算机上编写的 streamlit 应用程序,它 运行 运行得很顺利。因为我需要更换计算机,所以我将它从我的存储库克隆到新计算机并为其创建了带有 env 的目录,但是我无法 运行 它。执行以下 运行ning 代码会出现以下错误
streamlit run app.py
我收到以下错误,有人可以帮我解释一下错误是什么吗?
(venv) C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA>streamlit run app.py
Traceback (most recent call last):
File "C:\Users\CLAHAXY8W\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\CLAHAXY8W\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\Scripts\streamlit.exe\__main__.py", line 7, in <module>
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\lib\site-packages\click\core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\lib\site-packages\click\core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\lib\site-packages\click\core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\lib\site-packages\streamlit\cli.py", line 204, in main_run
_main_run(target, args, flag_options=kwargs)
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\lib\site-packages\streamlit\cli.py", line 232, in _main_run
command_line = _get_command_line_as_string()
File "C:\Users\CLAHAXY8W\PycharmProjects\charting_with_streamlit\charting_using_Streamlit_EDA\venv\lib\site-packages\streamlit\cli.py", line 221, in _get_command_line_as_string
cmd_line_as_list.extend(click.get_os_args())
AttributeError: module 'click' has no attribute 'get_os_args'
这是一个错误,Click 模块在没有增加其语义版本的情况下进行了重大更改。
在您的需求文件中固定 click==8.0
或将 Streamlit 升级到 1.8.1 以上
https://discuss.streamlit.io/t/attributeerror-module-click-has-no-attribute-get-os-args/23621/12