Git Product home page Git Product logo

Comments (7)

whitphx avatar whitphx commented on May 22, 2024 1

I see, it seems these two SessionState-s conflict and I'm going to fix it, not using st.cache because caching mechanism have some drawbacks as stated in https://gist.github.com/tvst/036da038ab3e999a64497f42de966a92#gistcomment-3484515 .

from streamlit-webrtc.

whitphx avatar whitphx commented on May 22, 2024

Thank you very much!

from streamlit-webrtc.

whitphx avatar whitphx commented on May 22, 2024

@marcoslucianops Can you share the way to reproduce this error?
For example, Python version, Streamlit version, other libraries you are using with streamlit-webrtc, especially which also use SessionState internally.
Your repo URL is also helpful.

from streamlit-webrtc.

marcoslucianops avatar marcoslucianops commented on May 22, 2024

streamlit: 0.82.0
streamlit-webrtc: 0.20.0
python: 3.6.9

SessionState: https://gist.github.com/okld/0aba4869ba6fdc8d49132e6974e2e662 (edited for my usage)

When I use state in my web.py file with app_streaming() function, I get that error in player_factory=create_player function.

It was solved using SessionState code (#208 (comment)) in streamlit-webrtc SessionState.py file.

from streamlit-webrtc.

whitphx avatar whitphx commented on May 22, 2024

Thank you!
So, you use your SessionState in your app, independent of the SessionState used in streamlit-webrtc?

from streamlit-webrtc.

marcoslucianops avatar marcoslucianops commented on May 22, 2024

Yes

from streamlit-webrtc.

whitphx avatar whitphx commented on May 22, 2024

This issue should be resolved in v0.20.1 along with #205

from streamlit-webrtc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.