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

streamlit throw error: AttributeError: module 'streamlit.components' has no attribute 'v1' #606

Open
ODtian opened this issue Jun 6, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ODtian
Copy link

ODtian commented Jun 6, 2024

Describe the bug
streamlit will throw error when tgcf-web started:

AttributeError: module 'streamlit.components' has no attribute 'v1'
File "C:\Users\tianl\.virtualenvs\tele-zCVQ2SYF\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 600, in _run_script
    exec(code, module.__dict__)
File "C:\Users\tianl\.virtualenvs\tele-zCVQ2SYF\Lib\site-packages\tgcf\web_ui\0_👋_Hello.py", line 18, in <module>
    st.components.v1.html(html, width=None, height=None, scrolling=False)

To Reproduce
Run command tgcf-web and open the web page.

Expected behavior
No error

Screenshots
If applicable, add screenshots and gifs to help explain your problem.

System information:
windows 11 with python v3.10.10

Additional context
Add any other context about the problem here.

@ODtian ODtian added the bug Something isn't working label Jun 6, 2024
@Ririllchmo
Copy link

Same problem. Not decided?

@SuYuWei
Copy link

SuYuWei commented Jun 14, 2024

run command

pip install streamlit==1.32

can work

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

3 participants