NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.38k stars 14.33k forks source link

Build failure: python312Packages.streamlit #323727

Open CrepeGoat opened 5 months ago

CrepeGoat commented 5 months ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. run nix-shell -p python312Packages.streamlit

Build log

error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'shell'
         whose name attribute is located at /nix/store/7nwh16qb7gczy4g3a69krlh7259g3zxd-nixpkgs/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'buildInputs' of derivation 'shell'

         at /nix/store/7nwh16qb7gczy4g3a69krlh7259g3zxd-nixpkgs/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:378:7:

          377|       depsHostHost                = elemAt (elemAt dependencies 1) 0;
          378|       buildInputs                 = elemAt (elemAt dependencies 1) 1;
             |       ^
          379|       depsTargetTarget            = elemAt (elemAt dependencies 2) 0;

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

       error: ipython-genutils-0.2.0 not supported for interpreter python3.12

Additional context

Running the same nix shell command with the prior version, python311Packages.streamlit, works as expected.

Notify maintainers

@natsukium @yrashk

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-darwin"`
 - host os: `Darwin 17.7.0, macOS 10.13.6`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.1`
 - channels(work): `"darwin"`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Add a :+1: reaction to issues you find important.

natsukium commented 5 months ago

This is not a streamlit problem but an ipython-genutils one. Fortunately, staging-next now includes a 3.12 compatible version, so it will reach unstable in less than a few weeks.

Masrkai commented 3 months ago

i am having the same problem here: error: ipython-genutils-0.2.0 not supported for interpreter python3.12

Even tho there is a ipython-genutils python 3.12 package according to nixos.org Metadata:

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.46, NixOS, 24.05 (Uakari), 24.05.3999.c42fcfbdfeae`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixos-24.05, unstable"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
alienzj commented 4 days ago

Same issue too.

error:
       … while calling the 'head' builtin

         at /nix/store/ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/lib/attrsets.nix:1575:11:

         1574|         || pred here (elemAt values 1) (head values) then
         1575|           head values
             |           ^
         1576|         else

       … while evaluating the attribute 'value'

         at /nix/store/ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/lib/modules.nix:809:9:

          808|     in warnDeprecation opt //
          809|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          810|         inherit (res.defsFinal') highestPrio;

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

       error: ipython-genutils-0.2.0 not supported for interpreter python3.12
 - system: `"x86_64-linux"`
 - host os: `Linux 6.11.8, NixOS, 24.05 (Uakari), 24.05.20241116.e8c38b7`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.8`
 - channels(root): `"nixos, nixos-hardware"`
 - nixpkgs: `/nix/store/ly4s3hw35dd1c2vsd694y2715pc1d2c1-source`