I am working on a network tool that I write in python using scapy.
As IDE I am using Pycharm.
My Code works. So if I run it, everything works just as intended.
My problem is that PyCharm is giving me some errors.
It marks every use of IP
, TCP
, Ether
, ... as Undefined Reference to ...
The relevant parts of my Code look like this
#!/usr/bin/env python
from scapy.all import *
...
...
syn = IP(src=src_ip, dst=dst_ip) / TCP(sport=src_port, dport=dst_port, seq=src_seq, flags="S")
...
I tried many things I found using google, like adding my src folder as source root, I refreshed all caches I could find and restarted PyCharm dozens of times, but nothing worked...
Since the code works it's a minor problem, but still I'd like to have my IDE working as intended
I am working under MacOS and I use a Virtual Environment
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…