当前位置:网站首页>streamlit TypeError: Plain typing.NoReturn is not valid as type argument
streamlit TypeError: Plain typing.NoReturn is not valid as type argument
2022-07-21 14:20:00 【农民小飞侠】
今天在运行streamlit 程序的时候出现了下面的问题:
raceback (most recent call last):
File "/usr/local/python3.7.0/lib/python3.7/runpy.py", line 183, in _run_module_as_main
mod_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_details
return _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 _DeltaGenerator
File "/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 DeltaGenerator
def __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 inner
return 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_check
raise 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
边栏推荐
- Ravendb fully transactional NoSQL document database
- C#. Net sqlserver login function
- Zabbix3.0 alarm settings
- 92. (leaflet chapter) leaflet situation plotting - acquisition of attack direction
- 十大券商开户安全吗,风险大吗?
- 国产统信UOS系统运行小程序的探索
- ScePT: 为规划的场景一致和基于策略轨迹预测
- EF Core 数据过滤
- Three.js(7):局部纹理刷新
- 关于Visual Studio 2019的前期详情
猜你喜欢
bypass 某狗sql和xss
数字藏品系统开发——商城盲盒h5平台搭建
Ravendb fully transactional NoSQL document database
【微信公众号h5】授权
NETCORE - Middleware (1)
真人踩过的坑,告诉你避免自动化测试新手常犯的10个错误
An idea of solving agile iteration of desktop application with applet Technology
Wechat applet_ 19. Custom components -behaviors
ScePT: 为规划的场景一致和基于策略轨迹预测
Tencent took out 38K two days ago, which showed me the basic ceiling. Today share is for you~
随机推荐
bypass 某狗sql和xss
问题来了:4GB物理内存的机器上申请8G内存能成功吗?
Function anti chattering and function throttling
Postman - post request application / x-www-from-urlencoded
D3.js + Canvas 绘制组织结构图
Tencent took out 38K two days ago, which showed me the basic ceiling. Today share is for you~
免杀exe技术探讨
iNFTnews | 佳士得推出风险投资部门,瞄准Web3和元宇宙产业
专注跨境支付一体化服务 iPayLinks获《财资》3A亚洲奖
A MySQL misoperation led to a P0 level accident
The difference between w3school and w3school
如何规避以太网接口与布线不匹配的风险
Attack and defense world ---mfw
6.1 恶意代码防范
The question is: can you successfully apply for 8g memory on a machine with 4GB physical memory?
A device from black to white (with front desk 0day)
Bypass some dog SQL and XSS
理财产品到期不赎回会自动续期吗?
Metronic 管理仪表板,高级引导仪表板主题
【如何优化她】教你如何定位不合理的SQL?并优化她~~~