pyshark
pyshark copied to clipboard
elastic-mapping not supported
I'm trying to use the parameter use_ek
in a LiveCapture session. I continually get the following error:
raise TSharkVersionException(f"Your tshark version does not support elastic-mapping. Please upgrade.") pyshark.tshark.tshark.TSharkVersionException: Your tshark version does not support elastic-mapping. Please upgrade.
Here is the code that I'm using:
import pyshark
capture = pyshark.LiveCapture(interface='en0', use_ek=True)
for packet in capture:
# do something with the packet
----------------------------------------
My system information
----------------------------------------
Platform: Apple
OS Version: macOS Catalina 10.15.7
Python Version: 3.9
PyShark Version: 0.5.3
Tshark Version: 4.0.3
----------------------------------------