Bug 1216467 - Package "yt-dlp" does not contain the library
Summary: Package "yt-dlp" does not contain the library
Status: RESOLVED FIXED
: 1216572 (view as bug list)
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Maintenance (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Jan Engelhardt
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-22 15:14 UTC by Nikita Beloglazov
Modified: 2023-11-18 23:05 UTC (History)
8 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
broken package with no python code (52.78 KB, image/jpeg)
2023-10-24 22:27 UTC, Nikita Beloglazov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Beloglazov 2023-10-22 15:14:16 UTC
Hello! I am a package maintainer and I have some difficulties:
yt-dlp does not contain a library for python3 that can be used via "import". It only contains executable-only binary file: /usr/bin/yt-dlp

For example, in Fedora yt-dlp is supplied as a binary+library in one package

This creates an inconvenience for people who have the yt-dlp dependency as a library, for example:
https://github.com/Unrud/video-downloader
https://github.com/NikitaBeloglazov/ytcon

- = - Expected Behavior - = -
> sudo zypper in yt-dlp
(1/1) Installing: yt-dlp-2023.10.13-1.2......[done]

> python3
Python 3.11.5 (main) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import yt_dlp
(done)
>>>


- = - ACTUAL Behavior - = -
> sudo zypper in yt-dlp
(1/1) Installing: yt-dlp-2023.10.13-1.2......[done]

> python3
Python 3.11.5 (main) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import yt_dlp
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'yt_dlp'
>>>
Comment 1 OBSbugzilla Bot 2023-10-22 23:25:03 UTC
This is an autogenerated message for OBS integration:
This bug (1216467) was mentioned in
https://build.opensuse.org/request/show/1119460 Factory / yt-dlp
Comment 2 Marc Joliet 2023-10-24 22:07:24 UTC
(In reply to OBSbugzilla Bot from comment #1)
> This is an autogenerated message for OBS integration:
> This bug (1216467) was mentioned in
> https://build.opensuse.org/request/show/1119460 Factory / yt-dlp

I just upgraded to the version referenced there (according to rpm --query --changelog), now I get the following error (with or without argument):

% yt-dlp
Traceback (most recent call last):
  File "/usr/lib64/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/yt-dlp", line 33, in <module>
    sys.exit(load_entry_point('yt-dlp==2023.10.13', 'console_scripts', 'yt-dlp')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/yt-dlp", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/importlib/metadata/__init__.py", line 981, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/importlib/metadata/__init__.py", line 565, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for yt-dlp

To be clear: up until the upgrade (i.e., today) yt-dlp was working as expected.
Comment 3 Nikita Beloglazov 2023-10-24 22:27:47 UTC
Created attachment 870441 [details]
broken package with no python code
Comment 4 Nikita Beloglazov 2023-10-24 22:30:48 UTC
Um... Guys.. Are you tested it before merge into OSS repo?
These python packages contain only egg-info, but it doesn't contain yt-dlp python code... these packages are broken.

(see attachment 870441 [details])
Comment 5 OBSbugzilla Bot 2023-10-25 06:15:02 UTC
This is an autogenerated message for OBS integration:
This bug (1216467) was mentioned in
https://build.opensuse.org/request/show/1120155 Factory / yt-dlp
Comment 6 hui 2023-10-25 15:48:21 UTC
*** Bug 1216572 has been marked as a duplicate of this bug. ***
Comment 7 Hzu 2023-10-26 05:43:58 UTC
(In reply to Nikita Beloglazov from comment #3)
> Created attachment 870441 [details]
> broken package with no python code

Can confirm. Package is broken after updating.
Comment 8 Marc Joliet 2023-10-26 22:06:20 UTC
(In reply to OBSbugzilla Bot from comment #5)
> This is an autogenerated message for OBS integration:
> This bug (1216467) was mentioned in
> https://build.opensuse.org/request/show/1120155 Factory / yt-dlp

Well, that fixed *my* issue: post-upgrade yt-dlp works again for me.  Looks like you can get back to the original issue now :-) .
Comment 9 Nikita Beloglazov 2023-10-27 22:42:31 UTC
Looks like python311-yt-dlp works well now. Thanks <3
Comment 10 OBSbugzilla Bot 2023-11-15 10:35:04 UTC
This is an autogenerated message for OBS integration:
This bug (1216467) was mentioned in
https://build.opensuse.org/request/show/1126561 Backports:SLE-15-SP5 / yt-dlp
Comment 11 Marcus Meissner 2023-11-18 23:05:00 UTC
openSUSE-SU-2023:0374-1: An update that fixes two vulnerabilities is now available.

Category: security (moderate)
Bug References: 1213124,1216467
CVE References: CVE-2023-35934,CVE-2023-46121
JIRA References: 
Sources used:
openSUSE Backports SLE-15-SP5 (src):    yt-dlp-2023.11.14-bp155.3.3.1