[BUG] ImportError: 无法从 'streamlit.web.server.server_util' 中导入名为 'make_url_path_regex' 的名称
作者: MrJoJI110创建于 2026年9月7日更新于 2026年9月11日
标签bug
描述错误 在使用 Python 3.13 运行 Streamlit 应用程序时,启动时立即出现 ImportError,因为 pygwalker 尝试从较新版本的 Streamlit 中导入一个已删除或修改的实用函数('make_url_path_regex')。 重现步骤 重现行为的步骤:
- 使用 Python 3.13 和最新版本的 Streamlit 设置一个项目。
- 为 Streamlit 导入 pygwalker(例如,从 pygwalker.api.streamlit import StreamlitRenderer)。
- 使用 'streamlit run app.py' 在终端中运行应用程序。
- 查看错误:ImportError: cannot import name 'make_url_path_regex' from 'streamlit.web.server.server_util'
内容来源: Kanaries/pygwalker