Skip to content

[bug] ktx setup fails to install local embeddings, claims project has "malformed dependency groups" #355

Closed

Description

@anentropic

What's the bug?

◇  ktx needs to install the local embeddings Python runtime. This downloads a pinned, checksum-verified uv build, Python,
│  and dependencies. Continue?
│  Yes
│
▲  ktx Python runtime install failed: Python runtime install failed.
error: Project `superservice-analytics` has malformed dependency groups
  Caused by: Failed to parse entry in group `dbt`: `-e file:///${PROJECT_ROOT}/dbt`
  Caused by: Expected package name starting with an alphanumeric character, found `-`
-e file:///${PROJECT_ROOT}/dbt
^

this is not a problem with my pyproject.toml, it's a ktx failure to parse editable package dep format

I'm using PDM for this project

How can we reproduce it?

[dependency-groups]
dbt = [
    "-e file:///${PROJECT_ROOT}/dbt",
]

KTX version

0.16.0

Which area?

CLI / setup

Anything else?

No response

Activity

  1. added
    bug
    on Jul 15, 2026
  2. added
    needs-triage
    on Jul 15, 2026
  3. anentropic commented on Jul 15, 2026

    @anentropic
    Author

    It looks like this is because you want uv to parse my root pyproject.toml but this syntax is a PDM extension over PEP-735 and uv doesn't like it

    it's a reasonable incompatibility but needs documenting

    I'll explore workarounds on my side

  4. anentropic commented on Jul 15, 2026

    @anentropic
    Author

    Fixed on my side by using:

    [tool.pdm.dev-dependencies]
    dbt = [
        "-e file:///${PROJECT_ROOT}/dbt",
    ]

    ...which is arguably more correct

  5. anentropic commented on Jul 15, 2026

    @anentropic
    Author

    basically my fault

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions