openvino_notebooks
openvino_notebooks copied to clipboard
YouTube support broken in 202 video superresolution notebook
PyTube is broken at the moment. It is only used in 202 and already in a try/except loop so the notebook still works with the default video, but it currently does not work with YouTube videos. https://github.com/yt-dlp/yt-dlp looks like a good alternative.
pytube is now fixed with the 12.1.0 update. pytube works on my computer but not on nbval though. Someone needs to update the nbval with 12.1.0. Requirements.txt also needs to have a requirement for pytube >= 12.1.0.
Thanks @thavens ! I am sorry I missed your comment. It is great that this is fixed! PyTube is not pinned in the requirements, so if you install for the first time, you will get the latest version, but if you already installed it previously, pip will get it from the cache unless you specifically request it to upgrade. nbval installs the requirements from requirements.txt too, so if there is no old version in cache and there are no dependency conflicts, it should install the latest version too.
@paularamo @Debskij it could be useful to set pytube in requirements.txt to >=12.1.0 to make sure users get the working version.