question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Poetry can't install httpx

See original GitHub issue
  • 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 X 11.6.1
  • Poetry version: ~1.1.6~ [1.1.13 actually]
  • Here’s my pyproject.toml after much simplification:
[tool.poetry]
name = "poetry-bug"
version = "0.1.0"
description = ""
authors = ["Stefane Fermigier <sf@abilian.com>"]

[tool.poetry.dependencies]
python = "^3.10"
httpx = "0.22.0"

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

Issue

Poetry hangs trying to compute the resolution.

Here’s what happens with poetry install -vvv:

$ poetry install -vvv
Using virtualenv: /Users/fermigier/.virtualenvs/tmp
Updating dependencies
Resolving dependencies...
   1: fact: poetry-bug is 0.1.0
   1: derived: poetry-bug
   1: fact: poetry-bug depends on httpx (0.22.0)
   1: selecting poetry-bug (0.1.0)
   1: derived: httpx (==0.22.0)
   1: fact: httpx (0.22.0) depends on certifi (*)
   1: fact: httpx (0.22.0) depends on charset-normalizer (*)
   1: fact: httpx (0.22.0) depends on sniffio (*)
   1: fact: httpx (0.22.0) depends on rfc3986 (>=1.3,<2)
   1: fact: httpx (0.22.0) depends on httpcore (>=0.14.5,<0.15.0)
   1: selecting httpx (0.22.0)
   1: derived: httpcore (>=0.14.5,<0.15.0)
   1: derived: rfc3986[idna2008] (>=1.3,<2)
   1: derived: sniffio
   1: derived: charset-normalizer
   1: derived: certifi
[hangs]

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sfermigiercommented, Apr 26, 2022

Thanks for the reproduction attempts @bbuscarino and @abn. I will close the issue then, to ease the task of the maintainers.

0reactions
vladimirshkodacommented, Sep 20, 2022

@sfermigier I faced the same issue, what helped me: clear the cache poetry cache clear pypi --all

Read more comments on GitHub >

github_iconTop Results From Across the Web

poetry dependencies python3.4 with httpx - Stack Overflow
I'm to use pyproject. toml with poetry (1.1. 5, latest). I want my package supports python>=3.4, and, if it's python>=3.6 then depends on...
Read more >
Introduction | Documentation | Poetry - Python dependency ...
This ensures that dependencies will not be accidentally upgraded or uninstalled, and allows Poetry to manage its own environment. Install Poetry. The installer ......
Read more >
HTTPX
HTTPX is a fully featured HTTP client for Python 3, which provides sync and async APIs, and support for both HTTP/1.1 and HTTP/2....
Read more >
Configure a Poetry environment | PyCharm Documentation
To use Poetry in PyCharm, you need to install it on your machine and create a specific Python environment. Install Poetry. Open Terminal...
Read more >
How To Install Poetry to Manage Python Dependencies on ...
curl -sSL https://install.python-poetry.org | python3 - … [secondary_label Output] Poetry (1.2.1) is installed now. Great!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found