title: Debugging python in Aptana 3
body: <p>I have a pydev project going in aptana studio 3.  </p>
  
  <p>In the image below, you can see my project structure and the fact that my nosetests are all passing.</p>
  
  <p><img src="https://i.stack.imgur.com/8Ot7h.png" alt="project structure"></p>
  
  <p>If I click on a file <code>scheduled.py</code> that has a breakpoint in it, and hit <code>debug as</code> > <code>python run</code> it fails to be able to import my modules.</p>
  
  <pre><code>pydev debugger: starting
  Traceback (most recent call last):
    File "C:\Users\mapserv\AppData\Local\Aptana Studio 3\plugins\org.python.pydev_2.7.0.2012110722\pysrc\pydevd.py", line 1397, in &lt;module&gt;
      debugger.run(setup['file'], None, None)
    File "C:\Users\mapserv\AppData\Local\Aptana Studio 3\plugins\org.python.pydev_2.7.0.2012110722\pysrc\pydevd.py", line 1090, in run
      pydev_imports.execfile(file, globals, locals) #execute the script
    File "C:\Users\mapserv\Desktop\Projects\Aptana\AutomatedCaching\agrc\caching\scheduled.py", line 1, in &lt;module&gt;
      from agrc.caching.commands import cache
  ImportError: No module named agrc.caching.commands
  </code></pre>
  
  <p>I've noticed that aptana has the notion of packages/modules. Is there something wrong with my project structure that is causing this? Should my folders be packages? Do I need to setup more things with my interpreter which looks like?</p>
  
  <p><img src="https://i.imgur.com/jbLubHM.png" alt="interpreter settings"></p>
  
  <p><strong>Edited</strong></p>
  
  <p>If I try to run scheduled.py from the command line it has the same problem. How is nose running my tests and making everything happy yet it doesn't work outside of that?</p>