DavHau / mach-nix

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

flake issue - py renku # ERROR: Missing Cargo.lock from src. Expected to find it at: /build/cryptography-3.2/src/rust//Cargo.lock #253

Closed InLaw closed 3 years ago

InLaw commented 3 years ago

no issues in normal setup


nix-shell -p nixFlakes --run "nix run github:davhau/mach-nix#with.ipython.renku --show-trace "

these paths will be fetched (2.77 MiB download, 13.17 MiB unpacked):
  /nix/store/0yj6m6ka1f0n9l5fxvxw3vh1n7qyncc7-nlohmann_json-3.7.3
  /nix/store/bgfdpp10zndj2hv4zqrn43v1fnfk25yk-nix-2.4pre20201201_5a6ddb3-dev
  /nix/store/bic8rrb27szvvps6h822zmmz61i1pifq-nix-2.4pre20201201_5a6ddb3
  /nix/store/r5j9y6s51vvf74sm0lz0829r5ll499a6-nix-2.4pre20201201_5a6ddb3-man
copying path '/nix/store/r5j9y6s51vvf74sm0lz0829r5ll499a6-nix-2.4pre20201201_5a6ddb3-man' from 'https://cache.nixos.org'...
copying path '/nix/store/0yj6m6ka1f0n9l5fxvxw3vh1n7qyncc7-nlohmann_json-3.7.3' from 'https://cache.nixos.org'...
copying path '/nix/store/bic8rrb27szvvps6h822zmmz61i1pifq-nix-2.4pre20201201_5a6ddb3' from 'https://cache.nixos.org'...
copying path '/nix/store/bgfdpp10zndj2hv4zqrn43v1fnfk25yk-nix-2.4pre20201201_5a6ddb3-dev' from 'https://cache.nixos.org'...
warning: --- Large path -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix
dumping very large path (> 256 MiB); this may run out of memory

builder for '/nix/store/cqdvvcisxl48rdya6mz6p10anks9y8hg-python3.8-cryptography-3.2.drv' failed with exit code 1; last 10 log lines:
  Executing cargoSetupPostUnpackHook
  unpacking source archive /nix/store/argqpj1iw2lrm0ckqr5s013rhir5b8fc-cryptography-3.4.6-vendor.tar.gz
  Finished cargoSetupPostUnpackHook
  setting SOURCE_DATE_EPOCH to timestamp 1603678278 of file cryptography-3.2/setup.cfg
  patching sources
  Executing cargoSetupPostPatchHook
  Validating consistency between /build/cryptography-3.2/src/rust//Cargo.lock and /build/cryptography-3.4.6-vendor.tar.gz/Cargo.lock
  /nix/store/49gllxpk2f3dcyx4q8cgj0w39p10s209-diffutils-3.7/bin/diff: /build/cryptography-3.2/src/rust//Cargo.lock: No such file or directory
  ERROR: Missing Cargo.lock from src. Expected to find it at: /build/cryptography-3.2/src/rust//Cargo.lock
  Hint: You can use the cargoPatches attribute to add a Cargo.lock manually to the build.
cannot build derivation '/nix/store/47gi3s2wdmrsddj2m3mpw6fx24gg059c-python3-3.8.8-env.drv': 1 dependencies couldn't be built
error: --- Error --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix
build of '/nix/store/47gi3s2wdmrsddj2m3mpw6fx24gg059c-python3-3.8.8-env.drv' failed

equal error e.g. for nix-shell -p nixFlakes --run "nix run mach-nix#gen.python.pyresparser --show-trace "

builder for '/nix/store/kqn4slcl3hgzxl2cps8hhb57q7wv74dl-python3.8-cryptography-3.3.2.drv' failed with exit code 1; last 10 log lines:
  Executing cargoSetupPostUnpackHook
  unpacking source archive /nix/store/argqpj1iw2lrm0ckqr5s013rhir5b8fc-cryptography-3.4.6-vendor.tar.gz
  Finished cargoSetupPostUnpackHook
  setting SOURCE_DATE_EPOCH to timestamp 1612715997 of file cryptography-3.3.2/setup.cfg
  patching sources
  Executing cargoSetupPostPatchHook
  Validating consistency between /build/cryptography-3.3.2/src/rust//Cargo.lock and /build/cryptography-3.4.6-vendor.tar.gz/Cargo.lock
  /nix/store/49gllxpk2f3dcyx4q8cgj0w39p10s209-diffutils-3.7/bin/diff: /build/cryptography-3.3.2/src/rust//Cargo.lock: No such file or directory
  ERROR: Missing Cargo.lock from src. Expected to find it at: /build/cryptography-3.3.2/src/rust//Cargo.lock
  Hint: You can use the cargoPatches attribute to add a Cargo.lock manually to the build.
cannot build derivation '/nix/store/7p8s6hxpwg03z5nx4cwrshd9rxhkzrj5-python3-3.8.8-env.drv': 1 dependencies couldn't be built
error: --- Error --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix
build of '/nix/store/7p8s6hxpwg03z5nx4cwrshd9rxhkzrj5-python3-3.8.8-env.drv' failed
DavHau commented 3 years ago

fixed via c2812bebdbd24e30e3a80587c7195ff8399400f5