Dentosal / python-sc2

A StarCraft II bot api client library for Python 3
MIT License
585 stars 182 forks source link

ModuleNotFoundError: No module named 'websockets' #301

Closed tm012 closed 4 years ago

tm012 commented 4 years ago

My python version in 3.6

I was following this tutorial https://pythonprogramming.net/building-neural-network-starcraft-ii-ai-python-sc2-tutorial/

and using sc2 from here https://github.com/daniel-kukiela/python-sc2

but I am running into an error

import websockets ModuleNotFoundError: No module named 'websockets'

tm012 commented 4 years ago

Needed to install websockets https://websockets.readthedocs.io/en/stable/intro.html#installation

Though it's giving a new error

RuntimeWarning: coroutine 'WebSocketCommonProtocol.close' was never awaited self._ws.close() sc2 python