Closed YudhaDevelops closed 1 month ago
I am using python version 3.9.19
Hello! I have same error :( `During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Python311\Lib\site-packages\aioice\ice.py", line 797, in check_start response, addr = await pair.protocol.request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\aioice\ice.py", line 254, in request return await transaction.run() ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\aioice\stun.py", line 301, in run self.retry() File "C:\Python311\Lib\site-packages\aioice\stun.py", line 312, in retry self.__protocol.send_stun(self.request, self.addr) File "C:\Python311\Lib\site-packages\aioice\ice.py", line 266, in send_stun self.transport.sendto(bytes(message), addr) File "C:\Python311\Lib\asyncio\selector_events.py", line 1206, in sendto self._fatal_error( File "C:\Python311\Lib\asyncio\selector_events.py", line 873, in _fatal_error self._loop.call_exception_handler({ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'call_exception_handler'`
Same - I only get it when I push my app to a web server (using cloud foundry here). locally it works just fine. implemented the TURN setup via Twillio as suggested
also Python11 and Python 12 on MacOS with conda env.
also Python11 and Python 12 on MacOS with conda env.
also on Ubuntu 24.04
I noticed that on streamlit==1.34.0 the camera doesn't work. I tried installing an earlier version and it worked fine
same here issues with 1.34, downgraded to 1.3 and it is working.. iam running streamlit in a container and also using a local docker turnserver working with 1.3 no problems.
Thank you for the report. Streamlit updated the internals of its custom component API and it affected this extension which uses some hacks. Next release will fix it.
Hey @whitphx , I appreciate that you are patching this up!
In the meantime, is there any requirements.txt with correct versions of streamlit and other dependencies that we can use with the latest release?
If you are using streamlit<=1.33.0
, any version of streamlit-webrtc
should work.
If you are using streamlit>=1.34.0
, plz specify streamlit-webrtc>=0.47.7
.
thank you @whitphx for helping me, and fixed the package, so i can finished my final report program
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8501 Network URL: http://192.168.1.3:8501
Exception in callback Transaction.retry() handle: <TimerHandle when=1014459.718 Transaction.retry()> Traceback (most recent call last): File "C:\Users*****\miniconda3\envs\conda39\lib\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 "C:\Users*\miniconda3\envs\conda39\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, self._args) File "C:\Users\\miniconda3\envs\conda39\lib\site-packages\aioice\stun.py", line 312, in retry self.protocol.send_stun(self.request, self.addr) File "C:\Users*\miniconda3\envs\conda39\lib\site-packages\aioice\ice.py", line 266, in send_stun self.transport.sendto(bytes(message), addr) File "C:\Users*\miniconda3\envs\conda39\lib\asyncio\selector_events.py", line 1064, in sendto self._fatal_error( File "C:\Users*\miniconda3\envs\conda39\lib\asyncio\selector_events.py", line 711, in _fatal_error self._loop.call_exception_handler({ AttributeError: 'NoneType' object has no attribute 'call_exception_handler' Exception in callback Transaction.retry() handle: <TimerHandle when=1014461.453 Transaction.retry()> Traceback (most recent call last): File "C:\Users*\miniconda3\envs\conda39\lib\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 "C:\Users*\miniconda3\envs\conda39\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, self._args) File "C:\Users\\miniconda3\envs\conda39\lib\site-packages\aioice\stun.py", line 312, in retry self.protocol.send_stun(self.request, self.addr) File "C:\Users*\miniconda3\envs\conda39\lib\site-packages\aioice\ice.py", line 266, in send_stun self.transport.sendto(bytes(message), addr) File "C:\Users*\miniconda3\envs\conda39\lib\asyncio\selector_events.py", line 1064, in sendto self._fatal_error( File "C:\Users*****\miniconda3\envs\conda39\lib\asyncio\selector_events.py", line 711, in _fatal_error self._loop.call_exception_handler({ AttributeError: 'NoneType' object has no attribute 'call_exception_handler'
my code