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.
Had the same issue, try importing this way:
from scapy.layers.inet import IP, UDP, wrpcap, Ether
it worked for me.