title: pydev with scapy cant recognize imports
body: <p>So i run into a problem today with scapy not recognizing my imports. This is not a version problem as i tried all possible python versions and both:</p>
  <blockquote>
  <p>from scapy import *</p>
  <p>from scapy.all import *</p>
  </blockquote>
  <p>This problem is really annoying so any help will be much appreciated. At the moment i use python 2.5 with version 2.2 scapy.</p>
  <p>Here is the code:</p>
  <pre><code>import logging
  from scapy.layers.inet6 import IP
  logging.getLogger(&quot;scapy.runtime&quot;).setLevel(logging.ERROR)
  from scapy.all import  *
  
  i = IP()
  </code></pre>
  <p>And here are the error messages:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Users\Martinooos\Desktop\eclipse\plugins\org.python.pydev_2.7.5.2013052819\pysrc\pydev_runfiles.py&quot;, line 432, in __get_module_from_str
      mod = __import__(modname)
    File &quot;C:\Users\Martinooos\workspace\testing\test.py&quot;, line 7, in &lt;module&gt;
      from scapy.layers.inet6 import IP
    File &quot;C:\Users\Martinooos\Desktop\scapy-2.2.0\scapy\layers\inet6.py&quot;, line 35, in &lt;module&gt;
      from scapy.layers.l2 import *
    File &quot;C:\Users\Martinooos\Desktop\scapy-2.2.0\scapy\layers\l2.py&quot;, line 14, in &lt;module&gt;
      from scapy.ansmachine import *
    File &quot;C:\Users\Martinooos\Desktop\scapy-2.2.0\scapy\ansmachine.py&quot;, line 14, in &lt;module&gt;
      from sendrecv import send,sendp,sniff
    File &quot;C:\Users\Martinooos\Desktop\scapy-2.2.0\scapy\sendrecv.py&quot;, line 13, in &lt;module&gt;
      import arch
    File &quot;C:\Users\Martinooos\Desktop\scapy-2.2.0\scapy\arch\__init__.py&quot;, line 79, in &lt;module&gt;
      from windows import *
    File &quot;C:\Users\Martinooos\Desktop\scapy-2.2.0\scapy\arch\windows\__init__.py&quot;, line 17, in &lt;module&gt;
      from scapy.sendrecv import srp1
  ImportError: cannot import name srp1
  </code></pre>
  <p>Note: if i remove srp1 for example from the file another import error pops up so this goes for every single import. Since pydev recognizes the scapy folders i dont know what is going on.</p>
  <p>Can anyone help me?
  Thanks</p>