提问人:Sharif Amlani 提问时间:10/7/2023 更新时间:10/7/2023 访问量:24
Streamlit App 中似乎缺少“rpy2.robjects”的转换规则
Conversion rules for `rpy2.robjects` appear to be missing in Streamlit App
问:
嗨,我正在流光应用程序的引擎盖下运行 rpy2,但出现以下错误:
Conversion rules for `rpy2.robjects` appear to be missing. Those rules are in a Python contextvars.ContextVar. This could be caused by multithreading code not passing context to the thread.
当我在 streamlit 之外运行代码时,它会完美运行。
我该如何修复此错误并让 rpy2 在 streamlit 应用程序中运行?
Version file:
Name: streamlit
Version: 1.27.2
Name: rpy2
Version: 3.5.14
Name: python
Version: 3.11.4
答: 暂无答案
评论
rpy2 3.5.1