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

Poetry appears to attempt to connect to pypi.org though I have it disabled #7472

Closed
smprather opened this issue Feb 5, 2023 · 2 comments
Closed
Labels
status/duplicate Duplicate issues

Comments

@smprather
Copy link

  • Poetry version: Poetry (version 1.3.2)

  • Python version: Poetry (version 1.3.2)

  • OS version and name: Poetry (version 1.3.2)

  • pyproject.toml: https://gist.github.com/smprather/2a9e338226b53a9e3199e18b03ffcf50

  • [ x] I am on the latest stable Poetry version, installed using a recommended method.

  • [ x] I have searched the issues of this repo and believe that this is not a duplicate.

  • [ x] I have consulted the FAQ and blog for any relevant entries or release notes.

  • [ x] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

I am operating on an internal network that doesn't have visibility of the external internet. We have an internal PyPI that we use. I am able to 'poetry add' many things (yaml, pytest, plotly, kaleido, and more). But when I try 'poetry add fire', it hangs for a while waiting on network timeouts and retries, then dies. The poetry add fire -vvv is in the pyproject.toml gist.

I tried manually running the 'pip install' spawned by Poetry (after activating the Poetry virtenv). I get the same hang. When I remove --isolated, it runs ok (I have ~/.config/pip/pip.conf pointed to our internal PyPI). Also, I hacked subprocess to print out the commands it is getting, and I see this one.

['/home/epramyl/.cache/pypoetry/virtualenvs/redhawk-dvd-utils-e0EwSbsW-py3.9/bin/python', '/home/epramyl/.cache/pypoetry/virtualenvs/redhawk-dvd-utils-e0EwSbsW-py3.9/lib/python3.9/site-packages/pip/__pip-runner__.py', 'install', '--ignore-installed', '
--no-user', '--prefix', '/tmp/pip-build-env-vsjy__y3/overlay', '--no-warn-script-location', '--no-binary', ':none:', '--only-binary', ':none:', '-i', 'https://pypi.org/simple', '--', 'setuptools>=40.8.0', 'wheel']

Shouldn't Poetry be passing my configured source url as a --index-url argument to pip since it is using --isolated?

I would suspect user error (and still do), but I am able to add so many dependencies successfully. This is the first one that didn't work. When I create a fresh virt-env, activate, then pip install fire, no problem. It respects my pip.conf, and all is well.

Thanks!
--Myles

PS I have tried clearing the cache and recreating poetry.lock many times. Didn't help.

@smprather smprather added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Feb 5, 2023
@neersighted
Copy link
Member

Duplicate of #3249.

@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Feb 5, 2023
@neersighted neersighted added status/duplicate Duplicate issues and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Feb 5, 2023
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

2 participants