'VS Code Pylance - Problem with Module Imports

My IDE was working fine last night. I created a launch.json file for a completely different app in a different directory but have since deleted it.

My code still processes correctly.

My virtual env is the same - all of my installed packages (pandas, numpy, etc) are being recognized by Pylance. The modules I am importing is the problem.

The modules I am trying to import are all .py files, are all in the same directory as the app.py file that I am running, and are functioning correctly, just as they have been.

Several of the modules being imported also import each other, and the problem is taking place in each module as well.

I have tried both uninstalling and reinstalling the Python and Pylance extensions, and restarting my machine and the same problem occurs.

imports

What am I missing?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source