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

$PIPX_HOME contain HARD separator - SPACE in the ".../Application Support/..." via HomeBrew #1288

Closed
ucomru opened this issue Mar 12, 2024 · 2 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@ucomru
Copy link

ucomru commented Mar 12, 2024

There are so many open issues with same trouble:

There are so many things and answers, but the problem in the header of the python venv:

#!/Users/USER/Library/Application Support/pipx/venvs/<some_app>/bin/python

As Im understanding the header of the bin/python: #!/.../bin/python could not to contain symbol.
symbol is interpreted as HARD separator.

According to the pipx environment, the main problem with the $PIPX_HOME.

On MacOS with HomeBrew PIPX_HOME = /Users/USER/Library/Application Support/pipx
It's containing SPACE.

I think the best way is to set linux like variable: PIPX_HOME=$HOME/.local/pipx

It's correcting head links #!/.../bin/python.

When Im using:

export PIPX_HOME=$HOME/.local/pipx

the header at .local/bin/<some_app> is going to the:

#!/Users/USER/.local/pipx/venvs/<some_app>/bin/python
...

Its work fine, and PIPX_HOME=$HOME/.local/pipx is looks more canonical ;-)

@Gitznik
Copy link
Contributor

Gitznik commented Mar 12, 2024

Hi @ucomru,

thanks raising this. We are aware of this issue and there is an open issue to fix this: #1257.
Indeed, export PIPX_HOME=$HOME/.local/pipx seems like the best way to fix this right now as a user.

@Gitznik Gitznik closed this as not planned Won't fix, can't repro, duplicate, stale Mar 12, 2024
@Gitznik Gitznik added bug Something isn't working duplicate This issue or pull request already exists labels Mar 12, 2024
@ucomru
Copy link
Author

ucomru commented Mar 12, 2024

Hi @ucomru,

thanks raising this. We are aware of this issue and there is an open issue to fix this: #1257. Indeed, export PIPX_HOME=$HOME/.local/pipx seems like the best way to fix this right now as a user.

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants