Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error after importing the required packages #104

Closed
Sarvoo opened this issue Dec 14, 2022 · 5 comments
Closed

Getting error after importing the required packages #104

Sarvoo opened this issue Dec 14, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@Sarvoo
Copy link

Sarvoo commented Dec 14, 2022

gather_metrics() got an unexpected keyword argument 'name'

@arnaudmiribel arnaudmiribel added the bug Something isn't working label Dec 15, 2022
@louispk
Copy link

louispk commented Dec 19, 2022

I am also encountering this issue when trying to import switch_page to use for Page switching buttons. Issue persists after package reinstall and across devices, currently installed version is 0.2.4

Thanks for any help in advance!

@arnaudmiribel
Copy link
Owner

Oh wow, hi @louispk I was exactly writing to ask for more details. Can you tell me your Streamlit version as well?

@arnaudmiribel
Copy link
Owner

I tried to reproduce the error but it's all working great for me with streamlit==1.16.0 and streamlit-extras==0.2.4

Code:

from importlib.metadata import version

import streamlit as st
from streamlit_extras.switch_page_button import switch_page

st.write("Extras version", version("streamlit-extras"))
st.write("Streamlit version", st.__version__)


if st.button("Click"):
    switch_page("Page 1")

@louispk
Copy link

louispk commented Dec 19, 2022

Thanks for the quick reply. Seems to be my fault as I was still running streamlit 1.13.0 for some reason, updating to 1.16.0 solved it :)

@arnaudmiribel
Copy link
Owner

Sweet! Well, lucky you, because streamlit 1.16.0 has some great new features ;)
And thank you for both filing the issue and coming back to check!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants