Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: youtube-dl cannot find it's own python module (Read 559 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

youtube-dl cannot find it's own python module

When I start youtube-dl, it fails with
Code: [Select]
Traceback (most recent call last):
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 563, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/youtube-dl", line 33, in <module>
    sys.exit(load_entry_point('youtube-dl==2021.12.17', 'console_scripts', 'youtube-dl')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/youtube-dl", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 981, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 565, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for youtube-dl

Version: galaxy/youtube-dl 2021.12.17-2.

Full system upgrade carried out just now.

youtube-dl-git version 2021.12.17.r217.g211cbfd5d-1 from the AUR works.

So I suspect a packaging problem with galaxy/youtube-dl.

Regards!

 

Re: youtube-dl cannot find it's own python module

Reply #1
Hello!
Have you tried with yt-dlp, it's drop in succesor? That one seems to work for me.

*Just so you know across a few distros including our Arch downstream there have been some python weirdnesses happening in the last few days. Even though youtube-dl is being kinda phased out it should work again soon.