I was creating a python module out of pep8 and autopep8 in this example with a pep8 folder inside of an autopep8 folder, which in turn was inside of the root folder. I created __init__.py
files in both pep8 and autopep8.
The contents were:
autopep8/__init__.py :
from autopep8 import *
pep8/__init__.py :
from pep8 import *
pep8/__init__.py
had to be corrected to
from pep8 import *
from pep8 import _checks