Package Details: argos-translate 1.10.0-5

Git Clone URL: https://aur.archlinux.org/argos-translate.git (read-only, click to copy)
Package Base: argos-translate
Description: Open-source offline translation library written in Python
Upstream URL: https://www.argosopentech.com
Licenses: MIT
Submitter: yochananmarqos
Maintainer: None
Last Packager: yochananmarqos
Votes: 2
Popularity: 0.017637
First Submitted: 2023-12-10 15:34 (UTC)
Last Updated: 2026-01-06 22:12 (UTC)

Latest Comments

flylightning commented on 2025-11-06 04:37 (UTC) (edited on 2025-11-06 04:54 (UTC) by flylightning)

Running argospm update outputs error:

Traceback (most recent call last):
  File "/usr/bin/argospm", line 5, in <module>
    from argostranslate.argospm import main
  File "/usr/lib/python3.13/site-packages/argostranslate/argospm.py", line 5, in <module>
    from argostranslate import package, settings
  File "/usr/lib/python3.13/site-packages/argostranslate/package.py", line 13, in <module>
    from argostranslate import networking, settings
  File "/usr/lib/python3.13/site-packages/argostranslate/networking.py", line 8, in <module>
    from spacy import load as spacy_load
ModuleNotFoundError: No module named 'spacy'

However, simply install python-spacy pkg e.g., python-spacy-bin, won't work, because some of the dependency pkgs will have build errors. Part of python-wasabi's build error is:

E subprocess.CalledProcessError: Command '['/usr/bin/python', '-m', 'nbconvert', '/home/xyz/.cache/paru/clone/python-wasabi/src/wasabi-1.1.3/wasabi/tests/test-data/wasabi-test-notebook.ipynb', '--execute', '--stdout', '--to', 'notebook']' returned non-zero exit status 1.

To workaround it, python-wasabi-git can be use which does not have this build error.

python-thinc and python-thinc-git also has another build error, part of the build error is:

Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
    main()
    ~~~~^^
  File "/usr/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
                             ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
    return hook(config_settings)
  File "/usr/lib/python3.13/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
    return self._get_build_requires(config_settings, requirements=[])
           ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
    self.run_setup()
    ~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/setuptools/build_meta.py", line 317, in run_setup
    exec(code, locals())
    ~~~~^^^^^^^^^^^^^^^^
  File "<string>", line 111, in <module>
  File "<string>", line 96, in setup_package
  File "/usr/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1150, in cythonize
    cythonize_one(*args)
    ~~~~~~~~~~~~~^^^^^^^
  File "/usr/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1294, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: thinc/backends/numpy_ops.pyx

ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel

Tow workaround it, python-thinc-bin-8.3.2 can be installed which does not have this build error.

I don't understand those build errors, I find out how to workaround through trial and error.

yochananmarqos commented on 2025-03-14 15:57 (UTC)

@catzer: python-sentencepiece needs to be rebuilt on protobuf 29.

catzer commented on 2025-03-14 15:44 (UTC) (edited on 2025-03-14 15:50 (UTC) by catzer)

Traceback (most recent call last): File "/usr/bin/argos-translate", line 3, in <module> from argostranslate import cli File "/usr/lib/python3.13/site-packages/argostranslate/cli.py", line 6, in <module> from argostranslate import translate File "/usr/lib/python3.13/site-packages/argostranslate/translate.py", line 6, in <module> import sentencepiece as spm File "/usr/lib/python3.13/site-packages/sentencepiece/__init__.py", line 10, in <module> from . import _sentencepiece ImportError: libprotobuf-lite.so.28.3.0: cannot open shared object file: No such file or directory

how can I adjust it for protobuf 29.3-1?

anthonykaram commented on 2023-12-30 05:28 (UTC)

Thanks for starting this, yochananmarqos. I've been wanting to try out Argos Translate for some time but was deterred by the comments on the older AUR listing for it. With your package, I was able to set it up on my machine, download a language pack, and get translations in the command line! However, if I disconnect my machine from the internet, it stops working. Argos Translate is advertised as an offline translator - now I'm wondering if it really is, or if I missed some step to make it offline-capable...