Is there a limit to the number of . that are allowed in python relative imports? I have a project in which all the imports are relative and it behaves well, except for a module where there is the command
from ....Infrastructure.Enums import FieldRolls
I got the following error:
attempted relative import with no known parent package
when I changed the command to import with 3 dots it worked.
I also checked the __name__ and __package__ variables and they looks OK.