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

Failed to install getdaft[dashboard] #3886

Open
hongbo-miao opened this issue Mar 2, 2025 · 6 comments
Open

Failed to install getdaft[dashboard] #3886

hongbo-miao opened this issue Mar 2, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@hongbo-miao
Copy link

hongbo-miao commented Mar 2, 2025

Describe the bug

I saw

UserWarning: Unable to import Daft's dashboard featuresConsider re-installing Daft with the 'dashboard' feature installed, e.g.:pip install "getdaft[dashboard]"

many times. So I am curious what this dashboard provides. I cannot find any document about it.

Anyway, I want to give a try. However, I met issue installing getdaft[dashboard] using uv.

To Reproduce

pyproject.toml:

[project]
name = "my-project"
version = "1.0.0"
requires-python = "~=3.13.0"
dependencies = [
  "httpx==0.28.1",
  "getdaft[dashboard]==0.4.6",
]

[tool.uv]
package = false

uv sync gives me error

  × No solution found when resolving dependencies:
  ╰─▶ Because daft-dashboard was not found in the package registry and getdaft[dashboard]==0.4.6 depends on daft-dashboard, we can conclude that getdaft[dashboard]==0.4.6 cannot be used.
      And because your project depends on getdaft[dashboard]==0.4.6, we can conclude that your project's requirements are unsatisfiable.

Tried Python 3.13, 3.12, 3.11, all shows same error.

Seems it tries to install a library daft-dashboard which does not exist https://pypi.org/search/?q=daft-dashboard

Expected behavior

Expecting no error.

Component(s)

Other

Additional context

No response

@hongbo-miao hongbo-miao added bug Something isn't working needs triage labels Mar 2, 2025
@jaychia
Copy link
Contributor

jaychia commented Mar 2, 2025

Hi! Yes we have a dashboard in the works.

It's currently not yet usable except with a local dev install.

Are you seeing this on import of Daft? We shouldn't be exposing this I think.

@hongbo-miao
Copy link
Author

hongbo-miao commented Mar 2, 2025

1

To reproduce the warning

UserWarning: Unable to import Daft's dashboard featuresConsider re-installing Daft with the 'dashboard' feature installed, e.g.:pip install "getdaft[dashboard]"

pyproject.toml

[project]
name = "my-project"
version = "1.0.0"
requires-python = "~=3.13.0"
dependencies = [
  "httpx==0.28.1",
  "getdaft==0.4.6",
]

[tool.uv]
package = false

and run some code like

import logging

import daft
import ray

logger = logging.getLogger(__name__)


if __name__ == "__main__":
    logging.basicConfig(
        level=logging.INFO,
        format="%(asctime)s - %(levelname)s - %(message)s",
    )
    ray.init()
    df = daft.from_pydict(
        {
            "a": [3, 2, 5, 6, 1, 4],
            "b": [True, False, False, True, True, False],
        }
    )
    logger.info(f"{df.collect() = }")

2

To reproduce the error

  × No solution found when resolving dependencies:
  ╰─▶ Because daft-dashboard was not found in the package registry and getdaft[dashboard]==0.4.6 depends on daft-dashboard, we can conclude that getdaft[dashboard]==0.4.6 cannot be used.
      And because your project depends on getdaft[dashboard]==0.4.6, we can conclude that your project's requirements are unsatisfiable.

All you need is a file

pyproject.toml

[project]
name = "my-project"
version = "1.0.0"
requires-python = "~=3.13.0"
dependencies = [
  "httpx==0.28.1",
  "getdaft[dashboard]==0.4.6",
]

[tool.uv]
package = false

and run uv sync to reproduce the error.

@universalmind303
Copy link
Contributor

duplicate of #3876

@hongbo-miao
Copy link
Author

hongbo-miao commented Mar 2, 2025

Hi @universalmind303 I saw that before I create this ticket.
However, I do not think it is duplicate. That ticket is requesting to hide warning by default which I also want it be hidden by default.
This one is that I want to try this dashboard feature but failed to install.

@universalmind303
Copy link
Contributor

Oh got it Thanks for clarifying @hongbo-miao. Sorry for the misunderstanding!

@hongbo-miao
Copy link
Author

No worries ☺️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants