Page 1 of 1
BP64: YT downloader yt-dlp stopped working, needs Python 3.7
Posted: Fri Feb 24, 2023 6:36 pm
by vtpup
Hi gang,
Bionicpup 64: yt-dlp youtube downloader just stopped working after an update when the older version I was using no longer worked, The newer version says it requires Python 3.7 or higher. I have on board Python 3.6.
Suggestions for the simplest way to get it working again? Thanks!
Error message below:
Code: Select all
Traceback (most recent call last):
File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 2, in <module>
ModuleNotFoundError: No module named 'contextvars'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/bin/yt-dlp/__main__.py", line 14, in <module>
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 5, in <module>
Exception: You are using an unsupported version of Python. Only Python versions 3.7 and above are supported by yt-dlp
- PupAppInstaller-Pythons.png (71.45 KiB) Viewed 334 times
Re: BP64: YT downloader yt-dlp stopped working, needs Python 3.7
Posted: Fri Feb 24, 2023 9:55 pm
by OscarTalks
For yt-dlp I just compile a later version of python3
I have 3.8.16 in my StretchPup at present and ran yt-dlp with it yesterday.
On BarryK's blog there is a post about continued development of youtube-dl which I believe still works with python2.7 so that may give an alternative option.
Re: BP64: YT downloader yt-dlp stopped working, needs Python 3.7
Posted: Mon Feb 27, 2023 2:19 am
by vtpup
Thanks Oscar. I'm on BP64 I see that the Ubuntu repository has Python 3.7. Would I just add that, or would I have to remove 3.6 first, and would that bother other programs which may be running 3.6 presently?
Re: BP64: YT downloader yt-dlp stopped working, needs Python 3.7
Posted: Wed Mar 01, 2023 10:17 pm
by OscarTalks
vtpup wrote: ↑Mon Feb 27, 2023 2:19 amI'm on BP64 I see that the Ubuntu repository has Python 3.7. Would I just add that, or would I have to remove 3.6 first, and would that bother other programs which may be running 3.6 presently?
To be honest I am not really sure and would not want to steer you in the wrong direction. As a general rule I would say uninstall old before installing new, but with python I believe different versions can co-exist because they each install with their own specific numbered suffixes. I don't know what programs you are running that depend on it, so you will have to decide for yourself unless someone else can say with certainty.
Are you running yt-dlp from command line or using some sort of GUI?
Just to let you (and others) know, I have been using the old youtube-dl from command line and it was working up until about 2 or 3 weeks ago when it started throwing errors. The updated version of youtube-dl fixes everything and works fine, but you can't download it as an update from within youtube-dl itself.
See this post on the BarryK blog
https://bkhome.org/news/202302/youtube- ... fixed.html
And use the curl command to download a new and working version of youtube-dl
Code: Select all
curl -L https://github.com/ytdl-patched/youtube-dl/releases/latest/download/youtube-dl -o youtube-dl
Re: BP64: YT downloader yt-dlp stopped working, needs Python 3.7
Posted: Thu Mar 02, 2023 12:08 am
by vtpup
Hi Oscar, thanks for replying, and what you said makes sense. I have been using yt-dlp from the command line. Before that I used the Youtube downloader graphical program that I believe used yt-dl under the hood, but it stopped working for me and upgrade process didn't fix it, so switched over to command line dlp. I've become used to that one and it's quite easy to use.
I think I will try downloading Python 3.7 without removing 3.6, and see what happens.
Thanks for your help again!