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
"error during cell creation" when adding item in data_editor with dynamic row add. #7458
Comments
This seems to be connected to use of st.expander as a container for the editor - I have the same issue / I use expander / and another issue also uses expander to house the editor. Using expander makes sense for such application with editing data frames... |
I am experiencing the same error in a non-deterministic fashion (mostly it's OK, but sometimes the error pops up without any apparent reason), and I am not using expander anywhere in my application. |
Checklist
Summary
I’ve created a data_editor that displays data pulled from a dynamo db database. I’ve created a function to capture when a row is added in order to add this new item to the database. This function handles edits and deletions also which work really well with making live changes and deletions to the dynamo db with boto3 library.
The function for handling the changes to the dataframe via the data_editor fires in the “on_change” callback. I started testing figuring out the key creation before sending it to the database. During this testing process, I clicked on the add row button at the bottom of the data_editor and this error popped up:
The addition of the row was captured in the dictionary that captures those, but I can’t do anything else from here.
Reproducible Code Example
Steps To Reproduce
Just simply clicked on the add row part of the data_editor and the error popped up. That should be all the is required to get it to occur again.
Expected Behavior
What I expect to happen at this point is just to start putting in entries into this new row.
Current Behavior
It simply displays in each cell “Error during cell creation” and when I hover over it, it shows a pop up that says: “This should never happen. Please report this bug. Error: Error: Row index is out of range: 7”
i noted that there is no index provided in the index column of the new row.
Is this a regression?
Debug info
Streamlit version: 1.27.0
Python version: Python 3.11
Using PyCharm environment with pycharm version 2023.2.1 (professional edition)
OS version: macOS Catalina version 10.15.7
Browser version: Chrome, Version 117.0.5938.92 (official building) (x86_64)
Additional Information
pandas>=1.5.1
openpyxl>=3.1.0
tinydb>=4.7.0
datetime>=4.0
streamlit>=1.21.0
pillow>=9.5.0
XlsxWriter>=3.0.8
boto3>=1.24.5
requests>=2.31.0
The text was updated successfully, but these errors were encountered: