Ok the problem was in the imports. I marked src
as the source directory in pycharm and imported as such:
from src.x.y.z import ...
Which lead to the error. Removing the src.
from the import fixed the issue.
Pay attention to the imports while marking src
as a source directory using Pycharm!