Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo pipx ensurepath --global fails on MacOS due to --global flag order #1429

Closed
openrory opened this issue May 28, 2024 · 4 comments
Closed

Comments

@openrory
Copy link

Describe the bug

When running sudo pipx ensurepath --global as part of the installation process for MacOS, it gives the following error:

usage: pipx [-h] [--quiet] [--verbose] [--global] [--version]
            {install,uninject,inject,upgrade,upgrade-all,uninstall,uninstall-all,reinstall,reinstall-all,list,interpreter,run,runpip,ensurepath,environment,completions}
            ...
pipx: error: unrecognized arguments: --global

How to reproduce

run sudo pipx ensurepath --global

Expected behavior

/usr/local/bin is already in PATH.

⚠️  All pipx binary directories have been added to PATH. If you are sure you want to proceed, try again with the '--force'
flag.
@openrory openrory changed the title sudo pipx ensurepath --global fails on MacOs due to --global flag order sudo pipx ensurepath --global fails on MacOS due to --global flag order May 28, 2024
@Gitznik
Copy link
Contributor

Gitznik commented May 28, 2024

The fix for this has already been implemented in #1397, and will be in the next release.

@Gitznik Gitznik closed this as completed May 28, 2024
@dukecat0
Copy link
Member

Probably it's time to create a new release?

@Gitznik
Copy link
Contributor

Gitznik commented May 28, 2024

Probably it's time to create a new release?

Whoever does this must fix the news fragments though. Multiple lines are not supported and break the formatting (see the current latest changelog). I can do it in the evening (CEST).

@openrory
Copy link
Author

openrory commented May 28, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants