streamlit: v0.52.0: Bad message format - Tried to use SessionInfo before it was initialized
Summary
On first page load, I get a message dialog: “Bad message format - Tried to use SessionInfo before it was initialized”. I can then click on the OK button and I can proceed as normal.
Steps to reproduce
On Windows 10 - installed clean separate Python virtual environment. Then installed using pip install streamlit
Then launched hello demo app: streamlit hello
Then I immediately get the dialog message.
Is this a regression?
yes
Debug info
- Streamlit version: 0.52.0
- Python version: 3.7
- Using Conda
- OS version: Windows 10
- Browser version: Chrome 79
pip freeze output:
altair==4.0.0
argh==0.26.2
astor==0.8.1
attrs==19.3.0
base58==1.0.3
blinker==1.4
boto3==1.10.43
botocore==1.13.43
certifi==2019.11.28
chardet==3.0.4
Click==7.0
decorator==4.4.1
docutils==0.15.2
entrypoints==0.3
enum-compat==0.0.3
future==0.18.2
idna==2.8
importlib-metadata==1.3.0
Jinja2==2.10.3
jmespath==0.9.4
jsonschema==3.2.0
MarkupSafe==1.1.1
more-itertools==8.0.2
numpy==1.17.4
pandas==0.25.3
pathtools==0.1.2
Pillow==6.2.1
protobuf==3.11.1
pyrsistent==0.15.6
python-dateutil==2.8.0
pytz==2019.3
PyYAML==5.2
requests==2.22.0
s3transfer==0.2.1
six==1.13.0
streamlit==0.52.0
toml==0.10.0
toolz==0.10.0
tornado==5.1.1
tzlocal==2.0.0
urllib3==1.25.7
validators==0.14.1
watchdog==0.9.0
wincertstore==0.2
zipp==0.6.0
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 22 (5 by maintainers)
I have the same problem with the awesome-streamlit.org repo after upgrading from 0.51 to 0.52 via a
pip install streamlit==0.52 -ucommand.Fixed for now by reverting back to 0.51 via a
pip install streamlit==0.51command.The fix has been pushed as 0.52.1
Removing the quotation marks from the word -false- in the “config.toml” fixed for me!
Before with error:
[browser] gatherUsageStats = “false”
Fixed:
[browser] gatherUsageStats = false
Also seeing this issue with version 0.57.0
With server.headless = false, outside a Docker container, this seems to only happen if I also try to access the app from the browser before the first window is done loading. Waiting a few seconds functionally resolves it for me.
From inside a Docker container (server.headless = true), only the second window I open has this problem (!?) Not the 1st, not the 3rd/4th/5th.
To reproduce using Docker, I have the dockerfile:
Then:
docker build -t robmarkcole/streamlit-hello-docker .docker run -p 8501:8501 robmarkcole/streamlit-hello-docker:lateststreamlit==0.51Experienced this on OSX also after upgrading from 0.51. I then uninstalled and reinstalled streamlit 0.52, but error persists. Presumably can run strealit in debug mode?
I’m trying to repro this, but having trouble. Here’s what I did:
pip install streamlitstreamlit hello…and it works fine.Can you provide a little more info on how to reproduce?
Also: Can you try force-reloading your browser tab? Try
Shift-F5orCtrl-Shift-R. It’s possible you’re using an old tab that has version 0.51.0 of our Javascript running. (Which is something that we’re fixing right now, actually! See #536 )