Hi I have build an app which predict yoga pose but there is problem regarding webcam
while running on local server with OpenCV I am able to track my pose but after implementing
streamlit-webrtc
Issue has been generated it cannot open Camera feed
Detail Error:
Connection(0) Check CandidatePair((‘192.168.0.102’, 51048) → (‘103.132.3.54’, 61749)) State.IN_PROGRESS → State.FAILED
2021-06-09 12:33:44.326 Connection(0) ICE failed
2021-06-09 12:33:44.360 ICE connection state is failed
2021-06-09 12:33:44.362 ICE connection state is closed
I am just Enjoying the process to bulid this app and appreciate the Work of streamlit team and also @whitphx for creating streamlit-webrtc
@iamchoudhari11 I have deployed my app in streamlit sharing and got the same error. Did you find any solution for it? And soft-nougat, Did you get to know why is this happening. Any tips would help me. Thanks. @whitphx I appreciate the streamlit_webrtc you have created then I’m getting some errors when deployed in cloud platforms and even when deployed in streamlit sharing and the error in streamlit sharing is similar to the above-stated i.,e, ICE connection failed and closed. If anyone knows how to overcome these errors please let me know. Thanks.
021-08-07 08:04:07.633 Connection(0) ICE failed
2021-08-07 08:04:07.642 ICE connection state is failed
2021-08-07 08:04:07.642 ICE connection state is closed
I am encountering a similar issue when deploying the app on streamlit cloud: Upon pressing “start”, the webcam connects, the loader spins for a few seconds and then the webcam disconnects. It works perfectly on my local machine though.
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 1054, in sendto
self._sock.sendto(data, addr)
AttributeError: 'NoneType' object has no attribute 'sendto'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/home/appuser/venv/lib/python3.9/site-packages/aioice/stun.py", line 309, in __retry
self.__protocol.send_stun(self.__request, self.__addr)
File "/home/appuser/venv/lib/python3.9/site-packages/aioice/ice.py", line 243, in send_stun
self.transport.sendto(bytes(message), addr)
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 1064, in sendto
self._fatal_error(
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 711, in _fatal_error
self._loop.call_exception_handler({
AttributeError: 'NoneType' object has no attribute 'call_exception_handler'
2023-01-24 10:36:12.459 ICE connection state is closed
2023-01-24 10:36:27.810 Exception in callback Transaction.__retry()
handle: <TimerHandle when=4269501.291509833 Transaction.__retry()>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 1054, in sendto
self._sock.sendto(data, addr)
AttributeError: 'NoneType' object has no attribute 'sendto'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/home/appuser/venv/lib/python3.9/site-packages/aioice/stun.py", line 309, in __retry
self.__protocol.send_stun(self.__request, self.__addr)
File "/home/appuser/venv/lib/python3.9/site-packages/aioice/ice.py", line 243, in send_stun
self.transport.sendto(bytes(message), addr)
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 1064, in sendto
self._fatal_error(
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 711, in _fatal_error
self._loop.call_exception_handler({
AttributeError: 'NoneType' object has no attribute 'call_exception_handler'
[10:38:06] ❗️ Streamlit server consistently failed status checks
[10:38:06] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.
As I could not test your repo on my laptop (M1 mac) and try it on Streamlit Cloud either because it showed error,
I can’t provide a direct solution though,
did you check the last 2 points in my previous post?
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.