I had a working installation for argos translate. Due to a dead fan, I had to move the hard drive to another machine (same model but there are still differences).

Running argos-translate on the replacement machine gave “illegal instruction”. I figured a CPU variation must be in play here. So I ran this:

$ pipx uninstall argostranslate

Which removed ~/.local/pipx/venvs/argostranslate and freed up ~7gb of space. Then to reinstall:

$ cd /usr/local/src/argos-translate; # git cloned
$ python3 -m venv env-t7500
$ source ./env-t7500/bin/activate
$ pipx install --pip-args='--compile --find-links wheel_cache' .

wheel_cache has the whl files I separately fetched with:

$ python -m pip download -d ./wheel_cache/ argostranslate

There were no errors in the installation, but it still gives “illegal instruction” when running argos-translate.

WTF? It should have forced compilation with --compile. Is there something that would have been missed with the uninstallation?

I possibly have the same problem as this bug, but then I have to wonder why it was able to compile. It should have failed at compilation not runtime – unless we cannot trust the --compile option.