Ticket #112 (closed defect: fixed)

Opened 4 months ago

Last modified 2 weeks ago

AttributeError: PcapReader instance has no attribute 'close'

Reported by: timo.lindfors@iki.fi Assigned to: pbi
Priority: minor Milestone:
Component: scapy Version:
Keywords: Cc:

Description

> latest version from mercurial fails here with:
>
> $ PATH=/usr/sbin:$PATH ./scapy.py
> ./scapy.py:3224: Warning: 'with' will become a reserved keyword in Python 2.6
> ./scapy.py:3226: Warning: 'with' will become a reserved keyword in Python 2.6
> INFO: did not find python gnuplot wrapper . Won't be able to plot
> INFO: Can't import PyX. Won't be able to use psdump() or pdfdump()
> WARNING: Failed to execute tcpdump. Check it is installed and in the PATH
> INFO: Can't find Crypto python lib. Won't be able to decrypt WEP
> Welcome to Scapy (1.2.0.2)
>>>> sniff(offline="/home/lindi/d2")
> Traceback (most recent call last):
>  File "<console>", line 1, in <module>
>  File "./scapy.py", line 11847, in sniff
>    s.close()
> AttributeError: PcapReader instance has no attribute 'close'
>
> You can pull from
>
> http://iki.fi/lindi/hg/scapy/
>
> a patch to remove this call completely but is this the correct fix?
> PcapReader does not seem to have anything resembling close() anymore.

Attachments

Change History

08/12/08 00:34:32 changed by pbi

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [c8daee35ed96]


Add/Change #112 (AttributeError: PcapReader instance has no attribute 'close')




Change Properties
Action