-
-
Notifications
You must be signed in to change notification settings - Fork 624
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
submitit fails on python3.6 #624
Comments
This is a bug that was fixed in upstream cloud-pickle as far as I know. |
the exact exception happened while pickling (not cloudpickling) https://github.com/facebookincubator/submitit/blob/master/submitit/core/utils.py#L278 def pickle_dump(obj: Any, filename: Union[str, Path]) -> None:
with open(filename, "wb") as ofile:
pickle.dump(obj, ofile, pickle.HIGHEST_PROTOCOL) related pickle PR python/typing#511 |
okay. regardless - I think submitit is dumping with cloudpickle. |
Yes submitit is dumping with cloudpickle. |
Couldn't find any in OmegaConf nor submitit, I think this may be due to ObjectConf though, since it inherits from Dict[str, str] and is used as default initializer |
It does not . This is still likely somewhere in there though. It keeps types around. |
I'm talking about ObjectConf Line 13 in 2e8a381
|
In [1]: from dataclasses import dataclass
In [2]: from typing import *
In [3]: @dataclass
...: class Foo(Dict[str, str]):
...: n : int = 10
In [4]: import cloudpickle
In [5]: dump1 = cloudpickle.dumps(Foo())
In [6]: from omegaconf import OmegaConf
In [7]: dump2 = cloudpickle.dumps(OmegaConf.structured(Foo()))
In [8]: len(dump1)
Out[8]: 2052
In [9]: len(dump2)
Out[9]: 2426 |
This does not seems to be worth the effort. We can revisit if anyone complains. |
It seems like it's related to the fact the hydra project is typed, reason being: 1) same tests worked on https://github.com/fairinternal/hydra-fair-plugins (no typing) 2) error message
The text was updated successfully, but these errors were encountered: