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

Muskits uses deprecated typeguard function #140

Open
G-Thor opened this issue Apr 4, 2023 · 0 comments
Open

Muskits uses deprecated typeguard function #140

G-Thor opened this issue Apr 4, 2023 · 0 comments

Comments

@G-Thor
Copy link

G-Thor commented Apr 4, 2023

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

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

No branches or pull requests

1 participant