Deploy streamline on RSConnect

It is running great on my local machine.

And it was successfully uploaded to RSConnect Server, however, it throws the following error when trying to start the app.
“ImportError: cannot import name ‘bootstrap’ from ‘streamlit’”

2022/09/28 15:02:59.540981519 arguments: /opt/python/3.8.10/bin/python3.8 /opt/rstudio-connect/python/run_app.py
2022/09/28 15:02:59.541017491 
2022/09/28 15:03:00.923970224 Traceback (most recent call last):
2022/09/28 15:03:00.924008243   File "/opt/rstudio-connect/python/connect_streamlit_runtime.py", line 89, in <module>
2022/09/28 15:03:00.924103538     from streamlit import bootstrap, config
2022/09/28 15:03:00.924106136 ImportError: cannot import name 'bootstrap' from 'streamlit' (/opt/rstudio-connect/mnt/app/python/env/lib/python3.8/site-packages/streamlit/__init__.py)

is it a python issue or?

streamlit ver. 1.13.0

Thank you very much! It seems it is one last step toward success, I was trouble upload on RSConnect for months TAT

2 Likes

Hi how was this resolved?

Same issue. Only works up to v1.11 for me.

We are running into the same issue. I will report back here if we find a resolution.

1 Like

Anyone resolve this issue? Experiencing the same thing with any Streamlit version past v1.11

Hi all–I’m a Solutions Engineer at Posit. We make Connect. If you’re having trouble deploying your Streamlit applications to Connect, you should consider:

This error was resolved in the 2022.08 release of Connect, so if it’s still affecting you, you should reach out to your admins.

3 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.