AttributeError: module 'streamlit' has no attribute 'beta_columns'

Hi,
I was trying to lay out the dropdown into columns but when I use the function st.beta_columns() I get an attribute error stating module ‘streamlit’ has no attribute ‘beta_columns’. Can someone help me with this issue.

streamlit version : 0.73.0
python version : 3.7.9

2 Likes

Based on your print screen, it looks like you’re running on python 3.8 right? Click on the hamburger menu and then select about. which version of streamlit are you getting?

2 Likes

hellodo you have any solution for that? plese, i have the same question。

python  Python 3.8.5
Streamlit : Streamlit v0.62.1
module ‘streamlit’ has no attribute ‘beta_columns’

2 Likes

I would upgrade your streamlit version, seems to be quite outdated.

1 Like

Hi @Fuqing_Yuan, welcome to the Streamlit community! Layout came out in version 0.68, so you’ll need to update your Streamlit installation. We’re up to almost v0.80.0 at this point, so there’s a lot you’re missing out on!

Best,
Randy

2 Likes

Hi, thank you.

i have tried with pip install streamlit==0.79.0 for updating.
but, it said :

Using cached pyarrow-0.11.0.tar.gz (602 kB)
Installing build dependencies 
 done
Getting requirements to build wheel 
 done
Preparing wheel metadata 
 error

OSError: ‘git’ was not found

do you have any idea, please? and i think you have reply one time before for athoner guy. i have tried, it did not work

2 Likes

Hello,

i have fixed it just by updating python version. And you know, in the before, the background is write, now it’s black automatically. you know where i can find something to rechange to the write?
thanks a lot

2 Likes

iAttributeError: partially initialized module ‘streamlit’ has no attribute ‘title’ (most likely due to a circular import
still facing same problem

2 Likes

Same with me,
line 6, in
st.set_page_config(page_title = ‘Streamlit Dashboard’,
AttributeError: partially initialized module ‘streamlit’ has no attribute ‘set_page_config’ (most likely due to a circular import)
Am I using outdated methods?


Edit : 1
Now the issue is resolved

Answer

Please ensure that your file name is not streamlit.py

1 Like

Hi sir. I hava de same problem

‘AttributeError: module ‘streamlit’ has no attribute ‘beta_columns’’
im using python 9.10 and streamlit 1.23.1

can you help me please?

2 Likes

replace st.beta_columns with st.columns.

4 Likes

write “columns” instead of “beta_columns”

3 Likes

Instead of st.beta_columns , I have used st.columns and it worked for me.

Thanks

4 Likes

remove beta from beta_columns

1 Like

this worked for me. thanks :+1:

1 Like

my laptop is installed with streamlit==1.23.0 version and python version==3.7.0
but still it is showing module ‘streamlit’ has no attribute ‘beta_columns’

1 Like