jamiecaesar / securecrt-tools

SecureCRT scripts, written in Python, for doing various tasks when connected to Cisco equipment.
Apache License 2.0
246 stars 78 forks source link

Error running s_switchport_mapping.py #51

Open cmacasae opened 3 years ago

cmacasae commented 3 years ago

UnicodeEncodeError Error: ascii File: \s_switchport_mapping.py Line: 159 utilities.list_of_lists_to_csv(output, output_filename)

The script was able to run properly on another device. For some reason I am getting the error when running it in a C9410R The error pops after terminal length and width is executed after pointing to the arp csv file There is an output port-map csv file but it is incomplete

jamiecaesar commented 3 years ago

Sorry for the delay. My current work project hasn't left me much time to work on this -- also, I don't think I have a C9410R at my disposal to test with, but I'll see if I can find another device where I can reproduce this problem.

routepoison commented 2 years ago

I've hit the same error with Nexus 5K, after repeative testing and readjusting SecureCRT profile to UTF-8 encoding it eventually took, however, I couldn't identify the exact issue.

routepoison commented 1 year ago

I've hit the same error with Nexus 5K, after repeative testing and readjusting SecureCRT profile to UTF-8 encoding it eventually took, however, I couldn't identify the exact issue.

Correction to this, excel allows saving of classic .CSV and .CSV UTF-8 encoding, ensure not to select the latter.