title: Python3.4 -Nmap Requires root privileges
body: <p>Running on Mac Os 10.10.5
  Running this script to scan for hosts on the network:</p>
  
  <pre><code>import nmap
  nm = nmap.PortScanner()
  nm.scan('192.168.5.1/24', arguments='-O')
  for h in nm.all_hosts():
      if 'mac' in nm[h]['addresses']:
          print(nm[h]['addresses'], nm[h]['vendor'])
  </code></pre>
  
  <p>When running it its printing: </p>
  
  <pre><code>Traceback (most recent call last):
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/nmap/nmap.py", line 290, in analyse_nmap_xml_scan
      dom = ET.fromstring(self._nmap_last_output)
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/xml/etree/ElementTree.py", line 1326, in XML
      return parser.close()
    File "&lt;string&gt;", line None
  xml.etree.ElementTree.ParseError: no element found: line 1, column 0
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "/Users/*/Documents/*.py", line 3, in &lt;module&gt;
      nm.scan('192.168.0.0/24', arguments='-O')
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/nmap/nmap.py", line 235, in scan
      nmap_err_keep_trace = nmap_err_keep_trace)
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/nmap/nmap.py", line 293, in analyse_nmap_xml_scan
      raise PortScannerError(nmap_err)
  nmap.nmap.PortScannerError: 'TCP/IP fingerprinting (for OS scan) requires root privileges.\nQUITTING!\n'
  </code></pre>
  
  <p>I tried going to that directory and running this command in the terminal:
  sudo python *.py</p>
  
  <pre><code>({'mac': '02:62:31:41:6D:84', 'ipv4': '192.168.5.1'}, {})
  </code></pre>
  
  <p>Any suggestions to run the script from the python IDLE?</p>