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

Git Clone URL: https://aur.archlinux.org/argos-translate-git.git (read-only, click to copy)
Package Base: argos-translate-git
Description: Offline neural machine translation library and GUI.
Upstream URL: https://github.com/argosopentech/argos-translate
Licenses: MIT
Provides: argos-translate, argos-translate-cli
Submitter: fossdd
Maintainer: fossdd
Last Packager: fossdd
Votes: 2
Popularity: 1.10
First Submitted: 2021-03-22 14:18
Last Updated: 2021-06-12 12:38

Latest Comments

Nullrequest commented on 2021-04-10 01:22

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 <fossdd@tutanota.com>
pkgname=argos-translate-git
_pkgname=argos-translate
pkgver=r231.8c4e64e
pkgrel=1
pkgdesc="Offline neural machine translation library and GUI."
arch=(any)
url="https://github.com/argosopentech/argos-translate"
provides=('argos-translate' 'argos-translate-cli')
license=(MIT)
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')
source=('git+https://github.com/argosopentech/argos-translate.git')
sha256sums=('SKIP')

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 setup.py build
}

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

sandsmark commented on 2021-04-07 11:18

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

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

$ 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/cli.py", line 3, in <module> from argostranslate import package, translate
File "/usr/lib/python3.9/site-packages/argostranslate/translate.py", line 3, in <module> import ctranslate2
ModuleNotFoundError: No module named 'ctranslate2'