FS#72562 - [yt-dlp] pycryptodomex as dependency not pycryptodome.

Attached to Project: Community Packages
Opened by zoorat (zoorat) - Wednesday, 27 October 2021, 17:26 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 27 October 2021, 18:00 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
yt-dlp needs pycryptodomex (the one with x in the end), not pycryptodome(without x).
yt-dlp's readme.md also says pycryptodomex is the dependency it needs.[1]

as for now yt-dlp uses python-pycryptodome as its dependency and it works for the normal terminal command.
but, if you try to use yt-dlp as a dependency of another package like AUR/python-spotdl you will get this error like
```
pkg_resources.DistributionNotFound: The 'pycryptodomex' distribution was not found and is required by yt-dlp
```
which can be solved by installing python-pycryptodomex.

Additional info:
[1] source: https://github.com/yt-dlp/yt-dlp#dependencies

Steps to reproduce:
1. install AUR/python-spotdl (make sure the yt-dlp version is '2021.10.22' with pkgrel = > 3)
2. try to run 'spotdl'
3. install 'python-pycryptodomex'
4. run 'sudo pacman -Rdd python-pycryptodome' to remove pycryptodome
5. try to run 'spotdl' again.

ps. first time making a bug report...
is everything alright ??
This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 27 October 2021, 18:00 GMT
Reason for closing:  Fixed
Additional comments about closing:  yt-dlp 2021.10.22-4

Loading...