ModuleNotFoundError

Sir I am trying to create a package but it is showing ModuleNotFoundError. I have created a pakage named rockstar but it is showing that there is no package named rockstar as shown in the image. Plz help to solve the problem.

Hey @kartik321

I guess the problem is that the main file is contained in your package “rockstar”. It should be placed in the same directory as the module, not in the module.

Change the location of the main.py file.
Your directory structure should look like this:

project
│   main.py
└─  rockstar
│   │   __init__.py
│   │   simple.py