title: python scapy.all file not found
body: <p>I have tried to run my program, and I have tried import <code>scapy</code> then import <code>scapy.all</code> but is will give me the same error. I am using kali-linux if that helps. The code that is causing the error is just from <code>scapy.all import *</code></p>
  <p>This is the full error output:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/home/bradz/test.py&quot;, line 24, in &lt;module&gt;
      from scapy.all import send, IP, TCP, ARP
    File &quot;/usr/local/lib/python3.9/dist-packages/scapy/all.py&quot;, line 16, in &lt;module&gt;
      from scapy.arch import *
    File &quot;/usr/local/lib/python3.9/dist-packages/scapy/arch/__init__.py&quot;, line 27, in &lt;module&gt;
      from scapy.arch.bpf.core import get_if_raw_addr&lt;br/&gt;
    File &quot;/usr/local/lib/python3.9/dist-packages/scapy/arch/bpf/core.py&quot;, line 30, in &lt;module&gt;
      LIBC = cdll.LoadLibrary(find_library(&quot;libc&quot;))
    File &quot;/usr/lib/python3.9/ctypes/util.py&quot;, line 341, in find_library
      _get_soname(_findLib_gcc(name)) or _get_soname(_findLib_ld(name))
    File &quot;/usr/lib/python3.9/ctypes/util.py&quot;, line 147, in _findLib_gcc
      if not _is_elf(file):
    File &quot;/usr/lib/python3.9/ctypes/util.py&quot;, line 99, in _is_elf
      with open(filename, 'br') as thefile:
  FileNotFoundError: [Errno 2] No such file or directory: b'liblibc.a'
  </code></pre>
  <p>Fixed it. You need to go to:</p>
  <pre><code>/usr/lib/python3/dist-packages/scapy/arch/bpf/core.py
  </code></pre>
  <p>and edit the line</p>
  <pre><code>LIBC = cdll.LoadLibrary(find_library(&quot;libc&quot;))
  </code></pre>
  <p>to</p>
  <pre><code>LIBC = cdll.LoadLibrary(find_library(&quot;c&quot;))
  </code></pre>