title: Python Package Import Error--Python Doesn't Recognize Package
body: <p>Recently, in attempting to import a module I'd written, I have been coming across errors that ostensibly should not happen. Here is the idea, I'm writing in my <code>main.py</code> file, and my hierarchy looks like this:</p>
  
  <pre><code>starsearch/
    main.py
    parser/
      __init__.py
      parse.py
  </code></pre>
  
  <p>the <code>__ init __.py</code> file in parser/ is empty, but when I try, in my program, to:</p>
  
  <pre><code>import parser
  </code></pre>
  
  <p>it returns an <code>AttributeError</code>. This happens when I call the function inside of <code>parse.py</code>, called <code>getstar()</code>.
  or</p>
  
  <pre><code>from parser import parse
  </code></pre>
  
  <p>it returns an <code>ImportError</code>.</p>
  
  <p>So my Python doesn't recognize that <code>parse.py</code> exists? I have done a bit of research, and having an <code>__ init __.py</code> file that's empty should do the trick, but I'm stumped.</p>