Lopetegui was warned the controversial striker he will not be picked for his country until he is back playing regular first team football.
He said: “Costa's summer has been unusual, strange, complicated – not just for him but for his club.
“He is still a Chelsea player. It's a complicated issue.
“Our hope is that he will resolve his situation as soon as possible and that he can compete, train and play, which is what he likes doing the most and what interests the national team.
"It's rather complicated that a guy who doesn't train and doesn't play can be with us, but that's all it is.
"He wasn't ready to play with us against Italy and Liechtenstein, that was the reality and what we had to deal with. That is the reason why he wasn't with us.
"He needs to train and play in order to be considered."