vnetman / pcap2csv

Use PyShark and scapy to read fields from a pcap file and populate a CSV
MIT License
55 stars 23 forks source link

pcap2csv file reports error when running #5

Open SIYB-cyh opened 7 months ago

SIYB-cyh commented 7 months ago

loop = events.get_running_loop() RuntimeError: no running event loop or "Searched these paths: {}".format(possible_paths) pyshark.tshark.tshark.TSharkNotFoundException: TShark not found.

SIYB-cyh commented 7 months ago

Solution: Download Wireshark to solve the problem. Cause of the problem: The Wireshark\tshark.exe file is called when the pcap2csv file is running, but the host lacks Warkshark support, so an error is reported. This is not a problem with the pyshark library. Downloading Wireshark and specifying the file path will solve the problem.