Installing crash with pipx fails

Hi all,
I’m trying to install crash in a docker container with Debian stable operating system following instructions at https://cratedb.com/docs/crate/crash/en/latest/getting-started.html#python-package

But my pipx don’t recognize the “–upgrade” argument

The versions and the error

root@0b4f08cecea9:/# python --version
Python 3.11.2
root@0b4f08cecea9:/# pip --version
pip 23.0.1 from /usr/lib/python3/dist-packages/pip (python 3.11)
root@0b4f08cecea9:/# pipx --version
1.1.0
root@0b4f08cecea9:/# pipx install --upgrade crash
usage: pipx [-h] [--version] {install,inject,upgrade,upgrade-all,uninstall,uninstall-all,reinstall,reinstall-all,list,run,runpip,ensurepath,environment,completions} ...
pipx: error: unrecognized arguments: --upgrade
root@0b4f08cecea9:/# 

What I’m doing wrong?

1 Like

Dear Mirto,

thank you for writing in. Most probably, this is just a documentation flaw. We only recently changed the documentation to use pipx instead of pip [1], and apparently slapped the --upgrade option on it, before validating it beforehand. Apologies.

We submitted a fix right away [2], thanks a stack for making us aware about that problem.

With kind regards,
Andreas.


  1. Documentation: Advertise `pipx` for program installation (PEP 668) by amotl · Pull Request #451 · crate/crash · GitHub ↩︎

  2. Documentation: Fix advertised `pipx` command by amotl · Pull Request #456 · crate/crash · GitHub ↩︎

1 Like

You are right.
Issuing the command without “–upgrade” works

root@0b4f08cecea9:/# pipx install crash
  installed package crash 0.31.5, installed using Python 3.11.2
  These apps are now globally available
    - crash
done! ✨ 🌟 ✨
root@0b4f08cecea9:/# crash --version
0.31.5
root@0b4f08cecea9:/# 

BTW I saw that in Debian stable pipx is at 1.1.0 version; bu on github the latest version is 1.7.1
I was not able to upgrade pipx in Debian.
Maybe you can specify a minimal pipx version?

Thanks
Mirto

1 Like

Hi Mirto,

Excellent. Thanks, and sorry for the hiccup.

Thank you for letting us know. Unless there are specific problems with pipx, I don’t think we need to specify a minimal version. [1]

With kind regards,
Andreas.

NB: Please let us know about anything we can improve. It is much appreciated, and we love your attention to details.


  1. With Debian, it is well-known that they are opting for stability instead of freshness, which is not a bad thing. Please note because pipx is provided by the operating system vendor, it is not advisable to upgrade it out-of-band. ↩︎