Skip to content

Opus-mt not working with python 3.10  #96

@letmerecall

Description

@letmerecall

Describe the issue

When trying to use opus-mt with python package, it throw a FileNotFoundError

(py3.10) girishsharma@me:~/documents/code$ python
Python 3.10.12 (main, Jul  5 2023, 18:54:27) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from easynmt import EasyNMT
>>> model = EasyNMT('opus-mt')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/girishsharma/miniconda3/envs/py3.10/lib/python3.10/site-packages/easynmt/EasyNMT.py", line 84, in __init__
    with open(os.path.join(model_path, 'easynmt.json')) as fIn:
FileNotFoundError: [Errno 2] No such file or directory: 'opus-mt/easynmt.json'

Environment

OS: Ubuntu
Python version: 3.10.12
EasyNMT vesion: EasyNMT==2.0.2

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