Skip to content
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

MacOS installation error #96

Open
rowild opened this issue Jan 4, 2024 · 2 comments
Open

MacOS installation error #96

rowild opened this issue Jan 4, 2024 · 2 comments

Comments

@rowild
Copy link

rowild commented Jan 4, 2024

The Readme says to use the flag --enampemps, so after running pip install -r requirements I did just that and ran python webui.py --enablemps and got these errors:

bark-gui git:(main) python webui.py --enablemps
/Users/robertwildling/miniconda3/lib/python3.11/site-packages/transformers/utils/generic.py:441: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
  _torch_pytree._register_pytree_node(
Traceback (most recent call last):
  File "/Users/robertwildling/Desktop/_AI/bark-gui/webui.py", line 21, in <module>
    from cloning.clonevoice import clone_voice
  File "/Users/robertwildling/Desktop/_AI/bark-gui/cloning/clonevoice.py", line 4, in <module>
    from bark.hubert.pre_kmeans_hubert import CustomHubert
  File "/Users/robertwildling/Desktop/_AI/bark-gui/bark/hubert/pre_kmeans_hubert.py", line 16, in <module>
    import fairseq
  File "/Users/robertwildling/miniconda3/lib/python3.11/site-packages/fairseq/__init__.py", line 20, in <module>
    from fairseq.distributed import utils as distributed_utils
  File "/Users/robertwildling/miniconda3/lib/python3.11/site-packages/fairseq/distributed/__init__.py", line 7, in <module>
    from .fully_sharded_data_parallel import (
  File "/Users/robertwildling/miniconda3/lib/python3.11/site-packages/fairseq/distributed/fully_sharded_data_parallel.py", line 10, in <module>
    from fairseq.dataclass.configs import DistributedTrainingConfig
  File "/Users/robertwildling/miniconda3/lib/python3.11/site-packages/fairseq/dataclass/__init__.py", line 6, in <module>
    from .configs import FairseqDataclass
  File "/Users/robertwildling/miniconda3/lib/python3.11/site-packages/fairseq/dataclass/configs.py", line 1104, in <module>
    @dataclass
     ^^^^^^^^^
  File "/Users/robertwildling/miniconda3/lib/python3.11/dataclasses.py", line 1230, in dataclass
    return wrap(cls)
           ^^^^^^^^^
  File "/Users/robertwildling/miniconda3/lib/python3.11/dataclasses.py", line 1220, in wrap
    return _process_class(cls, init, repr, eq, order, unsafe_hash,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/robertwildling/miniconda3/lib/python3.11/dataclasses.py", line 958, in _process_class
    cls_fields.append(_get_field(cls, name, type, kw_only))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/robertwildling/miniconda3/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

Either I misunderstand the usage of --enablemps or there is an error somewhere else. Does anybody have a clue what is happening here?

@LFClaro
Copy link

LFClaro commented Mar 27, 2024

Same issue here. Any news on this?

@LFClaro
Copy link

LFClaro commented Mar 28, 2024

I was able to run it by using Python 3.10 instead of 3.11. I found this solution on issue #40 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants