whitphx / streamlit-webrtc

Real-time video and audio processing on Streamlit
https://discuss.streamlit.io/t/new-component-streamlit-webrtc-a-new-way-to-deal-with-real-time-media-streams/8669
MIT License
1.36k stars 182 forks source link

'SessionInfo' object has no attribute 'report_run_count' #709

Closed AntonioTannoury closed 2 years ago

AntonioTannoury commented 2 years ago

Hello, I'm just doing a simple project on face detection and found your approach on live streaming the video from the users device (Amazing solution btw!) I followed your suggestion by using streamlit share server to avoid the complexities faced in going though colab->ngrok->TURN server. For now, my app just consists of opening the camera under the following script recommended in the documentation (of course followed by the installation of streamlit-webstr): # from streamlit_webrtc import webrtc_streamer webrtc_streamer(key="sample") # But it's giving the following error: """AttributeError: 'SessionInfo' object has no attribute 'report_run_count'"""

datatales-with-pankaj commented 2 years ago

Hi Antonio, I had faced the same problem as you did! In my case, I was using a virtual environment and trying to run my app on it. I was bombarded with the same error on it but when I switched my environment to the global one for my system(mac); the code started working just fine for me. Try the same and let me know

alercelik commented 2 years ago

Hi, I got the same problem and solved by downgrading streamlit to 1.5.1 pip install streamlit==1.5.1

I think streamlit just released the version 1.6.0

corticalstack commented 2 years ago

@alercelik thanks, that solved same issue for me!

whitphx commented 2 years ago

Thank you for the report. I will check the changes on v1.6.

whitphx commented 2 years ago

Development notes:

SessionInfo.report_run_count has been renamed to Sessioninfo.script_run_count, and it has been released in 1.6.0. (The Git tag info shows this change has been introduced in 1.5.1, but the tag info on 1.5.1 seems wrong and it is not actually released. See https://github.com/streamlit/streamlit/issues/4462).

whitphx commented 2 years ago

This will be fixed with streamlit-webrtc==0.35.2

AntonioTannoury commented 2 years ago

streamlit-webrtc==0.35.2

thanks for the quick relpy!