From 2a7430b1ff88633efd2d4d5b037911bd9df4464d Mon Sep 17 00:00:00 2001 From: Denis Gubanov Date: Fri, 17 Nov 2023 12:00:28 +0300 Subject: [PATCH 1/2] No module named 'netmiko.ssh_exception' as of netmiko>=4.1.1 #21 fix --- napalm_ce/ce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napalm_ce/ce.py b/napalm_ce/ce.py index 521139a..4160202 100644 --- a/napalm_ce/ce.py +++ b/napalm_ce/ce.py @@ -32,7 +32,7 @@ # import third party lib from netmiko import ConnectHandler try: - from netmiko.ssh_exception import NetMikoTimeoutException + from netmiko.exceptions import NetMikoTimeoutException except ModuleNotFoundError: from netmiko import NetMikoTimeoutException From 1f0e9e7e62275ddc3c20628700666819d5e4b3ac Mon Sep 17 00:00:00 2001 From: Denis Gubanov Date: Fri, 17 Nov 2023 12:00:43 +0300 Subject: [PATCH 2/2] No module named 'netmiko.ssh_exception' as of netmiko>=4.1.1 #21 fix --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index a727881..c688350 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ napalm>=3.0.0 setuptools>=38.4.0 -netmiko>=3.1.0 +netmiko>=4.1.1 paramiko>=2.6.0 requests>=2.7.0 future -jinja2 \ No newline at end of file +jinja2