title: ImportError: No module named when module is there
body: <p>I usually run python2 but I am playing with python3. Right now I am confused as to why I am getting this error.</p>
  
  <p>When I run the command <code>./test_web_events.py</code> in the <code>tests</code> directory, I get:</p>
  
  <pre><code>Traceback (most recent call last):
    File "./test_web_events.py", line 21, in &lt;module&gt;
      import qe.util.scratchstore as scratchstore
  ImportError: No module named 'qe'
  </code></pre>
  
  <p>However my project structure has <code>qe</code> directory in it:</p>
  
  <pre><code>/python_lib
     Makefile
     /qe
        __init__.py
        /tests
           __init__.py
           test_web_events.py
        /util
           __init__.py
           scratchstore.py
        /trinity
           __init__.py
  </code></pre>
  
  <p>I tried moving my <code>/tests</code> directory into <code>/python_lib</code> but I am still getting the same error:</p>
  
  <pre><code>MTVL1289dd026:python_lib bli1$ ls
  Makefile    qe      rundata     setup.sh    tests
  MTVL1289dd026:python_lib bli1$ python3 tests/test_web_events.py 
  Traceback (most recent call last):
    File "tests/test_web_events.py", line 21, in &lt;module&gt;
      import qe.util.scratchstore as scratchstore
  ImportError: No module named 'qe'
  </code></pre>
  
  <p>Here is my <code>sys.path</code> for python2</p>
  
  <pre><code>&gt;&gt;&gt; import sys
  &gt;&gt;&gt; print sys.path
  ['', '/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/Library/Python/2.7/site-packages']
  </code></pre>
  
  <p><code>sys.path</code> for python3</p>
  
  <pre><code>&gt;&gt;&gt; print(sys.path)
  ['', '/Library/Frameworks/Python.framework/Versions/3.4/lib/python34.zip', '/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4', '/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/plat-darwin', '/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/lib-dynload', '/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages']
  </code></pre>