Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opus-mt not working with python 3.10 #96

Open
letmerecall opened this issue Nov 21, 2023 · 0 comments
Open

Opus-mt not working with python 3.10 #96

letmerecall opened this issue Nov 21, 2023 · 0 comments

Comments

@letmerecall
Copy link

letmerecall commented Nov 21, 2023

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

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

No branches or pull requests

1 participant