youtube-dl doesn't work for me after a recent update. I do not use it often, so do not know whether the update matters. It gives the error message: Traceback (most recent call last): File "/usr/bin/youtube-dl", line 6, in <module> from pkg_resources import load_entry_point ModuleNotFoundError: No module named 'pkg_resources'
I've tried reinstalling python-setuptools, installing python34-setuptools and reinstalling youtube-dl .
I'm aware there is a bugzilla on it. That and stackoverflow are where I got the ideas above.
How do I make youtube-dl work on Centos 7?
How did you install it?
I'm using their binary and it works great, just tested it.
https://ytdl-org.github.io/youtube-dl/download.html
-- Sent from the Delta quadrant using Borg technology!
Nux! www.nux.ro
----- Original Message -----
From: "Michael Hennebry" hennebry@web.cs.ndsu.nodak.edu To: "CentOS mailing list" centos@centos.org Sent: Wednesday, 8 May, 2019 03:55:12 Subject: [CentOS] youtube-dl No module named 'pkg_resources'
youtube-dl doesn't work for me after a recent update. I do not use it often, so do not know whether the update matters. It gives the error message: Traceback (most recent call last): File "/usr/bin/youtube-dl", line 6, in <module> from pkg_resources import load_entry_point ModuleNotFoundError: No module named 'pkg_resources'
I've tried reinstalling python-setuptools, installing python34-setuptools and reinstalling youtube-dl .
I'm aware there is a bugzilla on it. That and stackoverflow are where I got the ideas above.
How do I make youtube-dl work on Centos 7?
-- Michael hennebry@web.cs.ndsu.NoDak.edu "Sorry but your password must contain an uppercase letter, a number, a haiku, a gang sign, a heiroglyph, and the blood of a virgin." -- someeecards _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
On Wed, 8 May 2019, Nux! wrote:
How did you install it?
Most recently yum reinstall youtube-dl
I'm using their binary and it works great, just tested it.
----- Original Message -----
From: "Michael Hennebry" hennebry@web.cs.ndsu.nodak.edu To: "CentOS mailing list" centos@centos.org Sent: Wednesday, 8 May, 2019 03:55:12 Subject: [CentOS] youtube-dl No module named 'pkg_resources'
youtube-dl doesn't work for me after a recent update. I do not use it often, so do not know whether the update matters. It gives the error message: Traceback (most recent call last): File "/usr/bin/youtube-dl", line 6, in <module> from pkg_resources import load_entry_point ModuleNotFoundError: No module named 'pkg_resources'
I've tried reinstalling python-setuptools, installing python34-setuptools and reinstalling youtube-dl .
I'm aware there is a bugzilla on it. That and stackoverflow are where I got the ideas above.
How do I make youtube-dl work on Centos 7?
On Wed, 8 May 2019 09:08:12 -0500 (CDT) Michael Hennebry hennebry@web.cs.ndsu.nodak.edu wrote:
On Wed, 8 May 2019, Nux! wrote:
How did you install it?
Most recently yum reinstall youtube-dl
I'm using their binary and it works great, just tested it.
So am I. Despite generally favoring regular repositories, in the particular case of youtube-dl I prefer to uninstall the repo version, and follow the instructions on their website above. I just do a wget and a chmod as explained there, and it downloads itself into /usr/local/bin. Whenever it fails to work, usually a simple
sudo youtube-dl -U
will update itself to the latest version, which does work.
The errors you encounter are typically not a problem in the script itself, nor in python, but a change in the structure of the youtube.com html code. It gets changed often, and then the older youtube-dl fails to parse the new youtube.com code structure, and errors out. But usually there is an updated version (often the same day) of youtube-dl, which parses the new html code correctly.
If you use the repo version of youtube-dl, it may take a couple of weeks even for the update to land. On the other hand, the above manual update works immediately, with no hassle.
Never failed me so far.
HTH, :-) Marko
On Tue, May 7, 2019 at 7:55 PM Michael Hennebry hennebry@web.cs.ndsu.nodak.edu wrote:
youtube-dl doesn't work for me after a recent update. I do not use it often, so do not know whether the update matters. It gives the error message: Traceback (most recent call last): File "/usr/bin/youtube-dl", line 6, in <module> from pkg_resources import load_entry_point ModuleNotFoundError: No module named 'pkg_resources'
I've tried reinstalling python-setuptools, installing python34-setuptools and reinstalling youtube-dl .
I'm aware there is a bugzilla on it. That and stackoverflow are where I got the ideas above.
How do I make youtube-dl work on Centos 7?
If you are using the EPEL one, you can resolve it by installing:
(1) python36-setuptools from epel and (2) youtube-dl from epel-testing
Akemi