Skip to content

Iso timestamp gives type object 'datetime.datetime' has no attribute 'datetime' #7

@Dmeowmixer

Description

@Dmeowmixer

$ sudo python probemon.py -i wlan0 -t iso -o probemon.log -f -s -r
Traceback (most recent call last):
File "probemon.py", line 96, in
main()
File "probemon.py", line 93, in main
sniff(iface=args.interface, prn=built_packet_cb, store=0)
File "/usr/local/lib/python2.7/dist-packages/scapy/sendrecv.py", line 620, in sniff
r = prn(p)
File "probemon.py", line 36, in packet_callback
log_time = datetime.datetime.now().isoformat()
AttributeError: type object 'datetime.datetime' has no attribute 'datetime'

unix working fine, not sure if this is a local problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions