Netmiko 2.4.2 failing for TextFSM
See original GitHub issueOne of our servers was patched recently I am guessing and it appears to have broken Netmiko. We are running version 2.4.2 of Netmiko and 1.1.0 for TextFSM. Everything I can find says this issue was fixed in 2.4.1 but that doesn’t seem to be the case here. The server is running RHEL 7.7.
Traceback (most recent call last):
File "/usr/bin/netmiko-show", line 18, in <module>
from netmiko import ConnectHandler
File "/usr/lib/python2.7/site-packages/netmiko/__init__.py", line 8, in <module>
from netmiko.ssh_dispatcher import ConnectHandler
File "/usr/lib/python2.7/site-packages/netmiko/ssh_dispatcher.py", line 4, in <module>
from netmiko.a10 import A10SSH
File "/usr/lib/python2.7/site-packages/netmiko/a10/__init__.py", line 2, in <module>
from netmiko.a10.a10_ssh import A10SSH
File "/usr/lib/python2.7/site-packages/netmiko/a10/a10_ssh.py", line 4, in <module>
from netmiko.cisco_base_connection import CiscoSSHConnection
File "/usr/lib/python2.7/site-packages/netmiko/cisco_base_connection.py", line 3, in <module>
from netmiko.base_connection import BaseConnection
File "/usr/lib/python2.7/site-packages/netmiko/base_connection.py", line 32, in <module>
from netmiko.utilities import (
File "/usr/lib/python2.7/site-packages/netmiko/utilities.py", line 11, in <module>
from netmiko._textfsm import _clitable as clitable
File "/usr/lib/python2.7/site-packages/netmiko/_textfsm/__init__.py", line 3, in <module>
from netmiko._textfsm import _clitable
File "/usr/lib/python2.7/site-packages/netmiko/_textfsm/_clitable.py", line 40, in <module>
import copyable_regex_object
ImportError: No module named copyable_regex_object
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Netmiko with textfsm 1.1.0 is not working. · Issue #1304 - GitHub
This is happening post textfsm update from 0.4.1 to 1.1.0. (temp_virt) vsethuram-a01:temp vsethuram$ pip3 install netmiko Collecting netmiko ...
Read more >Solved: Import Netmiko to Pycharm fails - Experts Exchange
Import Netmiko to Pycharm fails. I have installed Netmiko as shown below: C:\Users\user>pip show netmiko Name: netmiko Version: 2.4.2 ...
Read more >Netmiko installation error for python3 in gns3 - Stack Overflow
DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1. During handling of the above exception, another exception ...
Read more >Netmiko and TextFSM - Python for Network Engineers
Now what about the failure case? In other words, what happens when the template lookup fails or ntc-templates is not installed properly. In...
Read more >netmiko - PyPI
Netmiko aims to accomplish both of these operations and to do it across a very ... ran black against the code or your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems to be solved now. I uninstalled textfsm via pip but there were still a couple of files left behind on the /usr/lib/python2.7/site-packages/textfsm/ directory.
Once I deleted those and the directory and installed textfsm again everything seems to be working as expected. Thanks for the help.
Yeah it is weird because all of those files exist. I will see what I can find out.