Package Details: python-ctranslate2 4.6.0-2

Git Clone URL: https://aur.archlinux.org/ctranslate2.git (read-only, click to copy)
Package Base: ctranslate2
Description: A Python library for efficient inference with Transformer models.
Upstream URL: https://opennmt.net/CTranslate2
Licenses: MIT
Submitter: yochananmarqos
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 3
Popularity: 0.055118
First Submitted: 2023-12-10 15:32 (UTC)
Last Updated: 2025-04-08 19:54 (UTC)

Sources (9)

Pinned Comments

yochananmarqos commented on 2024-10-24 19:03 (UTC)

PSA: I just enabled OPENBLAS, but I had to disable both MKL and DNNL to do it. Please let me know how that goes.

Latest Comments

1 2 Next › Last »

yochananmarqos commented on 2025-04-08 20:17 (UTC)

@sashank: I think you misunderstand. Upstream originally tagged 4.6.0 and I updated the package. Then they decided to delete the tag and tag again it as v4.6.0.

Either way, no need to fiddle around with git commands, makepkg handles all of that. ;)

sashank commented on 2025-04-08 20:13 (UTC) (edited on 2025-04-08 20:15 (UTC) by sashank)

Setting git+https://github.com/OpenNMT/CTranslate2.git#tag=617405f4b050e994e829d527da6caa0e0030afe7

Allows the install to go forward.

I got the tag from running git rev-parse "v4.6.0" as suggested here:

https://wiki.archlinux.org/title/Arch_package_guidelines#Package_sources

Edit, well it works (and my changes might not have fixed this. Thanks anyways). It's rolling forward.

yochananmarqos commented on 2025-04-08 19:54 (UTC)

@sashank: Aargh... I hate it when upstream messes with tags like that..Fixed.

From https://github.com/OpenNMT/CTranslate2
 - [deleted]           (none)     -> 4.6.0
 * [new tag]           v4.6.0     -> v4.6.0

sashank commented on 2025-04-08 19:47 (UTC)

Setting source to "git+https://github.com/OpenNMT/CTranslate2.git#tag=$pkgver"

and sha256sums '78111a078f17b809274c3adf00ffa33c35c729f82bde17c64e091ebc5bd1b400'

gets me the following error at the stage: Validating source files with sha256sums... CTranslate2 ... fatal: not a valid object name: 4.6.0

Did you put in the right hash? They just set the commit tag 4.6.0 four hours ago.

yochananmarqos commented on 2025-04-08 16:28 (UTC)

@mistersmee: I've added -DENABLE_CPU_DISPATCH=OFF, I don't see any downsides.

mistersmee commented on 2025-04-01 11:15 (UTC)

I had the same issue as @xuiqzy, however disabling debug did not do anything. Searching on the internet, I found this bug report: https://forum.opennmt.net/t/linker-error-when-compiling-ctranslate2-with-march-corei7-avx-cxx-flags/3951

I do have -march=native in my makepkg.conf, hence why I ran across the compile error, and using the fix as described in the bug report, adding -DENABLE_CPU_DISPATCH=OFF did in fact fix the compile error.

I leave it up to you @yochananmarqos to add it to the PKGBUILD or not, but for anyone else running with -march=native or a specific CPU architecture, try adding the flag and see if it works. I'm just leaving this comment here for future reference.

yochananmarqos commented on 2025-03-31 20:26 (UTC)

@taba: I already know what the issue is, so I just fixed it.

In the future, please provide specific details--otherwise the Maintainer may completely ignore you. ;)

taba commented on 2025-03-31 20:18 (UTC)

There's an issue with the version of CMake

morsmortium commented on 2025-02-04 19:57 (UTC)

Traceback (most recent call last):
  File "/usr/bin/argos-translate-gui", line 3, in <module>
    from argostranslategui import gui
  File "/usr/lib/python3.13/site-packages/argostranslategui/gui.py", line 6, in <module>
    from argostranslate import package, settings, translate, utils
  File "/usr/lib/python3.13/site-packages/argostranslate/translate.py", line 5, in <module>
    import ctranslate2
  File "/usr/lib/python3.13/site-packages/ctranslate2/__init__.py", line 21, in <module>
    from ctranslate2._ext import (
    ...<20 lines>...
    )
ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory

This is what I got after an autoremove script removed unused dependencies, including make dependencies. I think openblas should be a regular dependency, if the package breaks without it (reinstalling the dependency made it work again)

yochananmarqos commented on 2024-11-14 18:55 (UTC)

@xuiqzy: Disable debug in your makepkg.conf.