gui_v1.pyが動かない
問題
からダウンロードしたファイルのgui_v1.py
というファイルを実行したら次のようなエラーが出てきました。
Traceback (most recent call last):
File "/Users/*****/Documents/*****/money/RVC1006AMD_Intel1/gui_v1.py", line 89, in <module>
import tools.rvc_for_realtime as rvc_for_realtime
File "/Users/*****/Documents/*****/money/RVC1006AMD_Intel1/tools/rvc_for_realtime.py", line 9, in <module>
import fairseq
File "/Users/*****/anaconda3/lib/python3.11/site-packages/fairseq/__init__.py", line 20, in <module>
from fairseq.distributed import utils as distributed_utils
File "/Users/*****/anaconda3/lib/python3.11/site-packages/fairseq/distributed/__init__.py", line 7, in <module>
from .fully_sharded_data_parallel import (
File "/Users/*****/anaconda3/lib/python3.11/site-packages/fairseq/distributed/fully_sharded_data_parallel.py", line 10, in <module>
from fairseq.dataclass.configs import DistributedTrainingConfig
File "/Users/*****/anaconda3/lib/python3.11/site-packages/fairseq/dataclass/__init__.py", line 6, in <module>
from .configs import FairseqDataclass
File "/Users/*****/anaconda3/lib/python3.11/site-packages/fairseq/dataclass/configs.py", line 1104, in <module>
@dataclass
^^^^^^^^^
File "/Users/*****/anaconda3/lib/python3.11/dataclasses.py", line 1230, in dataclass
return wrap(cls)
^^^^^^^^^
File "/Users/*****/anaconda3/lib/python3.11/dataclasses.py", line 1220, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/*****/anaconda3/lib/python3.11/dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/*****/anaconda3/lib/python3.11/dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'fairseq.dataclass.configs.CommonConfig'> for field common is not allowed: use default_factory
いろいろ調べたんですが、pythonの深い知識がなくてよくわからないので対処法を教えていただければ嬉しいです。
環境
MacBook Air Retina, 13-inch, 2020
Visual Studio Code( Python 3.11.5('base': conda) )
0