Skip to content

ModuleNotFoundError: No module named 'onmt' #11

@stalevna

Description

@stalevna

Hi,
I run into an error about onmt


ModuleNotFoundError Traceback (most recent call last)
in
5 import torch.nn.functional as F
6 from collections import OrderedDict
----> 7 from onmt.utils.misc import sequence_mask
8 from model_autopst import Generator_2 as Predictor
9 from hparams_autopst import hparams

ModuleNotFoundError: No module named 'onmt'

but I see folder onmt_modules exists
image

then I install onmt(pip install onmt) and notice it's installing torch 1.3.0 although the requirements say that PyTorch == v1.6.0

image

Could you help me with this issue? What is the best approach to solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions