You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to install click with poetry it fails with the following error:
• Installing click (8.0.3): Failed
AttributeError
'Link' object has no attribute 'name'
at /usr/local/Cellar/poetry/1.1.11/libexec/lib/python3.9/site-packages/poetry/installation/executor.py:632 in _download_link
628│ raise RuntimeError(
629│ "Invalid hashes ({}) for {} using archive {}. Expected one of {}.".format(
630│ ", ".join(sorted(archive_hashes)),
631│ package,
→ 632│ archive.name,
633│ ", ".join(sorted(hashes)),
634│ )
635│ )
636│
I guess this could be an issue with Poetry, but it doesn't seem like it. Seems like click is missing some information in the package that Poetry expects? Install with pip works fine.
Replicate
Install Poetry (or simply, brew install poetry on macOS if you have Homebrew).
In a virtual environment, run poetry add click
Expected Behaviour
Click should be installed without issues.
Environment: macOS
Python version: 3.9
Click version: 8.0.3
The text was updated successfully, but these errors were encountered:
This sounds like an issue with Poetry. Please report it to them.
I know nothing about how Poetry works or why archive might not have name in its internals. If it is indeed an issue with Click, I need precise instructions on what needs to be changed.
Outline
When trying to install
click
withpoetry
it fails with the following error:I guess this could be an issue with Poetry, but it doesn't seem like it. Seems like
click
is missing some information in the package that Poetry expects? Install withpip
works fine.Replicate
brew install poetry
on macOS if you have Homebrew).poetry add click
Expected Behaviour
Click should be installed without issues.
Environment: macOS
The text was updated successfully, but these errors were encountered: