From f38d45151a7fcc9dc75f17f21adabaf116ba5060 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 29 Apr 2023 14:32:57 -0500 Subject: [PATCH] Pin `pyasn1` and `pysnmplib` since `pyasn1` 0.5.0 has breaking changes and `pysnmp-pyasn1` and `pyasn1` are both using the `pyasn1` namespace (#92254) --- homeassistant/package_constraints.txt | 8 ++++++++ script/gen_requirements_all.py | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index dcc98f78a77..15e1192993a 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -168,3 +168,11 @@ faust-cchardet>=2.1.18 # which break wheel builds so we need at least 11.0.1 # https://github.com/aaugustin/websockets/issues/1329 websockets>=11.0.1 + +# pyasn1 0.5.0 has breaking changes which cause pysnmplib to fail +# until they are resolved, we need to pin pyasn1 to 0.4.8 and +# pysnmplib to 5.0.21 to avoid the issue. +# https://github.com/pyasn1/pyasn1/pull/30#issuecomment-1517564335 +# https://github.com/pysnmp/pysnmp/issues/51 +pyasn1==0.4.8 +pysnmplib==5.0.21 diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index 725c728607b..592e8f5a1f0 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -172,6 +172,14 @@ faust-cchardet>=2.1.18 # which break wheel builds so we need at least 11.0.1 # https://github.com/aaugustin/websockets/issues/1329 websockets>=11.0.1 + +# pyasn1 0.5.0 has breaking changes which cause pysnmplib to fail +# until they are resolved, we need to pin pyasn1 to 0.4.8 and +# pysnmplib to 5.0.21 to avoid the issue. +# https://github.com/pyasn1/pyasn1/pull/30#issuecomment-1517564335 +# https://github.com/pysnmp/pysnmp/issues/51 +pyasn1==0.4.8 +pysnmplib==5.0.21 """ IGNORE_PRE_COMMIT_HOOK_ID = (