Closed theccalderon closed 5 years ago
I ran into this some when developing -- it happens when you have the 3rd-party typing library installed, usually as a dependency of some other package. The fix should be to pip uninstall typing
-- if you're running Python 3.7+, you don't need it anyway, since it's in the standard library. Please let me know if that doesn't fix it for you.
Relevant issues: https://github.com/ray-project/ray/issues/5025 and https://github.com/python/typing/issues/573 for more details.
Hi @jasonnance thanks for getting back to me. I had already tried that and here is the stack trace after uninstalling typing:
2019-09-24 14:04:33,840 WARNING resource_spec.py:163 -- Warning: Capping object memory store to 20.0GB. To increase this further, specify
object_store_memory
when calling ray.init() or ray start. 2019-09-24 14:04:33,841 INFO resource_spec.py:205 -- Starting Ray with 60.3 GiB memory available for workers and up to 18.63 GiB for objects. You can adjust these settings with ray.remote(memory=, object_store_memory= ). 2019-09-24 14:04:40,311 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,313 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,314 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,315 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,315 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,316 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,316 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,317 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,318 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,318 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,319 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,320 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,320 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,321 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,321 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,322 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,322 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,323 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,324 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,324 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,325 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,325 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,326 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar' 2019-09-24 14:04:40,326 ERROR worker.py:1791 -- Failed to unpickle the remote function 'gobbli.experiment.classification.train' with function ID b4b3e55ece2bc00875449aa91491c38f3316065e. Traceback: Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/ray/function_manager.py", line 408, in fetch_and_register_remote_function function = pickle.loads(serialized_function) File "/opt/anaconda3/lib/python3.7/site-packages/ray/cloudpickle/cloudpickle.py", line 965, in subimport import(name) File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/init.py", line 1, in
import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/init.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/init.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/init.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/init.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar'
RayTaskError Traceback (most recent call last)
in 10 ) 11 ---> 12 results = exp.run() /opt/anaconda3/lib/python3.7/site-packages/gobbli/experiment/classification.py in run(self, dataset_split, seed, train_batch_size, valid_batch_size, test_batch_size, num_train_epochs) 648 self.distributed, 649 ) --> 650 for params in grid 651 ] 652 ) /opt/anaconda3/lib/python3.7/site-packages/ray/worker.py in get(object_ids) 2330 if isinstance(value, RayError): 2331 last_task_error_raise_time = time.time() -> 2332 raise value 2333 2334 # Run post processors. RayTaskError: ray_worker:gobbli.experiment.classification.train() (pid=1606, host=my-fastai-instance) File "pyarrow/serialization.pxi", line 461, in pyarrow.lib.deserialize File "pyarrow/serialization.pxi", line 424, in pyarrow.lib.deserialize_from File "pyarrow/serialization.pxi", line 275, in pyarrow.lib.SerializedPyObject.deserialize File "pyarrow/serialization.pxi", line 174, in pyarrow.lib.SerializationContext._deserialize_callback File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/__init__.py", line 1, in import gobbli.augment as augment File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/__init__.py", line 1, in from gobbli.augment.bert import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/__init__.py", line 1, in from .model import BERTMaskedLM File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/augment/bert/model.py", line 6, in from gobbli.model.base import BaseModel File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/__init__.py", line 1, in from gobbli.model.bert import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/__init__.py", line 1, in from .model import BERT File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/model/bert/model.py", line 10, in import gobbli.io File "/opt/anaconda3/lib/python3.7/site-packages/gobbli/io.py", line 78, in class TrainInput(TaskIO): File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 958, in dataclass return wrap(_cls) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 950, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, frozen) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in _process_class for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 801, in for name, type in cls_annotations.items()] File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 659, in _get_field if (_is_classvar(a_type, typing) File "/opt/anaconda3/lib/python3.7/site-packages/dataclasses.py", line 550, in _is_classvar return type(a_type) is typing._ClassVar AttributeError: module 'typing' has no attribute '_ClassVar'
Ah, this looks like an analogous issue with the third-party dataclasses package. Looks like it was expecting the third-party typing module rather than the first-party one. Try pip uninstall dataclasses
.
EDIT: If you somehow have the code from the third-party dataclasses package without having installed it via pip, I'd guess you might have some kind of pre-release of Python 3.7? Are you able to upgrade to a more recent version?
pip uninstall dataclasses
fixed the problem! Thank you!
Great, thanks for the report! I've added a check to identify the conflict with these dependencies on import and warn the user. Will be added in a new release (0.0.6).
Once I installed typing in replit. i Can't run the program and i can't use any commands like install, uninstall with pip in console. This is my pyproject.toml file is [tool.poetry] name = "repl_python3_kingdom-fight-check" version = "0.1.0" description = "" authors = ["Your Name you@example.com"]
[tool.poetry.dependencies] python = "^3.8" replit = "^3.1.0" Flask = "^2.0.1" srv = "^1.1.0" youtube_dl = "^2021.6.6" DiscordUtils = "^1.3.4" "akinator.py" = "^5.0.0" pytz = "^2021.3" discord = "^1.7.3" pymongo = "^3.12.1" discord-components = "^2.1.2" pyNacl="^1.4.0" asyncpg = "^0.25.0" dnspython="^2.1.0" qrcode = "^7.3.1" bs4 = "^0.0.1" wikipedia = "^1.4.0" googletrans = "^3.1.0a0"
[tool.poetry.dev-dependencies]
[build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"
This is the error pop up while running the program
Traceback (most recent call last):
File "main.py", line 1, in
Can someone help me how to fix this problem?
@Dani-Hacker I don't see the traceback indicating any issue with gobbli
. In general, I would not expect this to work with something like replit
, since it requires you to have docker installed and that's not the case with an environment like replit
.
System Information
Description
Trying to execute the example on https://medium.com/rti-cds/introducing-gobbli-b625c0a0adfe we face the following error:
Code for Minimal Reproducible Example
Output