google / textfsm

Python module for parsing semi-structured text into python tables.
Apache License 2.0
1.09k stars 168 forks source link

Stuck, can't get passed this error, please help. #91

Closed DelmiroCampelo closed 5 months ago

DelmiroCampelo commented 3 years ago

I’m getting the following error when trying to parse some ouput using TextFSM in Ansible. I tried specifying the python interpreter path and it didn’t work. I can’t solve this issue myself for some reason, any help is appreciated.

Error: “parse_cli_textfsm filter requires TextFSM library to be installed”

[all:vars] ansible_python_interpreter="/opt/rh/rh-python36/root/usr/bin/python" [root@server ansible]# ansible –version wansible 2.9.7 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules',u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /bin/ansible python version = 2.7.5 (default, Aug 13 2020, 02:51:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] [root@server ansible]# which python /opt/rh/rh-python36/root/usr/bin/python

[root@server ansible]# pip3 install textfsm Requirement already satisfied: textfsm in /root/.local/lib/python3.6/site-packages (1.1.0) Requirement already satisfied: six in /root/.local/lib/python3.6/site-packages (from textfsm) (1.15.0) Requirement already satisfied: future in /root/.local/lib/python3.6/site-packages (from textfsm) (0.18.2) [root@server ansible]#

Ansible3

buxtronix commented 3 years ago

This is probably something to do with Ansible. I'd investigate their support forums for this issue.

harro commented 5 months ago

Closing as this is a pretty stale issue - please reopen if this is still a concern?