Bad message format [].concat(...).flatMap is not a function with Streamlit 0.68.0

I installed Streamlit version 0.68.0 in Anaconda navigator virtual environment on Windows. I am getting the following error with “streamlit hello”.
Bad message format
.concat(…).flatMap is not a function

I also tried versions 0.68.1 and 0.69.1, but that did not solve the issue
“steamlit hello” runs with vesion 0.64.0 with the same setup

go to terminal of anaconda’s virtual environment in which you had installed streamlit.

now write “pip install streamlit==0.65.0”

press enter

now write “streamlit hello”

It worked for me, I hope it should work for you also

being precise, streamlit 0.65.0 is more stable than latest version

In general, recommending people downgrade several versions is not good advice. If a version is released with a bug, we try to make patch releases as quickly as possible. But this requires users actually inform of us of bugs.

@Sanat, how did you install Streamlit, globally or are you running using a virtual environment? This sort of issue sounds like there is a dependency mismatch of some sort, which might be resolved by using a virtual environment/clean install.

Thanks Randy

I am using a virtual environment under Anaconda. It was a fresh virtual environment created specifically for the project I am working on. Here is the requirements list. Do you suspect any of these in particular?


Thanks Baba.
I am actually planning to use the multi file upload functionality in the latest version. I guess it wasn’t there in 0.65.0. So that is not an option for me

Thanks @Sanat. I installed 0.68.0 in a fresh Miniconda environment with Python 3.8 and didn’t run into an issue. But, other users are reporting this issue as well.

Not exactly sure what to tell you here, as it seems like you’ve done all the normal debugging/installation steps

(v68) C:\Users\randy>conda list
# packages in environment at C:\Users\randy\miniconda3\envs\v68:
# Name                    Version                   Build  Channel
altair                    4.1.0                    pypi_0    pypi
argon2-cffi               20.1.0                   pypi_0    pypi
astor                     0.8.1                    pypi_0    pypi
async-generator           1.10                     pypi_0    pypi
attrs                     20.2.0                   pypi_0    pypi
backcall                  0.2.0                    pypi_0    pypi
base58                    2.0.1                    pypi_0    pypi
bleach                    3.2.1                    pypi_0    pypi
blinker                   1.4                      pypi_0    pypi
boto3                     1.16.1                   pypi_0    pypi
botocore                  1.19.1                   pypi_0    pypi
ca-certificates           2020.10.14                    0
cachetools                4.1.1                    pypi_0    pypi
certifi                   2020.6.20                py38_0
cffi                      1.14.3                   pypi_0    pypi
chardet                   3.0.4                    pypi_0    pypi
click                     7.1.2                    pypi_0    pypi
colorama                  0.4.4                    pypi_0    pypi
decorator                 4.4.2                    pypi_0    pypi
defusedxml                0.6.0                    pypi_0    pypi
entrypoints               0.3                      pypi_0    pypi
enum-compat               0.0.3                    pypi_0    pypi
idna                      2.10                     pypi_0    pypi
ipykernel                 5.3.4                    pypi_0    pypi
ipython                   7.18.1                   pypi_0    pypi
ipython-genutils          0.2.0                    pypi_0    pypi
ipywidgets                7.5.1                    pypi_0    pypi
jedi                      0.17.2                   pypi_0    pypi
jinja2                    2.11.2                   pypi_0    pypi
jmespath                  0.10.0                   pypi_0    pypi
jsonschema                3.2.0                    pypi_0    pypi
jupyter-client            6.1.7                    pypi_0    pypi
jupyter-core              4.6.3                    pypi_0    pypi
jupyterlab-pygments       0.1.2                    pypi_0    pypi
markupsafe                1.1.1                    pypi_0    pypi
mistune                   0.8.4                    pypi_0    pypi
nbclient                  0.5.1                    pypi_0    pypi
nbconvert                 6.0.7                    pypi_0    pypi
nbformat                  5.0.8                    pypi_0    pypi
nest-asyncio              1.4.1                    pypi_0    pypi
notebook                  6.1.4                    pypi_0    pypi
numpy                     1.19.2                   pypi_0    pypi
openssl                   1.1.1h               he774522_0
packaging                 20.4                     pypi_0    pypi
pandas                    1.1.3                    pypi_0    pypi
pandocfilters             1.4.2                    pypi_0    pypi
parso                     0.7.1                    pypi_0    pypi
pathtools                 0.1.2                    pypi_0    pypi
pickleshare               0.7.5                    pypi_0    pypi
pillow                    8.0.0                    pypi_0    pypi
pip                       20.2.4                   py38_0
prometheus-client         0.8.0                    pypi_0    pypi
prompt-toolkit            3.0.8                    pypi_0    pypi
protobuf                  3.13.0                   pypi_0    pypi
pyarrow                   2.0.0                    pypi_0    pypi
pycparser                 2.20                     pypi_0    pypi
pydeck                    0.5.0b1                  pypi_0    pypi
pygments                  2.7.1                    pypi_0    pypi
pyparsing                 2.4.7                    pypi_0    pypi
pyrsistent                0.17.3                   pypi_0    pypi
python                    3.8.5                h5fd99cc_1
python-dateutil           2.8.1                    pypi_0    pypi
pytz                      2020.1                   pypi_0    pypi
pywin32                   228                      pypi_0    pypi
pywinpty                  0.5.7                    pypi_0    pypi
pyzmq                     19.0.2                   pypi_0    pypi
requests                  2.24.0                   pypi_0    pypi
s3transfer                0.3.3                    pypi_0    pypi
send2trash                1.5.0                    pypi_0    pypi
setuptools                50.3.0           py38h9490d1a_1
six                       1.15.0                   pypi_0    pypi
sqlite                    3.33.0               h2a8f88b_0
streamlit                 0.68.0                   pypi_0    pypi
terminado                 0.9.1                    pypi_0    pypi
testpath                  0.4.4                    pypi_0    pypi
toml                      0.10.1                   pypi_0    pypi
toolz                     0.11.1                   pypi_0    pypi
tornado                   6.0.4                    pypi_0    pypi
traitlets                 5.0.5                    pypi_0    pypi
tzlocal                   2.1                      pypi_0    pypi
urllib3                   1.25.11                  pypi_0    pypi
validators                0.18.1                   pypi_0    pypi
vc                        14.1                 h0510ff6_4
vs2015_runtime            14.16.27012          hf0eaf9b_3
watchdog                  0.10.3                   pypi_0    pypi
wcwidth                   0.2.5                    pypi_0    pypi
webencodings              0.5.1                    pypi_0    pypi
wheel                     0.35.1                     py_0
widgetsnbextension        3.5.1                    pypi_0    pypi
wincertstore              0.2                      py38_0
zlib                      1.2.11               h62dcd97_4

Is there any chance you are trying to use 32-bit Python @Sanat?

Hi @Sanat, unfortunately, this is a browser compatibility issue. An issue has been created for us to address this problem. In the meantime, if you are able to use another browser or upgrade your current browser, this should resolve your issue.

Supported browsers are:
Edge 79+
Chrome 69+
Firefox 62+
Safari 12+
Opera 56+

For the full list, of browsers, please see here

Nice catch @karriebear . Browser update solved the issue. Thanks!