chmln/handlr

MagicError: File 5.39 supports only version 16 magic files.

cking opened this issue · 9 comments

cking commented

In lots of applications I get the following error message when trying to open a file:

MagicError: File 5.39 supports only version 16 magic files. '/-tmp/.mime_detective_magic.mgc' is version 14

I am using latest Arch [with the xdg-utils replacer]. What am I doing wrong?
If there is anything I can help or provide with additional help, I'd be happy to

chmln commented

@cking you're using an outdated version, just upgrade to the latest one and all your problems will disappear ✈️

cking commented

AUR has only handlr-bin in version 0.4.5-1 - no other version is available :(

:: Querying AUR...
Repository      : aur
Name            : handlr-bin
Keywords        : mime  rust  xdg-open  xdg-utils
Version         : 0.4.5-1
Description     : Powerful alternative to xdg-utils written in Rust
URL             : https://github.com/chmln/handlr
AUR URL         : https://aur.archlinux.org/packages/handlr-bin
Groups          : None
Licenses        : unknown
Provides        : None
Depends On      : None
Make Deps       : None
Check Deps      : None
Optional Deps   : None
Conflicts With  : None
Maintainer      : chmln
Votes           : 2
Popularity      : 1.492381
First Submitted : Wed 20 May 2020 06:43:49 AM CEST
Last Modified   : Sun 21 Jun 2020 03:28:35 AM CEST
Out-of-date     : No
chmln commented

@cking I suggested upgrading because that error looks like one from the mime-detective dependency which handlr had until recent one or two versions.

What's the output of the following ?

which handlr
handlr --version
cking commented
❯ which handlr ; handlr --version
/usr/bin/handlr
handlr 0.4.3
chmln commented

@cking so the latest version is v0.4.5 :) Could you try reinstalling and see if that fixes your issue?

cking commented

i did that 3 times.
2 times reinstalling and one time uninstalling and then installing again.
the 0.4.5 package installs 0.4.3 for me

chmln commented

@cking must be some issue with an AUR helper. Here's the package https://aur.archlinux.org/packages/handlr-bin

I manually downloaded the binary and verified that it outputs the correct version.
image

I could suggest using the yay AUR helper.

If somehow that doesn't help either, you can try git-cloning https://aur.archlinux.org/handlr-bin.git and running makepkg -si

cking commented

i am using yay

cking commented

well now i got 0.4.5, not sure why yay said it downloaded .4.5 but gave me .4.3