DavHau / mach-nix

Create highly reproducible python environments
MIT License
863 stars 106 forks source link

network-pipeline: infinite recursion encountered #206

Open InLaw opened 3 years ago

InLaw commented 3 years ago

nix-shell -p nixFlakes --run "nix run github:davhau/mach-nix#with.ipython.network-pipeline "



warning: --- Large path -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix
dumping very large path (> 256 MiB); this may run out of memory

error: --- EvalError ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix
at: (109:5) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/pkgs/development/interpreters/python/mk-python-derivation.nix

   108| 
   109|     name = namePrefix + name;
      |     ^
   110| 

infinite recursion encountered

--------------------------------------------------------------------------------------------------------------------------------- show-trace ---------------------------------------------------------------------------------------------------------------------------------
trace: while evaluating the attribute 'nativeBuildInputs' of the derivation 'python3.8-pip-20.2.4'
at: (109:5) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/pkgs/development/interpreters/python/mk-python-derivation.nix

   108| 
   109|     name = namePrefix + name;
      |     ^
   110| 

trace: while evaluating the attribute 'outPath'
at: (164:7) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/lib/customisation.nix

   163|       drvPath = assert condition; drv.drvPath;
   164|       outPath = assert condition; drv.outPath;
      |       ^
   165|     };

trace: while evaluating anonymous lambda
at: (18:10) in file: /nix/store/z1m85f1cvd4yxhfb3jk7qqv0zk2kgwgs-mach_nix_file/share/mach_nix_file.nix

    17|   replace_deps = oldAttrs: inputs_type: self:
    18|     map (pypkg:
      |          ^
    19|       let

trace: from call site
trace: while evaluating anonymous lambda
at: (134:17) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/pkgs/stdenv/generic/make-derivation.nix

   133|           (map (drv: drv.__spliced.buildBuild or drv) depsBuildBuild)
   134|           (map (drv: drv.nativeDrv or drv) nativeBuildInputs
      |                 ^
   135|              ++ lib.optional separateDebugInfo' ../../build-support/setup-hooks/separate-debug-info.sh

trace: from call site
trace: while evaluating 'getOutput'
at: (464:23) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/lib/attrsets.nix

   463|   */
   464|   getOutput = output: pkg:
      |                       ^
   465|     if pkg.outputUnspecified or false

trace: from call site
trace: while evaluating the attribute 'nativeBuildInputs' of the derivation 'python3.8-setuptools-47.3.1'
at: (109:5) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/pkgs/development/interpreters/python/mk-python-derivation.nix

   108| 
   109|     name = namePrefix + name;
      |     ^
   110| 

trace: while evaluating the attribute 'out.outPath'
at: (156:13) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/lib/customisation.nix

   155|             drvPath = assert condition; drv.${outputName}.drvPath;
   156|             outPath = assert condition; drv.${outputName}.outPath;
      |             ^
   157|           };

trace: while evaluating the attribute 'nativeBuildInputs' of the derivation 'python3.8-parso-0.7.1'
at: (109:5) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/pkgs/development/interpreters/python/mk-python-derivation.nix

   108| 
   109|     name = namePrefix + name;
      |     ^
   110| 

trace: while evaluating the attribute 'out.outPath'
at: (156:13) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/lib/customisation.nix

   155|             drvPath = assert condition; drv.${outputName}.drvPath;
   156|             outPath = assert condition; drv.${outputName}.outPath;
      |             ^
   157|           };

trace: while evaluating anonymous lambda
at: (152:16) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/lib/lists.nix

   151|     # Element to remove from the list
   152|     e: filter (x: x != e);
      |                ^
   153| 

trace: from call site
trace: while evaluating 'unique'
at: (643:12) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/lib/lists.nix

   642|    */
   643|   unique = list:
      |            ^
   644|     if list == [] then

trace: from call site
at: (649:17) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/lib/lists.nix

   648|         x = head list;
   649|       in [x] ++ unique (remove x list);
      |                 ^
   650| 

trace: while evaluating 'unique'
at: (643:12) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/lib/lists.nix

   642|    */
   643|   unique = list:
      |            ^
   644|     if list == [] then

trace: from call site
at: (63:6) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/pkgs/top-level/python-packages.nix

    62|     modules = filter hasPythonModule drvs;
    63|   in unique ([python] ++ modules ++ concatLists (catAttrs "requiredPythonModules" modules));
      |      ^
    64| 

trace: while evaluating 'requiredPythonModules'
at: (61:27) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/pkgs/top-level/python-packages.nix

    60|   # Get list of required Python modules given a list of derivations.
    61|   requiredPythonModules = drvs: let
      |                           ^
    62|     modules = filter hasPythonModule drvs;

trace: from call site
at: (79:33) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/pkgs/top-level/python-packages.nix

    78|         pythonPath = [ ]; # Deprecated, for compatibility.
    79|         requiredPythonModules = requiredPythonModules drv.propagatedBuildInputs;
      |                                 ^
    80|       };

trace: while evaluating 'unique'
at: (643:12) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/lib/lists.nix

   642|    */
   643|   unique = list:
      |            ^
   644|     if list == [] then

trace: from call site
at: (63:6) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/pkgs/top-level/python-packages.nix

    62|     modules = filter hasPythonModule drvs;
    63|   in unique ([python] ++ modules ++ concatLists (catAttrs "requiredPythonModules" modules));
      |      ^
    64| 

trace: while evaluating 'requiredPythonModules'
at: (61:27) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/pkgs/top-level/python-packages.nix

    60|   # Get list of required Python modules given a list of derivations.
    61|   requiredPythonModules = drvs: let
      |                           ^
    62|     modules = filter hasPythonModule drvs;

trace: from call site
at: (79:33) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/pkgs/top-level/python-packages.nix

    78|         pythonPath = [ ]; # Deprecated, for compatibility.
    79|         requiredPythonModules = requiredPythonModules drv.propagatedBuildInputs;
      |                                 ^
    80|       };

trace: while evaluating 'unique'
at: (643:12) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/lib/lists.nix

   642|    */
   643|   unique = list:
      |            ^
   644|     if list == [] then

trace: from call site
at: (63:6) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/pkgs/top-level/python-packages.nix

    62|     modules = filter hasPythonModule drvs;
    63|   in unique ([python] ++ modules ++ concatLists (catAttrs "requiredPythonModules" modules));
      |      ^
    64| 

trace: while evaluating 'requiredPythonModules'
at: (61:27) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/pkgs/top-level/python-packages.nix

    60|   # Get list of required Python modules given a list of derivations.
    61|   requiredPythonModules = drvs: let
      |                           ^
    62|     modules = filter hasPythonModule drvs;

trace: from call site
at: (15:13) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/pkgs/development/interpreters/python/wrapper.nix

    14|   env = let
    15|     paths = requiredPythonModules (extraLibs ++ [ python ] ) ;
      |             ^
    16|     pythonPath = "${placeholder "out"}/${python.sitePackages}";

trace: while evaluating the attribute 'passAsFile' of the derivation 'python3-3.8.6-env'
at: (7:7) in file: /nix/store/kcv8hh2nrrpqm6d04rvw5dccrd5fdrhr-source/pkgs/build-support/trivial-builders.nix

     6|     stdenv.mkDerivation ({
     7|       name = lib.strings.sanitizeDerivationName name;
      |       ^
     8|       inherit buildCommand;
InLaw commented 3 years ago

currently on master:

nix-shell -p nixFlakes --run "nix run github:davhau/mach-nix#gen.python.network-pipeline "

warning: unknown setting 'experimental-features'
warning: --- Large path --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix
dumping very large path (> 256 MiB); this may run out of memory
warning: unknown setting 'experimental-features'
warning: unknown setting 'experimental-features'
trace: 
applying fix 'no-rust-build' (nativeBuildInputs) for cryptography:3.3.2

warning: unknown setting 'experimental-features'
builder for '/nix/store/wczfw15hlvxc7k0h828k1nzgm1jprvgj-python3.8-unittest2-1.1.0.drv' failed with exit code 1; last 10 log lines:
  configuring
  no configure script, doing nothing
  building
  no Makefile, doing nothing
  installing
  Executing pipInstallPhase
  /build/dist /build
  Processing ./unittest2-1.1.0-py2.py3-none-any.whl
  ERROR: Could not find a version that satisfies the requirement argparse (from unittest2)
  ERROR: No matching distribution found for argparse
cannot build derivation '/nix/store/6flic5r8s8p3jf7np22zvbwfxpp9j38k-python3-3.8.8-env.drv': 1 dependencies couldn't be built
error: --- Error ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix
build of '/nix/store/6flic5r8s8p3jf7np22zvbwfxpp9j38k-python3-3.8.8-env.drv' failed