Skip to content

open-webui: python3.12-torch is marked as broken, refusing to evaluate. #379354

@MROvaiz

Description

@MROvaiz

Nixpkgs version

  • Unstable (25.05)

Describe the bug

Hi,
I have been tiring to setup open-webui for ollama.
i have updated nix with nix flake update.
with this rebuild is throwing error.

Steps to reproduce

add services.open-webui.enable=true;, this should start the service for open-webui.
with latest version, its throwing error: "is marked as broken, refusing to evaluate."

Expected behaviour

rebuild should be success and open-webui access in browser.

Screenshots

error:
       … while calling the 'head' builtin
         at /nix/store/hjb1rqv2mfs5ny47amj2gsc8xk05x5g6-source/lib/attrsets.nix:1574:11:
         1573|         || pred here (elemAt values 1) (head values) then
         1574|           head values
             |           ^
         1575|         elsewhile evaluating the attribute 'value'
         at /nix/store/hjb1rqv2mfs5ny47amj2gsc8xk05x5g6-source/lib/modules.nix:846:9:
          845|     in warnDeprecation opt //
          846|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          847|         inherit (res.defsFinal') highestPrio;while evaluating the option `system.build.toplevel':

       … while evaluating definitions from `/nix/store/hjb1rqv2mfs5ny47amj2gsc8xk05x5g6-source/nixos/modules/system/activation/top-level.nix':

       … while evaluating the option `warnings':

       … while evaluating definitions from `/nix/store/hjb1rqv2mfs5ny47amj2gsc8xk05x5g6-source/nixos/modules/system/boot/systemd.nix':

       … while evaluating the option `systemd.services.open-webui.serviceConfig':

       … while evaluating definitions from `/nix/store/hjb1rqv2mfs5ny47amj2gsc8xk05x5g6-source/nixos/modules/services/misc/open-webui.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: Packagepython3.12-torch-2.5.1in /nix/store/hjb1rqv2mfs5ny47amj2gsc8xk05x5g6-source/pkgs/development/python-modules/torch/default.nix:664 is marked as broken, refusing to evaluate.

       a) To temporarily allow broken packages, you can use an environment variable
          for a single invocation of the nix tools.

            $ export NIXPKGS_ALLOW_BROKEN=1

          Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake,
                then pass `--impure` in order to allow use of environment variables.

       b) For `nixos-rebuild` you can set
         { nixpkgs.config.allowBroken = true; }
       in configuration.nix to override this.

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
         { allowBroken = true; }
       to ~/.config/nixpkgs/config.nix.

Relevant log output

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.12.11, NixOS, 25.05 (Warbler), 25.05.20250201.3a22805
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.12
  • nixpkgs: /nix/store/hjb1rqv2mfs5ny47amj2gsc8xk05x5g6-source

Notify maintainers


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: pythonPython is a high-level, general-purpose programming language.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions