Python:PermissionError:[Errno 1]不允许操作

时间:2017-01-19 23:53:21

标签: python

/usr/bin/python3.4 /home/medivator/ovieproj/packetsniffer.py

Traceback (most recent call last):

File "/home/medivator/ovieproj/packetsniffer.py", line 29, in <module>
main()


File "/home/medivator/ovieproj/packetsniffer.py", line 10, in main
conn = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.ntohs(3))


File "/usr/lib/python3.4/socket.py", line 126, in __init__
_socket.socket.__init__(self, family, type, proto, fileno)

PermissionError: [Errno 1] Operation not permitted

我正在尝试编写网络嗅探器代码,当我尝试运行该应用程序时,我遇到了这个错误。

我需要一些帮助,因为我对错误有点无能为力。谢谢

0 个答案:

没有答案