plachert / real_time_cv

A streamlit-webrtc based package for visualisation of real-time CV processing
MIT License
1 stars 0 forks source link

_components_callbacks is not being registered #1

Closed plachert closed 1 year ago

plachert commented 1 year ago

Error: AttributeError: st.session_state has no attribute "_components_callbacks". Did you forget to initialize it? More info: https://docs.streamlit.io/library/advanced-features/session-state#initialization

When:

There seems to be an issue with streamlit-webrtc (https://discuss.streamlit.io/t/attributeerror-st-session-state-has-no-attribute-components-callbacks/36239).

plachert commented 1 year ago

Weirdly the problem disappears when st.header is placed right before the webrtc_streamer. https://github.com/plachert/real_time_cv/commit/b291e0ef13ff5b9e52191e54e6d0cbfe53fc79b1