-
Notifications
You must be signed in to change notification settings - Fork 119
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
Python 3.11 compatibility #744
Comments
Summary: Follow up to pytorch/botorch#1924 to avoid CI failures. NOTE: We cannot support 3.11 currently due to a failure in torchx tests. See pytorch/torchx#744 Pull Request resolved: #1744 Reviewed By: esantorella Differential Revision: D47780385 Pulled By: saitcakmak fbshipit-source-id: af69631befbdb3035f1a969c03d73defb070e19e
related pytorch/pytorch#91795 |
Any update on this? |
#768 oughta fix it. |
@saitcakmak , @bryantbiggs could you guys try out torchx-nightly==2023.09.19 see if that fixes your issue? |
Hi @kiukchung. I am still getting an error with Py3.11.
|
Actually, it works if I install from GitHub directly using
|
@saitcakmak ah, I might have merged |
@saitcakmak I validated that |
Thanks @kiukchung! I'll move Ax CI to Python 3.11 after the next torchx release. |
Python 3.11 does not support mutable defaults in dataclasses.
Role
uses a mutable default forresource
, which leads to aValueError
when importing torchx in Python 3.11. This prevents downstream packages from supporting Python 3.11. Example failure: https://github.com/facebook/Ax/actions/runs/5662890368/job/15343645668?pr=1744Possible fixes:
Resource
a frozen dataclass, which would make it immutable, likely fixing the issue.MISSING
and set the current default in a__post_init__
method.The text was updated successfully, but these errors were encountered: