Rtsp camera error

Hello, i connected my camera to the jetson nano through ethernet , and i displayed the camera feed using rtsp.
The problem is that it works well when using python 3.6.9 but when using python 3.9 it gives me one frame then the feed stops and tells me this window isnt responding

Jetson Nano uses Jetpack 4.6.4 and we would use python 2.7 or 3.6 on Jetpack 4 release. It is possible later 3.8+ may not work properly.

Here is a similar issue:
Jetson/L4T/TRT Customized Example - eLinux.org