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

Can not install Dask package #7768

Closed
4 tasks done
dbalabka opened this issue Apr 5, 2023 · 3 comments
Closed
4 tasks done

Can not install Dask package #7768

dbalabka opened this issue Apr 5, 2023 · 3 comments
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@dbalabka
Copy link

dbalabka commented Apr 5, 2023

  • Poetry version: >=1.4.0
  • Python version: 3.8
  • OS version and name: Ubuntu 20.04.5 LTS
  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

poetry init
poetry add dask

Leading to the following error:

❯ poetry add dask
Using version ^2023.3.2 for dask

Updating dependencies
Resolving dependencies... (0.0s)

  AssertionError



  at ~/.local/pipx/venvs/poetry/lib/python3.8/site-packages/poetry/mixology/incompatibility.py:113 in __str__
      109│         )
      110│
      111│     def __str__(self) -> str:
      112│         if isinstance(self._cause, DependencyCause):
    → 113│             assert len(self._terms) == 2
      114│
      115│             depender = self._terms[0]
      116│             dependee = self._terms[1]
      117│             assert depender.is_positive()

@dbalabka dbalabka added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Apr 5, 2023
@dimbleby
Copy link
Contributor

dimbleby commented Apr 5, 2023

you have not provided your pyproject.toml, and you have not searched for duplicates

please close

@dbalabka
Copy link
Author

dbalabka commented Apr 8, 2023

you have not searched for duplicates

@dimbleby, I searched the duplicates but didn't find anything useful. Still, taking into account your confidence that I didn't search enough, I repeated the attempt.

I found the issue is related to my problem:
#7501

The problem is that I'm using the same name as the project "dask" like the required project:

[tool.poetry]
name = "dask"
version = "0.1.0"
description = ""
authors = ["Dmitry Balabka <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.8"


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

It would be great if poetry reported such an issue properly, instead of an assertion error. I belive that it will save others' time.

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
kind/bug Something isn't working as expected status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants