[Nix-dev] Error build python27Packages

Domen Kožar domen at dev.si
Sun Jan 18 17:28:45 CET 2015


Evaluating whole python packages is not possible as it doesn't check for
evaluation errors.

Maybe that could be changed with set functors?

On Sun, Jan 18, 2015 at 5:26 PM, Tinker Thaler <tinkerthaler at gmail.com>
wrote:

> I'm getting a error trying to nix-build the python27Packages
>
>     nix-build -A python27Packages
>
> The error I get is:
>
>     avro3k-1.7.7-SNAPSHOT not supported for interpreter python2.7
> (see more details below)
>
> Some questions:
>
> * Of course: what could be the problem and how can I solve it?
> * I tried debugging a bit but I haven't found yet how I would be able to
> inspect the value of a variable (e.g. I'd like to see the value of isPy3k)
>
> If I remove the disabled check:
>
>     #disabled = (!isPy3k);
>
> then it starts to build but obviously fails
>
> AssertionError: This requires Python 3
> builder for
> ‘/nix/store/g9f35hx3fg9a05d69w060117k19f2k9z-python2.7-avro3k-1.7.7-SNAPSHOT.drv’
> failed with exit code 1
> error: build of
> ‘/nix/store/g9f35hx3fg9a05d69w060117k19f2k9z-python2.7-avro3k-1.7.7-SNAPSHOT.drv’
> failed
>
> (and if I comment out the avro3k section I get a similar error afterwards
> on mutag)
>
> More details:
>
> Error without making any changes
>
> git clone git://github.com/NixOS/nixpkgs.git nixpkgs2
> $ nix-build -A python27Packages -v --show-trace
> evaluating file
> ‘/nix/store/5xk3w1b9np5s5r7y67bc32mrbnpd7gly-nix-1.8/share/nix/corepkgs/derivation.nix’
> evaluating file ‘/src/nixpkgs2/pkgs/top-level/all-packages.nix’
> evaluating file ‘/src/nixpkgs2/pkgs/stdenv/adapters.nix’
> evaluating file ‘/src/nixpkgs2/pkgs/build-support/trivial-builders.nix’
> evaluating file ‘/home/tinkerthaler/.nixpkgs/config.nix’
> evaluating file ‘/src/nixpkgs2/lib/default.nix’
> |   evaluating file ‘/src/nixpkgs2/lib/trivial.nix’
> |   evaluating file ‘/src/nixpkgs2/lib/lists.nix’
> |   evaluating file ‘/src/nixpkgs2/lib/strings.nix’
> |   evaluating file ‘/src/nixpkgs2/lib/strings-with-deps.nix’
> |   evaluating file ‘/src/nixpkgs2/lib/attrsets.nix’
> |   evaluating file ‘/src/nixpkgs2/lib/sources.nix’
> |   evaluating file ‘/src/nixpkgs2/lib/options.nix’
> |   evaluating file ‘/src/nixpkgs2/lib/types.nix’
> |   evaluating file ‘/src/nixpkgs2/lib/meta.nix’
> |   evaluating file ‘/src/nixpkgs2/lib/debug.nix’
> |   evaluating file ‘/src/nixpkgs2/lib/misc.nix’
> |   evaluating file ‘/src/nixpkgs2/lib/modules.nix’
> |   evaluating file ‘/src/nixpkgs2/lib/systems.nix’
> |   evaluating file ‘/src/nixpkgs2/lib/customisation.nix’
> evaluating file ‘/src/nixpkgs2/pkgs/stdenv/default.nix’
> evaluating file ‘/src/nixpkgs2/pkgs/stdenv/linux/default.nix’
> evaluating file ‘/src/nixpkgs2/pkgs/stdenv/generic/default.nix’
> evaluating file ‘/src/nixpkgs2/pkgs/top-level/python-packages.nix’
> evaluating file ‘/src/nixpkgs2/pkgs/servers/x11/xorg/default.nix’
> evaluating file
> ‘/src/nixpkgs2/pkgs/development/interpreters/python/2.7/default.nix’
> evaluating file ‘/src/nixpkgs2/pkgs/development/libraries/zlib/default.nix’
> evaluating file
> ‘/src/nixpkgs2/pkgs/top-level/python-packages-generated.nix’
> evaluating file
> ‘/src/nixpkgs2/pkgs/development/python-modules/generic/default.nix’
> error: while evaluating anonymous function at
> "/src/nixpkgs2/lib/meta.nix":42:54, called from
> "/src/nixpkgs2/lib/attrsets.nix":135:52:
> while evaluating ‘isDerivation’ at
> "/src/nixpkgs2/lib/attrsets.nix":222:18, called from
> "/src/nixpkgs2/lib/meta.nix":42:62:
> while evaluating the attribute ‘"${attr}"’ at
> "/src/nixpkgs2/pkgs/top-level/python-packages.nix":603:3:
> while evaluating ‘lowPrio’ at "/src/nixpkgs2/lib/meta.nix":48:13, called
> from "/src/nixpkgs2/pkgs/top-level/python-packages.nix":603:12:
> while evaluating ‘addMetaAttrs’ at "/src/nixpkgs2/lib/meta.nix":16:28,
> called from "/src/nixpkgs2/lib/meta.nix":48:18:
> while evaluating ‘makeOverridable’ at
> "/src/nixpkgs2/lib/customisation.nix":56:24, called from
> "/src/nixpkgs2/pkgs/top-level/python-packages.nix":603:26:
> while evaluating anonymous function at
> "/src/nixpkgs2/pkgs/development/python-modules/generic/default.nix":8:1,
> called from "/src/nixpkgs2/lib/customisation.nix":58:12:
> avro3k-1.7.7-SNAPSHOT not supported for interpreter python2.7
>
> If useful
>
> $ nix-env -q --installed
> cabal2nix-1.72
> emacs-24.4
> firefox-34.0.5
> git-2.1.4
> haskell-xmonad-contrib-ghc7.8.4-0.11.3-shared
> haskell-xmonad-extras-ghc7.8.4-0.12-shared
> haskell-xmonad-ghc7.8.4-0.11-shared
> mtools-4.0.18
> nix-prefetch-scripts
> screen-4.2.1
> slim-1.3.6
> sublimetext3-3065
> syslinux-6.03
> unetbootin-608
> vim-7.4.131
> wmctrl-1.07
> xwininfo-1.1.3
>
> $ echo $NIX_PATH
>
> /nix/var/nix/profiles/per-user/root/channels/nixos:nixpkgs=/etc/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix
>
> $ ll /etc/nixos/nixpkgs
> lrwxrwxrwx 1 root root 52 Jan  2 22:56 /etc/nixos/nixpkgs ->
> /nix/var/nix/profiles/per-user/root/channels/nixpkgs
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150118/c8700db0/attachment-0001.html 


More information about the nix-dev mailing list