-
Notifications
You must be signed in to change notification settings - Fork 130
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
fields() from DataClasses not working properly #1612
Comments
Hi, thanks for reporting.
Your bug sounds related to #30. Make sure you are using at least submitit 1.1.3 |
I'm using the submitit 1.2.1 and cloudpickle 1.6.0. It doesn't matter which version of submitit or python I use, it always ends the same way. |
But it seems the problem comes from cloudpickle cloudpipe/cloudpickle#386. |
I think it should work if you move the dataclass to another file and that you import it. |
Looks like we are all hitting this issue at the same time: facebookresearch/hydra#1621 |
closing since this is a cloudpickle / cpython |
I'm a bit confused, this is happening for me still. Im using python 3.9.7 that comes with Maya 2023, and it also reproduces in my vanilla 3.12.2 python install. Do we need to go knock on cloudpickles door so that they fix this? |
Hey I just wanted to ask about strange error I have.
fileds() from dataclasses not working properly if dataclass is declared outside running function.
Minimalistic example:
DataClass in function
Print:
DataClass outside function
Print:
The exact same thing happens on slurm cluster with python 3.7.4 and on my local computer without slurm with python 3.9.
Is this submitit or threading issue?
The text was updated successfully, but these errors were encountered: