Streamlit AttributeError: 'NoneType' object has no attribute 'sendto'

Streamlit程序执行中报错:AttributeError: ‘NoneType’ object has no attribute ‘sendto’
调查发现使用最新版会导致错误,降级到1.33.0可以解决。

1
2
3
4
5
# 查看版本
pip show streamlit | grep -i version
# 删除替换成旧版
pip uninstall streamlit
pip install streamlit==1.33.0