I\'m making a little graphic interface with Python 3 which should download a youtube video with it URL.
I use for that the module youtube_dl.
This is my code :
I had the same error on Ubuntu 20.04.
I solved it by updating youtube-dl by downloading a .deb from:
https://packages.debian.org/sid/all/youtube-dl/download
Though you can also get the update on youtube-dl's official site.