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

Global parameter does not work using ensurepath command #1337

Closed
marcosalberto opened this issue Apr 10, 2024 · 5 comments
Closed

Global parameter does not work using ensurepath command #1337

marcosalberto opened this issue Apr 10, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@marcosalberto
Copy link

marcosalberto commented Apr 10, 2024

Describe the bug

Follow the pipx install documentation for MacOS causes a "unrecognized arguments" error on ensurepath command.

How to reproduce

➜ ~ sudo pipx ensurepath --global
Password:
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
➜ ~

Expected behavior

Install pipx globally without errors

@Gitznik
Copy link
Contributor

Gitznik commented Apr 10, 2024

Hi @marcosalberto, could you please provide the version of pipx you are on?

Edit: I just saw your PR. Does setting --global right after
pipx instead of after ensurepath fix it for you?

@marcosalberto
Copy link
Author

Hi @Gitznik,

I'm using the 1.5.0 version and change the parameter position fixes the issue.

➜  ~ pipx --version
1.5.0

Sorry by didn't add a comment making reference to the PR.

@Gitznik Gitznik linked a pull request Apr 10, 2024 that will close this issue
1 task
@chrysle chrysle added the bug Something isn't working label Apr 10, 2024
@boris-ning-usds
Copy link

Ah, I just installed pipx for the first time and caught this.

This works.

sudo pipx --global ensurepath

This doesn't work

sudo pipx ensurepath --global

@Radiergummi
Copy link

Same issue here, exactly as @boris-ning-usds described.

@chrysle
Copy link
Contributor

chrysle commented May 11, 2024

Will work as described in the documentation in the upcoming pipx version (#1397).

@chrysle chrysle closed this as completed May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants