St.columns stopped working on my app

My st.columns stopped working a few days ago.
Was something changed? do I need to upgrade something?
I don’t think it’s chrome, because it does this on several different computers. with Chrome and Edge, it does the same weird thing.
Here’s the code:

col1,pullTimeCol,col3 = st.columns([1,1,1])
with col1:
    st.write("==========")
with pullTimeCol:
    st.write(f'Last Updated At: {pullTime} CST')
with col3:
    st.write("==========")

and the Output:

Last Updated At: (‘2022-04-19_03:00’,) CST

==========

Hi @larryb64 -

Can you clarify where this stopped working? Is this locally on your computer, Streamlit Cloud, somewhere else?

Best,
Randy

I got it fixed, but this was very weird.
– I’m running a Linode server, and testing on my PC at home.
I ended up: upgrading to Python 3.10, and reinstalling all my packages, none of this seemed to help.
I’m also running “screen” under Ubuntu 20.04, to keep streamlit running, when I exit the terminal.
What seemed to fix the issue was to bring down my “Screen -S streamlit -X quit”
then restart it with “screen -S streamlit”, then I ran my script normally using “streamlit run myscript.py”
then tested on my PC, and my st.columns were working again.
– I’m not sure if I was running incompatible libraries, with python8 or if something just got corrupted. but…
after upgrading everything, and restarting my “screen” commands, everything seems fine now.
Thanks for reaching out to me, but for now, everything looks good again.

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