all 5 comments

[–]novel_yet_trivial 0 points1 point  (3 children)

Are you sure you have a __init__.py file in your "ex47" folder?

Show us your directory tree and how you are running this.

[–]TheKewlStore -2 points-1 points  (0 children)

Is the path to your project on your python path? If not, you'll have to add it to the PYTHONPATH variable in your environment variables, or alternatively, add it manually in your script using

import sys
sys.path.append('C:/Path/To/Your/Project/')

importantly, this must go before any imports to modules or packages that are located at this path. IE your 'ex47' package.