I had to install websockets to a python3 virtual environment when first running bitbake. On the next day I forgot to activate this venv.
websockets
bitbake
Activating the virtual environment fixed the hanging issue for me.