google / openhtf

The open-source hardware testing framework.
Apache License 2.0
530 stars 217 forks source link

Python3.10 compatibility #1093

Open BananaLoaf opened 1 year ago

BananaLoaf commented 1 year ago

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.


This change is Reviewable

Teslafly commented 2 months ago

Would this go well with this sockjs removal PR? https://github.com/google/openhtf/pull/1164/files

I would also like to use a newer version of python. If only to get switch-case in python 3.10.