argosopentech / argos-translate

Open-source offline translation library written in Python

Home Page:https://www.argosopentech.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not support Python 3.12

raffaem opened this issue · comments

Python 3.12 remove support for distutils.

Thus this package does not work with Python 3.12:

Traceback (most recent call last):
  File "/home/USERNAME/.pyenv/versions/argostranslate/bin/argos-translate", line 3, in <module>
    from argostranslate import cli
  File "/home/USERNAME/.pyenv/versions/3.12.1/envs/argostranslate/lib/python3.12/site-packages/argostranslate/cli.py", line 6, in <module>
    from argostranslate import translate
  File "/home/USERNAME/.pyenv/versions/3.12.1/envs/argostranslate/lib/python3.12/site-packages/argostranslate/translate.py", line 7, in <module>
    import stanza
  File "/home/USERNAME/.pyenv/versions/3.12.1/envs/argostranslate/lib/python3.12/site-packages/stanza/__init__.py", line 1, in <module>
    from stanza.pipeline.core import Pipeline
  File "/home/USERNAME/.pyenv/versions/3.12.1/envs/argostranslate/lib/python3.12/site-packages/stanza/pipeline/core.py", line 13, in <module>
    from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils'

This should be specified in the README