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 update hangs #6526

Closed
3 tasks done
jacopok opened this issue Sep 15, 2022 · 4 comments
Closed
3 tasks done

poetry update hangs #6526

jacopok opened this issue Sep 15, 2022 · 4 comments
Labels
kind/bug Something isn't working as expected

Comments

@jacopok
Copy link

jacopok commented Sep 15, 2022

  • I am on the latest Poetry version, 1.2.0.

  • I have searched the issues of this repo and believe that this is not a duplicate (this issue seems kind of similar but remains open, and the solution in the last comment does not work for me).

  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

  • OS version and name: Ubuntu 22.04

  • Poetry version: 1.2.0

[tool.poetry]
name = "example"
version = "0.1.0"
description = ""
authors = ["jacopok <jacopok@gmail.com>"]
readme = "README.md"
packages = [{include = "example"}]

[tool.poetry.dependencies]
python = "^3.9"
numpy = ">=1.23.0"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

Issue

The command poetry update -vvv given in a fresh shell hangs with the following output:

$ poetry update -vvv
Loading configuration file /home/jacopo/.config/pypoetry/config.toml
Using virtualenv: /home/jacopo/.cache/pypoetry/virtualenvs/example-s9A39rV6-py3.9
Project environment contains an empty path in sys_path, ignoring.
Updating dependencies
Resolving dependencies...
   1: fact: example is 0.1.0
   1: derived: example
   1: fact: example depends on numpy (>=1.23.0)
   1: selecting example (0.1.0)
   1: derived: numpy (>=1.23.0)
[keyring.backend] Loading KWallet
[keyring.backend] Loading SecretService
[keyring.backend] Loading Windows
[keyring.backend] Loading chainer
[keyring.backend] Loading libsecret
[keyring.backend] Loading macOS
Creating new session for pypi.org
[urllib3.connectionpool] Starting new HTTPS connection (1): pypi.org:443
[urllib3.connectionpool] https://pypi.org:443 "GET /pypi/numpy/json HTTP/1.1" 304 0

and the issue seems to happen regardless of the specific package used.

On the other hand, if I turn off my internet connection, I get

$ poetry update -vvv
Loading configuration file /home/jacopo/.config/pypoetry/config.toml
Using virtualenv: /home/jacopo/.cache/pypoetry/virtualenvs/example-s9A39rV6-py3.9
Project environment contains an empty path in sys_path, ignoring.
Updating dependencies
Resolving dependencies...
   1: fact: example is 0.1.0
   1: derived: example
   1: fact: example depends on numpy (>=1.23.0)
   1: selecting example (0.1.0)
   1: derived: numpy (>=1.23.0)
[keyring.backend] Loading KWallet
[keyring.backend] Loading SecretService
[keyring.backend] Loading Windows
[keyring.backend] Loading chainer
[keyring.backend] Loading libsecret
[keyring.backend] Loading macOS
Creating new session for pypi.org
[urllib3.connectionpool] Starting new HTTPS connection (1): pypi.org:443
Retrying HTTP request in 0.5 seconds.
[urllib3.connectionpool] Starting new HTTPS connection (2): pypi.org:443
Retrying HTTP request in 1.0 seconds.
[urllib3.connectionpool] Starting new HTTPS connection (3): pypi.org:443
Retrying HTTP request in 1.5 seconds.
[urllib3.connectionpool] Starting new HTTPS connection (4): pypi.org:443
Retrying HTTP request in 2.0 seconds.
[urllib3.connectionpool] Starting new HTTPS connection (5): pypi.org:443
Retrying HTTP request in 2.5 seconds.
[urllib3.connectionpool] Starting new HTTPS connection (6): pypi.org:443
   1: Version solving took 7.587 seconds.
   1: Tried 1 solutions.

  Stack trace: 
[omitted]

  ConnectionError

  HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /pypi/numpy/json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc2e8c42790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

I don't know much about networking, but pypi seems not to be down as of now, 2022-09-15 14:30 CEST...

@jacopok jacopok added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Sep 15, 2022
@dimbleby
Copy link
Contributor

probably a stuck lockfile in your cache, try find ~/.cache/pypoetry/ -name '*.lock' -delete or similar

@jacopok
Copy link
Author

jacopok commented Sep 15, 2022

That worked! Thank you very much!

@jacopok jacopok closed this as completed Sep 15, 2022
@dimbleby
Copy link
Contributor

#6471

Copy link

github-actions bot commented Mar 1, 2024

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 Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

3 participants