Error on collab while deploying webrtc streamlit

Traceback (most recent call last):
File “/usr/local/lib/python3.8/dist-packages/streamlit/runtime/scriptrunner/script_runner.py”, line 565, in _run_script
exec(code, module.dict)
File “/content/streamlit_app.py”, line 88, in
ctx=webrtc_streamer(
File “/usr/local/lib/python3.8/dist-packages/streamlit_webrtc/component.py”, line 589, in webrtc_streamer
webrtc_worker.process_offer(sdp_offer[“sdp”], sdp_offer[“type”])
File “/usr/local/lib/python3.8/dist-packages/streamlit_webrtc/webrtc.py”, line 583, in process_offer
raise result
File “/usr/local/lib/python3.8/dist-packages/streamlit_webrtc/webrtc.py”, line 225, in _process_offer_coro
await pc.setRemoteDescription(offer)
File “/usr/local/lib/python3.8/dist-packages/aiortc/rtcpeerconnection.py”, line 828, in setRemoteDescription
transceiver = self.__createTransceiver(
File “/usr/local/lib/python3.8/dist-packages/aiortc/rtcpeerconnection.py”, line 1067, in __createTransceiver
dtlsTransport = self.__createDtlsTransport()
File “/usr/local/lib/python3.8/dist-packages/aiortc/rtcpeerconnection.py”, line 1044, in __createDtlsTransport
dtlsTransport = RTCDtlsTransport(iceTransport, self.__certificates)
File “/usr/local/lib/python3.8/dist-packages/aiortc/rtcdtlstransport.py”, line 375, in init
self.__ctx = certificate._create_ssl_context()
File “/usr/local/lib/python3.8/dist-packages/aiortc/rtcdtlstransport.py”, line 211, in _create_ssl_context
_openssl_assert(lib.SSL_CTX_use_certificate(ctx, self._cert._x509) == 1) # type: ignore
AttributeError: ‘builtins.Certificate’ object has no attribute '_x509

#########code######
import streamlit as st
from streamlit_webrtc import webrtc_streamer, VideoProcessorBase, RTCConfiguration
import av
import cv2
RTC_CONFIGURATION = RTCConfiguration(
{“iceServers”: [{“urls”: [“stun:stun.l.google.com:19302”]}]}
)
class VideoProcessor:
def recv(self, frame):
img = frame.to_ndarray(format=“bgr24”)
return av.VideoFrame.from_ndarray(img, format=“bgr24”)

ctx = webrtc_streamer(
key=“example”,
video_processor_factory=VideoProcessor,
rtc_configuration=RTC_CONFIGURATION,
media_stream_constraints={
“video”: True,
“audio”: False
}
)

########note#####
this error since yesterday ,before it properly works

Hi there,

Thanks for sharing your question with the community! Check out our guidelines on how to post an effective question here – in particular, please format your code properly so our community members can reproduce the issue.