-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Credentials missing in pip when resolving deps #5649
Comments
Hi. Have you configured your credentials as in docs: https://python-poetry.org/docs/repositories/#configuring-credentials ? |
Hi, yes I used |
Ok, could you try Install Poetry from VCSpipx install --force --suffix=@git 'poetry @ git+https://github.com/python-poetry/poetry.git' Install Poetry Core from VCSpipx inject --force poetry@git 'poetry-core @ git+https://github.com/python-poetry/poetry-core.git' Note |
It seems like I am unable to connect to GitHub due to my proxy restrictions. I think somebody who knwos really well what's going on inside poetry's dependency resolution should check whether the credentials of private repos are forwarded correctly to the temporary pip in the venv where packages are installed in order to resolve their dependencies. Otherwise this fresh pip doesn't have the credentials for the private repo and asks for them. Since this happens in a subprocess the process gets stuck forever. |
Addressed by #6724 (that is to say, we now will error out instead of hanging). |
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: Win10
Poetry version: 1.1.13
Link of a Gist with the contents of your pyproject.toml file:
Issue
Hi all,
today I was finally able to figure out why my poetry add/install/update commands got stuck. I am using poetry behind a proxy and therefore configured poetry to use a private pypi repo. For this repo I also configured the credentials. When I add/install pypi packages that consist of simple whl files everything is fine. However when I install big packages like numpy or scipy that consist of zipped src files poetry gets stuck. At the beginning I thought it was a credentials/network problem. However today I stepped with a debugger through the process of adding for example numpy and I could see that the download worked. Poetry got stuck when it tried to install numpy into a venv in a temp folder, I guess it makes it to figure out the dependencies. The problem is that the process gets stuck in
poetry/inspection/info.py
in line 467. Due to the debugger I saw the arguments that were used to execute pip and I ran them in a cmd in the tempfolder by myself. And tada - this pip was asking to enter username and password. This is why it got stuck infinetely. As a workaround I added a global pip.ini file where the username and password of the private pypi is specified. Now it runs like a charm. My question ist is that behavior intended? Did I make a mistake in my setup?The text was updated successfully, but these errors were encountered: