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

Attempted use of cli returns error #93

Open
jaded0 opened this issue Mar 19, 2022 · 0 comments
Open

Attempted use of cli returns error #93

jaded0 opened this issue Mar 19, 2022 · 0 comments

Comments

@jaded0
Copy link

jaded0 commented Mar 19, 2022

Traceback (most recent call last):
  File "/home/jaden/.local/lib/python3.8/site-packages/translate/translate.py", line 45, in <genexpr>
    return ' '.join(self.provider.get_translation(text_wraped) for text_wraped in text_list)
  File "/home/jaden/.local/lib/python3.8/site-packages/translate/providers/mymemory_translated.py", line 49, in get_translation
    next_best_match = next(match for match in matches)
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/jaden/.local/bin/translate-cli", line 5, in <module>
    from translate.__main__ import cli
  File "/home/jaden/.local/lib/python3.8/site-packages/translate/__main__.py", line 6, in <module>
    main()
  File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/jaden/.local/lib/python3.8/site-packages/translate/main.py", line 168, in main
    translation = translator.translate(text)
  File "/home/jaden/.local/lib/python3.8/site-packages/translate/translate.py", line 45, in translate
    return ' '.join(self.provider.get_translation(text_wraped) for text_wraped in text_list)
RuntimeError: generator raised StopIteration

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