error: espcomm_open failed

In my case trying again works many times.

Some other times closing the IDE and then opening it again helps.
But I also don't know why this happens.