Traceback (most recent call last):


 "pdserving_client.py", line 117, in <module>

main(image_path)


 "pdserving_client.py", line 96, in main

draw_img = draw_server_result(image_file, res)


 "pdserving_client.py", line 45, in draw_server_result

keys = res[0].keys()
AttributeError: 'str' object has no attribute 'keys'

Traceback (most recent call last):


 "I:/scapy网络练习.py", line 68, in <module>

scapy测试()


 "I:/scapy网络练习.py", line 30, in scapy测试

reply=sr1(i/ic)


 "C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\lib\site-packages\scapy\sendrecv.py", line 344, in sr1

s=conf.L3socket(filter=filter, nofilter=nofilter, iface=iface)


 "C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\lib\site-packages\scapy\arch\pcapdnet.py", line 321, in __init__

self.ins = open_pcap(iface, 1600, 0, 100)


 "C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\lib\site-packages\scapy\arch\windows\__init__.py", line 237, in <lambda>

pcapdnet.open_pcap = lambda iface,*args,**kargs: _orig_open_pcap(pcap_name(iface),*args,**kargs)


 "C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\lib\site-packages\scapy\arch\pcapdnet.py", line 251, in <lambda>

open_pcap = lambda *args,**kargs: _PcapWrapper_pypcap(*args,**kargs)


 "C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\lib\site-packages\scapy\arch\pcapdnet.py", line 215, in __init__

self.iface = create_string_buffer(device.encode('ascii'))
AttributeError: 'NoneType' object has no attribute 'encode'