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

Error with pipx install Command Using Relative Path for Pip Arguments #1389

Open
guysalt opened this issue May 3, 2024 · 0 comments · May be fixed by #1390
Open

Error with pipx install Command Using Relative Path for Pip Arguments #1389

guysalt opened this issue May 3, 2024 · 0 comments · May be fixed by #1390
Labels
bug Something isn't working

Comments

@guysalt
Copy link

guysalt commented May 3, 2024

Describe the bug

When using the pipx install command with pip arguments -c or --constraint, using a relative path, we encounter an error stating that the file does not exist, even though it does.

How to reproduce

pipx install --pip-args=--constraint=some_constraint_file.txt some_package_inside_constraint_file

Expected behavior

The package should be installed successfully.

I have already identified that this issue occurs following the changes introduced in PR #1237.

Is it necessary to run the commands in a different directory?

If so, I have already begun drafting a solution for this issue.
My approach involves checking for -c and --constraint flags and replacing relative paths with absolute paths before calling the subprocess.

Do you think this proposed solution is appropriate? If there is a simpler way to resolve this issue, please advise.

Thank you very much for this package!

@chrysle chrysle added the bug Something isn't working label May 4, 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.

2 participants