title: PermissionError: [Errno 1] Operation not permitted
body: <p>I am completely new to python, linux RPI and scapy. I am trying to send some packets using scapy.<br>
  On Command Line (only if super user privileges are given to scapy)<br></p>
  
  <pre><code>send(IP(dst="1.2.3.4")/ICMP())
  </code></pre>
  
  <p>This works perfectly, while running on python script.<br></p>
  
  <pre><code>from scapy.all import *
  p=send(IP(dst="1.2.3.4")/ICMP())
  </code></pre>
  
  <p>Throws an error
  <br></p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;pyshell#19&gt;", line 1, in &lt;module&gt;
      send(IP(dst="1.2.3.4")/ICMP())
    File "/usr/local/lib/python3.4/dist-packages/scapy/sendrecv.py",line   255, in send
      __gen_send(conf.L3socket(*args, **kargs), x, inter=inter, loop=loop, count=count,verbose=verbose, realtime=realtime)
    File "/usr/local/lib/python3.4/dist-packages/scapy/arch/linux.py", line 326, in __init__
      self.ins = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(type))
    File "/usr/lib/python3.4/socket.py", line 123, in __init__
      _socket.socket.__init__(self, family, type, proto, fileno)
  PermissionError: [Errno 1] Operation not permitted&lt;br&gt;
  </code></pre>
  
  <p>I am trying to solve it but cannot, I am new to the environment therefore don't know much. As far as my search goes this issue is relevant to sockets. But I still need some simple explanation to understand.</p>