qq456cvb / Point-Transformers

Point Transformers
MIT License
609 stars 102 forks source link

There was an issue importing the hydra package #44

Closed Abel-love-Dirichlet closed 2 months ago

Abel-love-Dirichlet commented 3 months ago

Hi, I made the following error while import hydra:

Traceback (most recent call last): File "D:\code_zip\Point-Transformers-master\Point-Transformers-master\train_cls.py", line 18, in import hydra File "D:\code_zip\Point-Transformers-master\Point-Transformers-master\venv\Lib\site-packages\hydra__init.py", line 5, in from hydra import utils File "D:\code_zip\Point-Transformers-master\Point-Transformers-master\venv\Lib\site-packages\hydra\utils.py", line 8, in import hydra._internal.instantiate._instantiate2 File "D:\code_zip\Point-Transformers-master\Point-Transformers-master\venv\Lib\site-packages\hydra_internal\instantiate_instantiate2.py", line 12, in from hydra._internal.utils import _locate File "D:\code_zip\Point-Transformers-master\Point-Transformers-master\venv\Lib\site-packages\hydra_internal\utils.py", line 18, in from hydra.core.utils import get_valid_filename, validate_config_path File "D:\code_zip\Point-Transformers-master\Point-Transformers-master\venv\Lib\site-packages\hydra\core\utils.py", line 20, in from hydra.core.hydra_config import HydraConfig File "D:\code_zip\Point-Transformers-master\Point-Transformers-master\venv\Lib\site-packages\hydra\core\hydra_config.py", line 6, in from hydra.conf import HydraConf File "D:\code_zip\Point-Transformers-master\Point-Transformers-master\venv\Lib\site-packages\hydra\conf__init__.py", line 46, in class JobConf: File "D:\code_zip\Point-Transformers-master\Point-Transformers-master\venv\Lib\site-packages\hydra\conf\init__.py", line 75, in JobConf @dataclass ^^^^^^^^^ File "D:\Python\Python311\Lib\dataclasses.py", line 1223, in dataclass return wrap(cls) ^^^^^^^^^ File "D:\Python\Python311\Lib\dataclasses.py", line 1213, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Python\Python311\Lib\dataclasses.py", line 958, in _process_class cls_fields.append(_get_field(cls, name, type, kw_only)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Python\Python311\Lib\dataclasses.py", line 815, in _get_field raise ValueError(f'mutable default {type(f.default)} for field ' ValueError: mutable default <class 'hydra.conf.JobConf.JobConfig.OverrideDirname'> for field override_dirname is not allowed: use default_factory