Skip to main content

A Streamlit app that happily runs locally fails when deployed to CDF.

The line `st.dataframe([{‘key’: ‘value’, ...}])` produces this error. Not every time, but once the error happens, it does not recover and keeps showing this error even though the app reruns to show updated data.

Error: External format error: File out of specification: Repetition level must be defined for a primitive type

Do you have a workaround?

It is a simple data set really just string key-value pairs. When it works, it looks like this:
 

Contact me and I will share the URL of the deployed streamlit app.

Thank you for reaching out, ​@Jan Dolejsi.

Are you able to share a minimal example of this behaviour?  Note that apps can be exported from the app overview:

 


Lars, I will build the repro. Was hoping that other people have seen this kind of an error (or the error message could be simply looked up in the source code of  cognite-stlite). No free lunch, I guess.


No time to build the repro so far. 
But noticed that if I switch the st.dataframe to st.editor (i.e. with all columns disabled), the issue happens far less frequently. It still does though.


Reply