Bugzilla – Bug 1216467
Package "yt-dlp" does not contain the library
Last modified: 2023-11-18 23:05:00 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' >>>
This is an autogenerated message for OBS integration: This bug (1216467) was mentioned in https://build.opensuse.org/request/show/1119460 Factory / yt-dlp
(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.
Created attachment 870441 [details] broken package with no python code
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])
This is an autogenerated message for OBS integration: This bug (1216467) was mentioned in https://build.opensuse.org/request/show/1120155 Factory / yt-dlp
*** Bug 1216572 has been marked as a duplicate of this bug. ***
(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.
(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 :-) .
Looks like python311-yt-dlp works well now. Thanks <3
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
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