Skip to content

StreamlitDuplicateElementId #79

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

Open
serwarde opened this issue Jan 13, 2025 · 0 comments
Open

StreamlitDuplicateElementId #79

serwarde opened this issue Jan 13, 2025 · 0 comments
Assignees
Labels
🐛Bug Something isn't working

Comments

@serwarde
Copy link
Collaborator

Describe the bug
A clear and concise description of what the bug is.
If the same project gets processed multiples time, Streamlit throws a StreamlitDuplicateElementId error, because the resulting plots have the same parameters which results in them having the same ID.

To Reproduce
Steps to reproduce the behavior:

  1. Import the same project multiple times
  2. Get the aforementioned error.

Expected behavior
The same project shouldn't be processed twice. Alternatively, assign a randomly generated ID to the plots to avoid duplicates.

Error message

StreamlitDuplicateElementId: There are multiple plotly_chart elements with the same auto-generated ID. When this element is created, it is assigned an internal ID based on the element type and provided parameters. Multiple elements with the same type and parameters will cause this error.
To fix this error, please pass a unique key argument to the plotly_chart element.
Traceback:
File "/usr/local/lib/python3.11/dist-packages/inception_reports/generate_reports_manager.py", line 766, in
main()File "/usr/local/lib/python3.11/dist-packages/inception_reports/generate_reports_manager.py", line 762, in main
plot_project_progress(project)File "/usr/local/lib/python3.11/dist-packages/inception_reports/generate_reports_manager.py", line 738, in plot_project_progress
st.plotly_chart(pie_chart, use_container_width=True)

@serwarde serwarde added the 🐛Bug Something isn't working label Jan 13, 2025
@serwarde serwarde self-assigned this Jan 13, 2025
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

When branches are created from issues, their pull requests are automatically linked.

1 participant