Open dwei98 opened 3 years ago
How to solve this issue?
Python code crashed when reading the packet as shown in the attached image -
Traceback (most recent call last):
File "/home/osboxes/eclipse-workspace/Python_Projects/Industrial_5G_CPE_Network/TCP_Packets_Processing_rev2.py", line 104, in
I got same issue, I google this issue and find a link(https://osqa-ask.wireshark.org/questions/51447/pyshark-crashes-due-to-no-proper-utf8-encoding/), but when I follow this solution by adding new code(added following line between line 26 + 27 in src\pyshark\tshark\tshark_xml.py, xml_pkt = xml_pkt.decode('latin-1'), python setup.py install), I got second issue(AttributeError: no such child: decode). so do you know how to solve the second issue, thanks!
Looks to be a duplicate of issue #116. Created pull request #479 for a fix.
This did the trick for me, I was looking for specifically malformed packets and it would die on me.
Thanks!