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

scapy NameError: name 'packet' is not defined #4

Open utkarsh0902311047 opened 3 years ago

utkarsh0902311047 commented 3 years ago

Hi, I am facing error while running the command python pcap2csv. py....... It points to the utils.py in scapy and says NameError: name Packet is not defined. Please help

scapy_error1 scapy_error1

duckbill commented 2 years ago

Hi, I am facing error while running the command python pcap2csv. py....... It points to the utils.py in scapy and says NameError: name Packet is not defined. Please help

scapy_error1 scapy_error1

https://github.com/secdev/scapy/commit/ff644181d9bee35979a84671690d8cd1aa1971fa modify the source code,and it works for me

Yffffan commented 2 years ago

Hello, I have the same problem. Did you solve it? How was it solved? Thanks!

daluu commented 1 year ago

Per the linked commit on scapy dependency, you patch scapy to fix the issue as it's broken at scapy side. Alternative is to use an updated scapy version, given this repo/project doesn't specify an exact scapy version, looks like the scapy fix should be in scapy v2.5.0+?