setDaemon Deprecated
In the python 3.10 version there is an error and it does not work correctly. setDaemon
has been deprecated in favor of setting daemon attribute directly. To solve it, it is necessary to change the code.
Solution found in: Link
From
1 .setDaemon(True)
To
1 .daemon = True