Skip to content
This repository was archived by the owner on Dec 8, 2023. It is now read-only.
This repository was archived by the owner on Dec 8, 2023. It is now read-only.

Muskits uses deprecated typeguard function #140

@G-Thor

Description

@G-Thor

Upon attempting to run the Colab demo I came across an error caused by the typeguard dependency.

"typeguard>=2.7.0",

ImportError Traceback (most recent call last)
in <cell line: 2>()
1 # Initialize singing generator
----> 2 from muskit.bin.svs_inference import SingingGenerate
3
4 sing_generation = SingingGenerate(
5 train_config=config_path,

/content/Muskits/muskit/bin/svs_inference.py in
20 import soundfile as sf
21 import torch
---> 22 from typeguard import check_argument_types
23
24 from muskit.utils.cli_utils import get_commandline_args

ImportError: cannot import name 'check_argument_types' from 'typeguard' (/usr/local/lib/python3.9/dist-packages/typeguard-4.0.0rc1-py3.9.egg/typeguard/init.py)

Notice that the version installed by default is 4.0.0, 2 major versions up from 2.7.0.

The check_argument_types function is deprecated in typeguard since v3.0.0

from typeguard import check_argument_types

See https://typeguard.readthedocs.io/en/stable/versionhistory.html

The use of check_argument_types() should either be replaced with the decorator @typechecked wherever it's used or the version of typeguard should be limited to <3.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions