-
Notifications
You must be signed in to change notification settings - Fork 3.4k
import nemo.collections.asr as nemo_asr generates an error? #2473
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I tried to execute the tutorial:
Unfortunately, the line import nemo.collections.asr as nemo_asr is not working and generates an error like:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-18-7cc0b6be15f9> in <module>()
3 # NeMo's ASR collection - this collections contains complete ASR models and
4 # building blocks (modules) for ASR
----> 5 import nemo.collections.asr as nemo_asr
6 from omegaconf import OmegaConf
8 frames
/usr/local/lib/python3.7/dist-packages/nemo/collections/asr/__init__.py in <module>()
13 # limitations under the License.
14
---> 15 from nemo.collections.asr import data, losses, models, modules
16 from nemo.package_info import __version__
17
/usr/local/lib/python3.7/dist-packages/nemo/collections/asr/losses/__init__.py in <module>()
13 # limitations under the License.
14
---> 15 from nemo.collections.asr.losses.angularloss import AngularSoftmaxLoss
16 from nemo.collections.asr.losses.ctc import CTCLoss
/usr/local/lib/python3.7/dist-packages/nemo/collections/asr/losses/angularloss.py in <module>()
16 import torch
17
---> 18 from nemo.core.classes import Loss, Typing, typecheck
19 from nemo.core.neural_types import LabelsType, LogitsType, LossType, NeuralType
20
/usr/local/lib/python3.7/dist-packages/nemo/core/__init__.py in <module>()
14
15 import nemo.core.neural_types
---> 16 from nemo.core.classes import *
/usr/local/lib/python3.7/dist-packages/nemo/core/classes/__init__.py in <module>()
14
15
---> 16 from nemo.core.classes.common import (
17 FileIO,
18 Model,
/usr/local/lib/python3.7/dist-packages/nemo/core/classes/common.py in <module>()
25 from typing import Dict, List, Optional, Union
26
---> 27 import hydra
28 import wrapt
29 from omegaconf import DictConfig, OmegaConf
/usr/local/lib/python3.7/dist-packages/hydra/__init__.py in <module>()
3 # Source of truth for Hydra's version
4 __version__ = "1.1.0"
----> 5 from hydra import utils
6 from hydra.errors import MissingConfigException
7 from hydra.main import main
/usr/local/lib/python3.7/dist-packages/hydra/utils.py in <module>()
6 from typing import Any, Callable
7
----> 8 import hydra._internal.instantiate._instantiate2
9 import hydra.types
10 from hydra._internal.utils import _locate
/usr/local/lib/python3.7/dist-packages/hydra/_internal/instantiate/_instantiate2.py in <module>()
6 from typing import Any, Callable, Sequence, Tuple, Union
7
----> 8 from omegaconf import OmegaConf, SCMode
9 from omegaconf._utils import is_structured_config
10
ImportError: cannot import name 'SCMode' from 'omegaconf' (/usr/local/lib/python3.7/dist-packages/omegaconf/__init__.py)
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
and in the code there is a red line below import nemo.collections.asr as nemo_asr.
I am executing the tutorial on colab.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working