jetify-com / devbox

Instant, easy, and predictable development environments
https://www.jetify.com/devbox/
Apache License 2.0
8.82k stars 207 forks source link

Error installing python packages using `uv` #2411

Open AlejandroGomezFrieiro opened 1 week ago

AlejandroGomezFrieiro commented 1 week ago

What happened?

When settings up devbox shell, setting up uv as a package to use as an installer, and then trying to use it to install numpy (or any other package) it complains with

error: Failed to install: numpy-2.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (numpy==2.1.3)
  Caused by: failed to create directory `/nix/store/m85llqyd79hjm4cbgx8hds2rarbslc1s-python3-3.11.2/lib/python3.11/site-packages/numpy`
  Caused by: Permission denied (os error 13)

Steps to reproduce

  1. Setup a python devbox with uv
  2. devbox shell
  3. uv pip install numpy

Command

No response

devbox.json

{
    "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.6/.schema/devbox.schema.json",
      "packages": [
        "python@3.11.2",
        "uv@latest",
        "git@latest"
      ],

    "shell": {
    "init_hook": [
      "source $VENV_DIR/bin/activate",
    ],
      "scripts": {
        "test": [
          "echo \"Error: no test specified\" && exit 1"
        ]
      }
    }
  }

Devbox version

0.13.6

Nix version

nix (Nix) 2.24.7

What system does this bug occur on?

Linux (x86-64)

Debug logs

No response