user1060517 user1060517 - 1 year ago 131
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.

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download