Package Details: python-magika 1.0.3-1

Git Clone URL: https://aur.archlinux.org/python-magika.git (read-only, click to copy)
Package Base: python-magika
Description: Detect file content types with deep learning
Upstream URL: https://github.com/google/magika
Licenses: Apache-2.0
Provides: magika-cli
Submitter: bjin
Maintainer: envolution (txtsd)
Last Packager: txtsd
Votes: 4
Popularity: 0.038570
First Submitted: 2024-02-16 09:40 (UTC)
Last Updated: 2026-05-06 22:40 (UTC)

Pinned Comments

txtsd commented on 2026-04-03 08:58 (UTC)

rustup is supposed to be managed by the user.

You have to run rustup update as and when you need to unless you want to be stuck on the last version you updated to.

If rustup is not something you use, then yea, install rust directly to grab the cargo dependency.

Latest Comments

1 2 Next › Last »

txtsd commented on 2026-04-03 08:58 (UTC)

rustup is supposed to be managed by the user.

You have to run rustup update as and when you need to unless you want to be stuck on the last version you updated to.

If rustup is not something you use, then yea, install rust directly to grab the cargo dependency.

Terrorizer commented on 2026-04-02 22:14 (UTC) (edited on 2026-04-02 22:18 (UTC) by Terrorizer)

i get an error, no update possible since days:

error: rustc 1.85.1 is not supported by the following packages: ort@2.0.0-rc.11 requires rustc 1.88 ort-sys@2.0.0-rc.11 requires rustc 1.88 ort-sys@2.0.0-rc.11 requires rustc 1.88 ort-sys@2.0.0-rc.11 requires rustc 1.88 Either upgrade rustc or select compatible dependency versions with cargo update <name>@<current-ver> --precise <compatible-ver> where <compatible-ver> is the latest version supporting rustc 1.85.1

💥 maturin failed Caused by: Failed to build a native library through cargo Caused by: Cargo build finished with "exit status: 101": env -u CARGO "cargo" "rustc" "--profile" "release" "--message-format" "json-render-diagnostics" "--locked" "--manifest-path" "/home/terrorizer/.cache/paru/clone/python-magika/src/magika-python-v1.0.2/rust/cli/Cargo.toml" "--bin" "magika" Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/usr/bin/python', '--compatibility', 'off'] returned non-zero exit status 1

ERROR Backend subprocess exited when trying to invoke build_wheel

PS.: fuck how can i format this to a codeblock ???

cuidas commented on 2026-02-05 15:42 (UTC)

Ran into multiple problems and I don't know which of them were my own fault or my machine's fault or "real" errors, but I could solve this so I will share it here:

Errors:

  • Checksum failed
  • "Truncated tar archive detected while reading data"
  • "Feature edition2024 is required"

Solutions:

FabioCosta0305 commented on 2025-12-03 14:54 (UTC)

Alright... Discovered that the problem is because I had rustup instead of rust installed, and for some reason cargo was in fact a symlink to rustup

In this case, I replaced rustup for rust and now it worked

FabioCosta0305 commented on 2025-12-03 14:48 (UTC)

Trying to go via paru and that happened... Tried to do makepkg and got same result

==> Validating source files with sha256sums...
    python-magika-1.0.1.tar.gz ... Passed
==> Making package: python-magika 1.0.1-3 (qua 03 dez 2025 11:46:47)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found python-magika-1.0.1.tar.gz
==> Validating source files with sha256sums...
    python-magika-1.0.1.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting python-magika-1.0.1.tar.gz with bsdtar
==> Starting prepare()...
error: command failed: 'cargo': Permission denied (os error 13)
==> ERROR: A failure occurred in prepare().
    Aborting...
error: failed to build 'python-magika-1.0.1-3': 
error: packages failed to build: python-magika-1.0.1-3

All my rust packages are there, and which cargo returns /usr/bin/cargo

cylobi commented on 2025-11-19 12:34 (UTC) (edited on 2025-11-19 12:35 (UTC) by cylobi)

@Kcchouette I had the same problem and clean cached and reinstalled and it went alright. If you are using paru clean the cache like this:

rm -rf ~/.cache/paru/clone/python-magika

Kcchouette commented on 2025-11-15 10:34 (UTC)

Building python-magika...
==> Making package: python-magika 1.0.1-3 (sam. 15 nov. 2025 11:34:06)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found python-magika-1.0.1.tar.gz
==> Validating source files with sha256sums...
    python-magika-1.0.1.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
Failed to build python-magika

envolution commented on 2025-11-13 17:43 (UTC)

@txtsd looks good, thanks for the help! I don't think it's necessary to split the package - maybe provides=('magika-cli') would be enough

txtsd commented on 2025-11-13 16:37 (UTC)

I've pushed changes. Please take a look and see if it's alright, or if we should create a separate magika package for the rust binary instead.

txtsd commented on 2025-11-07 15:04 (UTC)

Can you also build the rust binary, or add me as co-maintainer and I'll help get it done?