title: Why does this Python import statement throw an error?
body: <p>I have the following imports for mainly external modules:</p>
  
  <pre><code>import urllib
  from urllib.request import urlopen
  from bs4 import BeautifulSoup
  from .FrequencySummarizer import FrequencySummarizer
  </code></pre>
  
  <p>The last line is an attempt to import the <code>FrequencySummarizer</code> class from the <code>FrequencySummarizer.py</code> file in the same folder as the script the imports appear in. When I try and run my script, I get the following error:</p>
  
  <pre><code>ImportError: attempted relative import with no known parent package
  </code></pre>
  
  <p>What is wrong with my <code>import</code> statement?</p>