Package Details: argos-translate-git r231.8c4e64e-1

Git Clone URL: (read-only, click to copy)
Package Base: argos-translate-git
Description: Offline neural machine translation library and GUI.
Upstream URL:
Licenses: MIT
Provides: argos-translate, argos-translate-cli
Submitter: fossdd
Maintainer: None
Last Packager: fossdd
Votes: 3
Popularity: 0.000025
First Submitted: 2021-03-22 14:18 (UTC)
Last Updated: 2021-06-12 12:38 (UTC)

Latest Comments

yochananmarqos commented on 2023-12-10 15:46 (UTC)

I've created argos-translate and argos-translate-gui packages, please test.

BuddhiLW commented on 2022-01-30 15:14 (UTC)

Build is not running properly

running build_ext
building 'ctranslate2.translator' extension
creating build/temp.linux-x86_64-3.10
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -I/usr/lib/python3.10/site-packages/pybind11/include -I/usr/include/python3.10 -c -o build/temp.linux-x86_64-3.10/translator.o -std=c++17 fatal error: ctranslate2/translator_pool.h: No such file or directory
   11 | #include <ctranslate2/translator_pool.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/opt/cuda/bin/gcc' failed with exit code 1
==> ERROR: A failure occurred in build().
 -> error making: ctranslate2-git

Nullrequest commented on 2021-04-10 01:22 (UTC) (edited on 2021-04-10 01:22 (UTC) by Nullrequest)

Hey I heard this package did some funky stuff with postinstall hooks. I've taken the time to add the dependencies to the PKGBUILD. Do not use pip as root to install stuff in AUR packages.

# Maintainer: fossdd <>
pkgdesc="Offline neural machine translation library and GUI."
provides=('argos-translate' 'argos-translate-cli')
depends=('python' 'python-pip' 'python-requests' 'python-pyqt5' 'python-stanza' 'python-sentencepiece-git' 'ctranslate2-git')
optdepends=('python-sphinx' 'python-sphinx_rtd_theme')
makedepends=('python-setuptools' 'git')

pkgver() {
  cd "${_pkgname}"
  ( set -o pipefail
    git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

build() {
  cd ${_pkgname}
  python build

package() {
  cd ${_pkgname}
  python install --root="$pkgdir/" --optimize=1

sandsmark commented on 2021-04-07 11:18 (UTC)

wtf, this runs pip as root to install a bunch of stuff outside of pacman in the .install script?

The dependencies should be installed as dependencies, not mess up my system like that.

Tio commented on 2021-03-31 22:39 (UTC)

I get this error:

Collecting tqdm
  Downloading tqdm-4.59.0-py2.py3-none-any.whl (74 kB)
Installing collected packages: tqdm, torch, stanza, sentencepiece, ctranslate2
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
Error while configuring argos-translate-git
argostranslate 1.2.1 requires ctranslate2==1.17.1, but you have ctranslate2 1.19.0 which is incompatible.
argostranslate 1.2.1 requires PyQt5==5.15.1, but you have pyqt5 5.15.4 which is incompatible.
argostranslate 1.2.1 requires sentencepiece==0.1.94, but you have sentencepiece 0.1.95 which is incompatible.
argostranslate 1.2.1 requires sphinx==3.2.1, but you have sphinx 3.5.2 which is incompatible.
argostranslate 1.2.1 requires sphinx-rtd-theme==0.5.0, but you have sphinx-rtd-theme 0.5.1 which is incompatible.
argostranslate 1.2.1 requires stanza==1.1.1, but you have stanza 1.2 which is incompatible.
Successfully installed ctranslate2-1.19.0 sentencepiece-0.1.95 stanza-1.2 torch-1.8.1 tqdm-4.59.0
Transaction successfully finished.

hotice commented on 2021-03-29 20:15 (UTC) (edited on 2021-03-29 20:19 (UTC) by hotice)

$ argos-translate
Traceback (most recent call last):
File "/bin/argos-translate", line 3, in <module> from argostranslate import cli
File "/usr/lib/python3.9/site-packages/argostranslate/", line 3, in <module> from argostranslate import package, translate
File "/usr/lib/python3.9/site-packages/argostranslate/", line 3, in <module> import ctranslate2
ModuleNotFoundError: No module named 'ctranslate2'