'NoneType' object has no attribute 'body'

Hey guys, how are you?
I was working on a Streamlit app, and everything worked perfectly. After updating the code, I have stopped the server and rerun it, but now I am getting the following error:

Script execution error 'NoneType' object has no attribute 'body'

I don’t think the error is related to my specific app since it appears even when I run streamlit hello, and there is no traceback.


image
Thanks in advance.

Please can you share your code and a more complete error message that identifies the line of code throwing the error? :slight_smile:

The error is occurring even in streamlit hello demo app, but to be sure I have tried this:

import streamlit as st
st.write("Hello, World!")

The most confusing part is that there is no error message or traceback for certain line of code.

Uninstalling and reinstalling python solved the problem,
Thanks.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.