Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings about thread.setDaemon() in python 3.10+ #214

Merged

Conversation

linrock
Copy link
Contributor

@linrock linrock commented Nov 25, 2022

camelCase methods in threading were deprecated in: python/cpython#25174

easy_train.py:316: DeprecationWarning: setDaemon() is deprecated,
set the daemon attribute instead thread.setDaemon(True)

easy_train.py:316: DeprecationWarning: setDaemon() is deprecated,
set the daemon attribute instead thread.setDaemon(True)

camelCase methods in threading were deprecated in:
python/cpython#25174
@Sopel97
Copy link
Member

Sopel97 commented Dec 1, 2022

Requires checking on older versions of python before merging. We currently require at least python 3.7 https://github.com/glinscott/nnue-pytorch/blob/5b2de095335bc0fe31921078fc6d51b5e0a42295/scripts/easy_train.py#L28

@linrock
Copy link
Contributor Author

linrock commented Dec 1, 2022

Confirrmed working on python 3.7:

image

Setting this attribute has been available since at least 2.x

image

@Sopel97 Sopel97 merged commit 5225117 into official-stockfish:master Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants