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

uv incorrectly (?) installs dbt-clickhouse #9693

Closed
ivanychev opened this issue Dec 6, 2024 · 4 comments · Fixed by #9705
Closed

uv incorrectly (?) installs dbt-clickhouse #9693

ivanychev opened this issue Dec 6, 2024 · 4 comments · Fixed by #9705
Assignees
Labels
bug Something isn't working help wanted Contribution especially encouraged

Comments

@ivanychev
Copy link

When installing dbt-core and dbt-clickhouse, dbt can't see ClickHouse plugin

  • Platform: M2 Pro, macOS 15.1.1
  • uv version: 0.5.6

Steps to reproduce

pyproject.toml:

[project]
name = "dbt-clickhouse"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = "==3.11.9"
dependencies = [
    "dbt-clickhouse==1.8.5",
    "dbt-core==1.8.9"
]
uv lock && uv sync
uv run dbt --version

outputs

Core:
  - installed: 1.8.9
  - latest:    1.8.9 - Up to date!

Plugins:


Expected behavior

Using pyenv:

pyenv shell 3.11.9
python -m venv venv
source venv/bin/activate
pip install dbt-core==1.8.9 dbt-clickhouse==1.8.5
dbt --version

outputs

Core:
  - installed: 1.8.9
  - latest:    1.8.9 - Up to date!

Plugins:
  - clickhouse: 1.8.5 - Up to date!   # <<<<<<<<<<<<<<<<
@charliermarsh
Copy link
Member

It's because your project is called dbt-clickhouse.

@charliermarsh
Copy link
Member

I actually would've expected uv lock to fail, since you're asking for both dbt-clickhouse versions 0.1.0 and 1.8.5.

@charliermarsh charliermarsh added the bug Something isn't working label Dec 6, 2024
@charliermarsh
Copy link
Member

You need to rename your project not to collide with the dependency, but this resolution should fail rather than succeed.

@charliermarsh charliermarsh added the help wanted Contribution especially encouraged label Dec 6, 2024
@charliermarsh charliermarsh self-assigned this Dec 7, 2024
@ivanychev
Copy link
Author

Hey @charliermarsh ! Thanks, that's indeed my mistake. I think it would be great for uv to fail in this situation

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

Successfully merging a pull request may close this issue.

2 participants