facebookresearch / facebookresearch/large_concept_model
ValueError: mutable default <class 'stopes.core.stopes_module.Requirements'> for field requirements is not allowed: use
- Dominant language
- Python
- Stars
- 2.4k
- Forks
- 213
- PR merge metrics
- No merged PRs in 30d
Description
Hello together,
merry christmas. I get the following error when execute: hat is wrong here
what is wrong here ?
```
/large_concept_model/scripts$ python3.11 prepare_wikipedia.py ./wiki_data
Traceback (most recent call last):
File "/root/large_concept_model/scripts/prepare_wikipedia.py", line 13, in
from stopes.modules.preprocess.sonar_text_embedding import (
File "/opt/conda/lib/python3.11/site-packages/stopes/modules/preprocess/__init__.py", line 7, in
from .line_processor import LineProcessorCallback as LineProcessorCallback
File "/opt/conda/lib/python3.11/site-packages/stopes/modules/preprocess/line_processor.py", line 62, in
@dataclass
^^^^^^^^^
File "/opt/conda/lib/python3.11/dataclasses.py", line 1232, in dataclass
return wrap(cls)
^^^^^^^^^
File "/opt/conda/lib/python3.11/dataclasses.py", line 1222, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default for field requirements is not allowed: use default_factory
```
Best regards
Damian
Contributor guide
Assessment
This issue has not been assessed yet.