Skip to content

UV Python project is broken: No interpreter found for path #2575

Closed
@mskonovalov

Description

@mskonovalov

What happened?

Works just fine in Devbox 0.13.6
But broken in 0.14.0

Info: Ensuring packages are installed.
✓ Computed the Devbox environment.
error: No interpreter found for path `.../.venv/bin/python` in managed installations or system path
Error: error running script "it-tests" in Devbox: exit status 2

The issue is I have a venv in the subfolder, but it always tries to look in the root of the project :(

Will try to prepare the reproduction example.

Likely related to #2478
#2411

cc @yemaney

Steps to reproduce

  1. Create a project with python venv inside subfolder
  2. try to run any command via UV
  3. see the error

Command

run

devbox.json

{
  "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.7/.schema/devbox.schema.json",
  "packages": [
    "[email protected]",
    "[email protected]"
  ],
  "shell": {
    "init_hook": [
      "alias cdt='cd src/packages/toolkit'",
      ". $VENV_DIR/bin/activate"
    ],
    "scripts": {
      "unit-tests": ["cdt", "uv run pytest -m unit \"$@\""],
      "it-tests": ["cdt", "uv run pytest -m integration \"$@\""]
    }
  },
  "env": {
    "VENV_DIR": "./src/packages/toolkit/.venv",
  }
}

Devbox version

0.14.0

Nix version

2.27.1

What system does this bug occur on?

macOS (Apple Silicon)

Debug logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageIssue needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions