You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also got the same exact error with the same traceback :
Traceback (most recent call last):
File "C:\Users\[REDACTED]\Documents\Development\Console Automation\extract_ssh_configuration.py", line 83, in <module>
main()
File "C:\Users\[REDACTED]\Documents\Development\Console Automation\extract_ssh_configuration.py", line 48, in main
switch_facts = device.get_facts()
File "C:\Users\[REDACTED]\Documents\Portable Python-3.10.5 x64\App\Python\lib\site-packages\napalm_h3c_comware\comware.py", line 118, in get_facts
structured_int_info = self._get_structured_output("display interface")
File "C:\Users\[REDACTED]\Documents\Portable Python-3.10.5 x64\App\Python\lib\site-packages\napalm_h3c_comware\comware.py", line 86, in _get_structured_output
result = textfsm_extractor(self, template_name, raw_output)
File "C:\Users\[REDACTED]\Documents\Portable Python-3.10.5 x64\App\Python\lib\site-packages\napalm\base\helpers.py", line 284, in textfsm_extractor
fsm_handler = textfsm.TextFSM(f)
File "C:\Users\[REDACTED]\Documents\Portable Python-3.10.5 x64\App\Python\lib\site-packages\textfsm\parser.py", line 586, in __init__
self._Parse(template)
File "C:\Users\[REDACTED]\Documents\Portable Python-3.10.5 x64\App\Python\lib\site-packages\textfsm\parser.py", line 684, in _Parse
self._ParseFSMVariables(template)
File "C:\Users\[REDACTED]\Documents\Portable Python-3.10.5 x64\App\Python\lib\site-packages\textfsm\parser.py", line 708, in _ParseFSMVariables
for line in template:
File "C:\Users\[REDACTED]\Documents\Portable Python-3.10.5 x64\App\Python\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 406: character maps to <undefined>
I tried to use the netmiko arg encoding but with no change :
Hi there,
I have a switch stack of S5820X devices which should be compatible with the S5500 series of devices.
Running a simple
.get_facts()
on the system results in a UnicodeDecodeError with the following traceback:Attached is the precise value of
raw_output
when printed to a file:105463-1042167.734.txt
The text was updated successfully, but these errors were encountered: