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