HELP! ("Cant read properties on undefiended setIn")

Im using logger os and subprocess and streamlit extras bottom and when I run my minecraft server via streamlit i get a bad message error on the logs section


Barrett-The-Hedgehog

Can you share more details about your setup and the exact error message you’re seeing. Let me ask a few questions:

1. Can you share the relevant part of your Python code, especially the parts related to logging and running the Minecraft server?
2. What’s the exact error message you’re seeing in the logs section?
3. Are you using Streamlit’s built-in logging functionality, or have you set up a custom logger?
4. Which version of Streamlit, Python, and the Minecraft server are you using?
5. Can you describe what you mean by “streamlit extras bottom”? Are you using a specific Streamlit component or extension?

the code:

` if selected == “Logs”:
st.title(“Logs”)
with bottom():
with st.expander(“Console Logs”, expanded=True, icon=“:material/terminal:”):
if ‘logger’ not in st.session_state:
st.session_state.logger = logging.getLogger(‘minecraft’)
st.session_state.logger.setLevel(logging.INFO)

                if 'st_handler' not in st.session_state:
                    log_console = st.container(height=600)
                    st.session_state.st_handler = StreamlitLogHandler(log_console.empty().code)
                    st.session_state.logger.addHandler(st.session_state.st_handler)

                if 'proc' in st.session_state:
                    for line in iter(lambda: st.session_state.proc.stdout.readline(), ''):
                        if line:  # Check if the line is not empty
                            st.session_state.logger.info(line.strip()) '

I’m using logger subprocess and the if selected == “Logs”: is a custom component called streamlit option menu

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