When trying to run WebUI in Python3.10, I get an error AttributeError: module 'collections' has no attribute 'MutableMapping'. It happens because collections.MutableMapping got moved to collections.abc.MutableMapping in Python3.10.
Ideally, I'd have to bump tornado package, but I haven't had any success doing so because of the new async policies, that tornado>=5 started following. I could not make async loop to run correctly and even if I did, I'd not be sure that something else has not broken, hence this PR.
When trying to run WebUI in Python3.10, I get an error
AttributeError: module 'collections' has no attribute 'MutableMapping'
. It happens becausecollections.MutableMapping
got moved tocollections.abc.MutableMapping
in Python3.10.Ideally, I'd have to bump tornado package, but I haven't had any success doing so because of the new async policies, that tornado>=5 started following. I could not make async loop to run correctly and even if I did, I'd not be sure that something else has not broken, hence this PR.
This change is