【发布时间】:2016-10-25 04:51:16
【问题描述】:
成功导入netfilterqueue后,在执行NetfilterQueue()时遇到错误
nfqueue = NetfilterQueue()
File "netfilterqueue.pyx", line 153, in netfilterqueue.NetfilterQueue.__cinit__ (netfilterqueue.c:3733)
OSError: Failed to bind family 2. Are you root?
我的环境如下:
- Ubuntu 16.04 x86_64
- Python 2.7.11(Canopy)
问题:
'netfilterqueue.pyx'可能在这里:git link,我该如何解决?
如果我不是 root,当我在 python 命令行中时,我应该如何获得“root”访问权限?
【问题讨论】:
标签: python-2.7 root ubuntu-16.04 canopy netfilter