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
Poetry fails to run pip which picks user
option from user config
#6521
Comments
duplicate #1214 |
@dimbleby #1214 is talking about making Poetry into a global (or rather user-specific) package manager that installs packages to user directory. This issue is talking about a BUG that poetry fails to install because of conflicting user configuration. Please correct me if I'm wrong. |
Not really -- ultimately the request is to interoperate with |
fwiw I agree after all that this is not quite the same as #1214. This one is sort of saying that there was a loophole all along that the #1214-wanters could have used, and asking for that loophole to be closed. If poetry ever reaches the point where it doesn't shell out to pip at all then this all becomes moot. Meanwhile, as you say, it probably ought to go |
Ah, after re-reading the original issue I see the distinction now -- this is a user's configuration of a different/external tool breaking Poetry. |
poetry/src/poetry/utils/pip.py Line 28 in cc3f994
|
Already baking locally 😄 |
Thanks for understanding and quick patching ;) Just one nitpick about |
What I really mean is 'bad' from Poetry's perspective -- fair enough 😅 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: MacOS Big Sur 11.6
Poetry version: 1.2.0 (installed with Homebrew)
Link of a Gist with the contents of your pyproject.toml file: https://github.com/sergei-dyshel/itunes-tag-sync/blob/master/pyproject.toml
Issue
I have pip configured to install to user directory:
When I install project with poetry I get the following error:
So it looks like Poetry is picking
user
option from the config and it conflicts with the option passed on command line.Expected behaviour
Poetry ignores user config or at least potentially conflicting parts of it (e.g.
user
option).Workaround
Use env variable to override
user
during Poetry run.The text was updated successfully, but these errors were encountered: