Error when using a package

I’m trying to use the functions of a package and I’m getting this error when I just F5(if I restart the app via command prompt, everything works), does anyone know what it is about?

To reproduce the error, just create a package and try to use one of its functions. Here, I’m doing:
from src.models.model import load_model, train_model