I'm trying to import the scapy module into blender:
from bge import logic
import socket
from scapy.all import *
But I face this exception:
I copied the scapy module folder into:
C:\Program Files\Blender Foundation\Blender\2.75\scripts\modules
And this is what it contains:
Notice all and base_classes is in it.
In addition i tried to add the PYTHONPATH in the environment variables (I'm not sure this is what I had to do.. I also tried to add
C:\Program Files\Blender Foundation\Blender\2.75\scripts\modules\scapy
in the PATH and in PYTHONPATH, they both didn't solve the problem):
EDIT:
The problem as sambler said is that I used scapy that doesn't support python 3.x as blender uses. So I download newer scapy version which supports python 3.x from here: https://github.com/phaethon/scapy and replaced it with the older scapy, now it works but I can't sniff, send or receive packets: