yt-dlp: Unresolved dependency

Bug #1967266 reported by Pratham Patel
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
yt-dlp (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Installing/upgrading `yt-dlp` does not install a necessary dependency (`python3-brotli`).

Output of `lsb_release -rd`:
```
Description: Ubuntu 20.04.4 LTS
Release: 20.04
```

Output of `apt-cache policy yt-dlp`
```
yt-dlp:
  Installed: 2022.03.08.1-1~bpo20.04.1
  Candidate: 2022.03.08.1-1~bpo20.04.1
  Version table:
 *** 2022.03.08.1-1~bpo20.04.1 100
        100 http://ports.ubuntu.com/ubuntu-ports focal-backports/universe arm64 Packages
        100 /var/lib/dpkg/status
```

When trying to download media using `yt-dlp`, it gives out an error indicating that an exception occurred because a necessary dependency was not found in the system. The error message is as below:
```
Traceback (most recent call last):
  File "/usr/bin/yt-dlp", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3254, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3237, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3266, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 584, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 901, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 787, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'brotli' distribution was not found and is required by yt-dlp
```

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in yt-dlp (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package yt-dlp - 2022.04.08-1

---------------
yt-dlp (2022.04.08-1) unstable; urgency=medium

  * New upstream version 2022.04.08.
    - Refresh supported sites.
    - Refresh patch.
  * d/control: Require dh-python 5.20211213 for 'environment marker' support.
    (LP: #1967266)

 -- Unit 193 <email address hidden> Sat, 09 Apr 2022 00:56:04 -0400

Changed in yt-dlp (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Jonathan Hunter (jmhunter) wrote (last edit ):

For anyone on Focal where the current yt-dlp package seems to be 2022.03.08.1-1~bpo20.04.1, you can manually install the "python3-brotli" package to resolve this error.

(You may then also run into LP: #2008009 - https://bugs.launchpad.net/bugs/2008009 - if that has not yet been fixed, also)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.