You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you run streamlit and use the reload feature it will delete entries from the sys.modules dict, causing a KeyError.
Steps to reproduce
I can't seem to build a small reproducible example.
It's happening to me on https://github.com/monash-emu/AuTuMN for commit 1eab4e862ae9e9aa99d489e98f13a78383cb5834
Summary
When you run streamlit and use the reload feature it will delete entries from the sys.modules dict, causing a KeyError.
Steps to reproduce
I can't seem to build a small reproducible example.
It's happening to me on https://github.com/monash-emu/AuTuMN for commit 1eab4e862ae9e9aa99d489e98f13a78383cb5834
The steps to reproduce are:
video of reproduction: https://www.loom.com/share/74f242f7f2154708a8f54f6dff879101
Expected behavior:
No items are deleted from sys.modules on reload
Actual behavior:
Items are deleted from sys.modules on reload
Is this a regression?
Dunno
Debug info
Additional information
Prior discussion: https://discuss.streamlit.io/t/keyerror-warnings/2474/6
I believe this line of code is the cause:
streamlit/lib/streamlit/watcher/LocalSourcesWatcher.py
Line 114 in 018f49f
I was able to stop the error from happening by hacking in a fix to that module (see linked discussion)
The text was updated successfully, but these errors were encountered: