Unhandled Error in websockets

While working with websockets, I am getting the unhandled error. FIrst I thought it was due to jupyter notebook or conda environment. So I am now running the script in terminal but I am still getting an error.I have attached the screenshot for your reference. Please suggest.

This discussion has been closed.