Module not found in different folder

Hi,

I created a ‘packages’ folder so I could put my modules together. Then in my Python scripts I have added:

import sys
sys.path.insert(1, '/home/gdg23/git/utils/python')
from packages import gdg_utils

‘packages’ lives at ‘/home/gdg23/git/utils/python/packages’

This seems to have been working no problem for a while now. However I want to move another module file into the same folder, but when I do that and add the following line, I get an exception (ModuleNotFoundError):

from packages import aos_ArubaAPI_utils

The permissions on the new file are the same as the existing gdg_utils file.

What am I doing wrong?!

Guy

Without knowing what the files and folder in packages looks like it’s hard to say.

One guess is that you should be adding /home/gdg23/git/utils/python/packages to the path and then importing import aos_ArubaAPI_utils.