0

My scapy is not working at all. I don't know what the problem. I already install "pip install scapy" but it still persists in not working. I install the scapy in my pyserver/venv/Scripts. Im using windows for my laptop.

from scapy.all import *
ip = IP()
ip.show()

Error:

Traceback (most recent call last):
  File "c:\Users\1luki\pyserver\scapy.py", line 1, in <module>
    from scapy.all import *
  File "c:\Users\1luki\pyserver\scapy.py", line 1, in <module>
    from scapy.all import *
ModuleNotFoundError: No module named 'scapy.all'; 'scapy' is not a package

Scapy error

Odain
  • 1
  • 2
  • 2
    "c:\Users\1luki\pyserver\scapy.py": You called this file `scapy.py`, which means your script is trying to import itself. Rename this script to something else. – Carcigenicate Jun 15 '21 at 16:20
  • thx I just realized it. I was so sleepy and I didn't realize I named it scapy. – Odain Jun 15 '21 at 17:39

0 Answers0