streamlit TypeError: Plain typing.NoReturn is not valid as type argument
今天在运行streamlit 程序的时候出现了下面的问题:
raceback (most recent call last):File "/usr/local/python3.7.0/lib/python3.7/runpy.py", line 183, in _run_module_as_mainmod_name, mod_spec, code = _get_module_details(mod_name, _Error)File "/usr/local/python3.7.0/lib/python3.7/runpy.py", line 142, in _get_module_detailsreturn _get_module_details(pkg_main_name, error)File "/usr/local/python3.7.0/lib/python3.7/runpy.py", line 109, in _get_module_details__import__(pkg_name)File "/usr/local/python3.7.0/lib/python3.7/site-packages/streamlit/__init__.py", line 70, in <module>from streamlit.delta_generator import DeltaGenerator as _DeltaGeneratorFile "/usr/local/python3.7.0/lib/python3.7/site-packages/streamlit/delta_generator.py", line 168, in <module>DataFrameSelectorMixin,File "/usr/local/python3.7.0/lib/python3.7/site-packages/streamlit/delta_generator.py", line 303, in DeltaGeneratordef __getattr__(self, name: str) -> Callable[..., NoReturn]:File "/usr/local/python3.7.0/lib/python3.7/typing.py", line 755, in __getitem__return self.__getitem_inner__(params)File "/usr/local/python3.7.0/lib/python3.7/typing.py", line 251, in innerreturn func(*args, **kwds)File "/usr/local/python3.7.0/lib/python3.7/typing.py", line 774, in __getitem_inner__result = _type_check(result, msg)File "/usr/local/python3.7.0/lib/python3.7/typing.py", line 135, in _type_checkraise TypeError(f"Plain {arg} is not valid as type argument")
TypeError: Plain typing.NoReturn is not valid as type argument
解决方法
可能3.7.0最新版不太支持,我们会退streamlit版本:
pip install streamlit==1.9
streamlit TypeError: Plain typing.NoReturn is not valid as type argument相关推荐
- 【Python】处理TypeError: Plain typing.NoReturn is not valid as type argument
新建虚拟环境运行Spacy,先看如下代码: import spacyprint(spacy.__version__) 上述代码运行出现一串错误,最后一行将错误定义为:TypeError: Plain ...
- python TypeError: Expected int32, got list containing Tensors of type '_Message' instead.
错误提示: python TypeError: Expected int32, got list containing Tensors of type '_Message' instead. 错误原因 ...
- 成功解决TypeError: can‘t multiply sequence by non-int of type ‘float‘
成功解决TypeError: can't multiply sequence by non-int of type 'float' 目录 解决问题 解决思路 解决方法 1.分析bug 2.定位出错函数 ...
- TypeError: undefined is not an object (evaluating 'o.type.name')
uni-app启动报错,造成白屏,H5端正常,小程序和APP报错如下: reportJSException >>>> exception function:createInst ...
- pathon fastapi报错value is not a valid dict (type=type_error.dict)
value is not a valid dict (type=type_error.dict) 找了一圈净是废话 直截了当 这是fastapi url返回值不是一个字典,解决方法,在定义的返回模型中 ...
- Visual C++ 新增功能(2003 - 2015)
本页面包括从 Visual Studio 2003 到 Visual Studio 2015 的所有 Visual C++ 版本的"新增功能"页. 提供这些信息的目的是方便用户从早 ...
- python 类型标注-typing --- 类型标注支持 — Python 3.7.9 文档
类,函数和修饰器.¶ 这个模块定义了如下的类,模块和修饰器. classtyping.TypeVar¶ 类型变量 用法: T = TypeVar("T") # Can be any ...
- python中type(12.34)_Python typing.TYPE_CHECKING属性代码示例
本文整理汇总了Python中typing.TYPE_CHECKING属性的典型用法代码示例.如果您正苦于以下问题:Python typing.TYPE_CHECKING属性的具体用法?Python t ...
- python报错:TypeError: cant multiply sequence by non-int of type float(bug)(csdn标题没法用英文引号,以后注意别搜引号)
python报错:TypeError: can't multiply sequence by non-int of type 'float' 注意:csdn标题没法用英文引号,以后注意别搜引号!!!! ...
最新文章
- 3行代码就能可视化Transformer的奥义 | 开源
- python中的垃圾回收机制_python里面的垃圾回收机制
- @font-face的用法,css3使用web字体教程
- 1.1.29 加入项目符号后换行文字未对齐
- Firefox扩展批量安装脚本
- android studio gradle 打jar 包 (混淆+第三方库包)
- 阿里云云原生一体化数仓入选 2022数博会“十佳大数据案例”
- 【Scratch】进阶篇-《Scratch游戏开发》FlappyTurtle
- java输战舰_什么是最好的战舰AI?
- zipkin+elk微服务日志收集分析系统
- 中文乱码问题—字符集utf8、uf8mb4与排序规则
- Java导出Word(导出图片,类,List)
- 设置 COM加载项 启动时加载(及 解决 PDFMaker 文件遗失问题)
- 自动(智能)驾驶 | 4D雷达的数据集
- 多边形颜色填充-X扫描线算法
- 3. ESP8266开发板自动连接室内Wi-Fi
- 云栖大会,一场边缘云计算的「超前瞻」之约
- UE4 获取主窗口HWND和调用WINAPI函数
- 汪晓宇:如何破除中美大数据产业差距
- iPhone开发环境的安装