Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#72391 - python-pysnmp<5 requires python-pycryptodomex

Attached to Project: Community Packages
Opened by Henry-Joseph (ryolait) - Monday, 11 October 2021, 12:22 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 14 October 2021, 15:02 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:

`python-pysnmp<5` requires `python-pycryptodomex`.

Upstream does not require it anymore in master branch (will be released in 5.*, if I read commit 24a798876655 correctly). But it is still required in 4.4.12 :

$ curl -sL 'https://github.com/etingof/pysnmp/archive/v4.4.12/pysnmp-v4.4.12.tar.gz' | tar -xzO pysnmp-4.4.12/requirements.txt
pysmi
pycryptodomex
pyasn1>=0.2.3

Package version(s): python-pysnmp=4.4.12-3 python-pycryptodomex=3.10.1-1

Steps to reproduce:

Without `python-pycryptodomex` installed:

$ python
Python 3.9.7 (default, Aug 31 2021, 13:28:12)
[GCC 11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pkg_resources
>>> pkg_resources.require("pysnmp")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pycryptodomex' distribution was not found and is required by pysnmp

After `pacman -S --asdeps python-pycryptodomex`, all is working fine:

$ python
Python 3.9.7 (default, Aug 31 2021, 13:28:12)
[GCC 11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pkg_resources
>>> pkg_resources.require("pysnmp")
[pysnmp 4.4.12 (/usr/lib/python3.9/site-packages), pyasn1 0.4.8 (/usr/lib/python3.9/site-packages), pycryptodomex 3.10.1 (/usr/lib/python3.9/site-packages), pysmi 0.3.4 (/usr/lib/python3.9/site-packages), ply 3.11 (/usr/lib/python3.9/site-packages)]
This task depends upon

Loading...