Skip to content

NameError: name 'packet' is not defined #2

Description

@greenoaktree

import pcapkit

pcapfile='adsb.pcap'

extraction=pcapkit.extract(fin=pcapfile,store=False,nofile=True,tcp=True,strict=True)

NameError: name 'packet' is not defined

the call stack:

File "C:\Users\Root\Anaconda3\lib\site-packages\pcapkit\interface_init_.py", line 128, in extract
trace=trace, trace_fout=trace_fout, trace_format=trace_format)
File "C:\Users\Root\Anaconda3\lib\site-packages\pcapkit\foundation\extraction.py", line 498, in init
self.run() # start extraction
File "C:\Users\Root\Anaconda3\lib\site-packages\pcapkit\foundation\extraction.py", line 256, in run
self.record_frames() # read frames
File "C:\Users\Root\Anaconda3\lib\site-packages\pcapkit\foundation\extraction.py", line 360, in record_frames
self._read_frame()
File "C:\Users\Root\Anaconda3\lib\site-packages\pcapkit\foundation\extraction.py", line 579, in _read_frame
return self._default_read_frame()
File "C:\Users\Root\Anaconda3\lib\site-packages\pcapkit\foundation\extraction.py", line 621, in _default_read_frame
flag, data = ipv4_reassembly(packet)
NameError: name 'packet' is not defined

Activity

  1. added
    bugIssues reporting a defect (set by the bug report template; a default, not an assessment)
    on Aug 18, 2018
  2. JarryShaw commented on Aug 18, 2018

    @JarryShaw
    Owner

    Thx for reporting 😅 and now bug fixed… (it was just a silly typo 😂)

  3. added a commit that references this issue on Aug 13, 2026
  4. added this to the 0.13 milestone on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues reporting a defect (set by the bug report template; a default, not an assessment)

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions