user1060517 user1060517 - 7 months ago 74
Python Question

Python - import fails to load a module

I have a python file which was part of a repo (say repo-old). This was imported by (which is also part of repo-old).

Now due to some reason is removed from repo-old, but I need to test code in repo-old, so I manually copied it back.

Now when the import statement in is hit, it fails, saying "not found".

What could I be missing?

P.S - new to python packaging.


Did you make sure that the folder that contains the file you are trying to import has an file?