Looking for help with using directories as python packages in the Social Inheritance Project in the Data Science Course

I’m having trouble with the social network inheritance project located here: INE.

My tests pass, but when I try to run social-network/main.py, I get the following error:
Traceback (most recent call last):
File “main.py”, line 1, in
from social_network.accounts import User
ModuleNotFoundError: No module named ‘social_network’

My project can be found here: https://github.com/nkennedy1027/data-science/tree/master/social-network-inheritance

Any suggestions you have would be very helpful!

You’re gonna wanna modify your imports on lines 1-2 to the following:

from accounts import User
from posts import TextPost, PicturePost, CheckInPost

Since you’re already inside the social_network dir/module, you import accounts relatively, as opposed to absolutely. If your main.py file was one level up, it would then make sense to import in a hierarchical fashion.