Python – ImportError: No module named

Read Time:26 Second

When I follow the tutorial – App Engine Series #4 – I kept getting the error like below:

ImportError: No module named controllers

It is caused by below code:

import webapp2

# Importing the controllers that will handle
# the generation of the pages:
from controllers import crons,ajax,generate,mainh

To fix the error, it is very simple.

Just create empty ‘’ file in ‘controllers’ folder without content.

You will need to create on ‘config’, ‘models’ folders as well.

Once you create, it won’t happen again. (or only me?)

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.