Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install black==20.8b1 using pypiDataRev from 2021-03-06T08:13:08Z #250

Closed
rolfschr opened this issue Mar 6, 2021 · 3 comments
Closed

Comments

@rolfschr
Copy link

rolfschr commented Mar 6, 2021

Hi,

the following derivation can't be built:

let
  mach-nix = import (builtins.fetchGit {
    url = "https://github.com/DavHau/mach-nix/";
    ref = "refs/tags/3.1.1";
  }) {
    python = "python38";

    pypiDataRev =
      "499750266bb4b2840cbe856c2cc0e3297685e362"; # 2021-03-06T08:13:08Z
    pypiDataSha256 = "188g24k8pk4lgqybywimkvwjwh8014v6l2mrkvzv309882i9p5gc";
  };
in mach-nix.mkPython {
  requirements = ''
    black==20.8b1
  '';
}

Result is

$ nix --print-build-logs build
...
python3.8-black> Finished executing pipInstallPhase                                                                                                                                                                
python3.8-black> post-installation fixup                                                                                                                                                                           
python3.8-black> shrinking RPATHs of ELF executables and libraries in /nix/store/jkrc58h8nkhxnaj7w267vqdwf4cl0izs-python3.8-black-20.8b1                                                                           
python3.8-black> strip is /nix/store/p3kn26g5nhmx6spn37ar3mn0xjbzks3g-binutils-2.31.1/bin/strip                                                                                                                    
python3.8-black> stripping (with command strip and flags -S) in /nix/store/jkrc58h8nkhxnaj7w267vqdwf4cl0izs-python3.8-black-20.8b1/lib  /nix/store/jkrc58h8nkhxnaj7w267vqdwf4cl0izs-python3.8-black-20.8b1/bin     
python3.8-black> patching script interpreter paths in /nix/store/jkrc58h8nkhxnaj7w267vqdwf4cl0izs-python3.8-black-20.8b1                                                                                           
python3.8-black> checking for references to /build/ in /nix/store/jkrc58h8nkhxnaj7w267vqdwf4cl0izs-python3.8-black-20.8b1...
python3.8-black> Rewriting #!/nix/store/5aq2ix4vmk8bxs20ddqi48vc4bnk8zr5-python3-3.8.6/bin/python3.8 to #!/nix/store/5aq2ix4vmk8bxs20ddqi48vc4bnk8zr5-python3-3.8.6
python3.8-black> wrapping `/nix/store/jkrc58h8nkhxnaj7w267vqdwf4cl0izs-python3.8-black-20.8b1/bin/black'...
python3.8-black> Rewriting #!/nix/store/5aq2ix4vmk8bxs20ddqi48vc4bnk8zr5-python3-3.8.6/bin/python3.8 to #!/nix/store/5aq2ix4vmk8bxs20ddqi48vc4bnk8zr5-python3-3.8.6
python3.8-black> wrapping `/nix/store/jkrc58h8nkhxnaj7w267vqdwf4cl0izs-python3.8-black-20.8b1/bin/blackd'...
python3.8-black> Rewriting #!/nix/store/5aq2ix4vmk8bxs20ddqi48vc4bnk8zr5-python3-3.8.6/bin/python3.8 to #!/nix/store/5aq2ix4vmk8bxs20ddqi48vc4bnk8zr5-python3-3.8.6
python3.8-black> wrapping `/nix/store/jkrc58h8nkhxnaj7w267vqdwf4cl0izs-python3.8-black-20.8b1/bin/black-primer'...
python3.8-black> Executing pythonRemoveTestsDir
python3.8-black> Finished executing pythonRemoveTestsDir
python3.8-black> pythonCatchConflictsPhase
python3.8-black> Found duplicated packages in closure for dependency 'setuptools-scm':
python3.8-black> setuptools-scm 4.1.2 (/nix/store/mzxxiwvr1a65h3q5i2b2khbn7kv60762-python3.8-setuptools_scm-4.1.2/lib/python3.8/site-packages)
python3.8-black> setuptools-scm 5.0.2 (/nix/store/ga9ya0mnkm0gxcjqzflpyi5z0ig6l737-python3.8-setuptools-scm-5.0.2/lib/python3.8/site-packages)
python3.8-black> Package duplicates found in closure, see above. Usually this happens if two packages depend on different version of the same dependency.
builder for '/nix/store/wc93r13n88v8mba04fvlkn73n587h8jm-python3.8-black-20.8b1.drv' failed with exit code 1; last 10 log lines:
  Rewriting #!/nix/store/5aq2ix4vmk8bxs20ddqi48vc4bnk8zr5-python3-3.8.6/bin/python3.8 to #!/nix/store/5aq2ix4vmk8bxs20ddqi48vc4bnk8zr5-python3-3.8.6
  wrapping `/nix/store/jkrc58h8nkhxnaj7w267vqdwf4cl0izs-python3.8-black-20.8b1/bin/black-primer'...
  Executing pythonRemoveTestsDir
  Finished executing pythonRemoveTestsDir
  pythonCatchConflictsPhase
  Found duplicated packages in closure for dependency 'setuptools-scm': 
    setuptools-scm 4.1.2 (/nix/store/mzxxiwvr1a65h3q5i2b2khbn7kv60762-python3.8-setuptools_scm-4.1.2/lib/python3.8/site-packages)
    setuptools-scm 5.0.2 (/nix/store/ga9ya0mnkm0gxcjqzflpyi5z0ig6l737-python3.8-setuptools-scm-5.0.2/lib/python3.8/site-packages)
                                                    
  Package duplicates found in closure, see above. Usually this happens if two packages depend on different version of the same dependency.
cannot build derivation '/nix/store/lxqidnch8fv31bz1bcz5128hsglvh7fv-python3-3.8.6-env.drv': 1 dependencies couldn't be built
error: --- Error ------------------------------------------------------------------------------------ nix
build of '/nix/store/lxqidnch8fv31bz1bcz5128hsglvh7fv-python3-3.8.6-env.drv' failed

I somehow feel this is not the 'fault' of mach-nix, though. Maybe this gets fixed by a newer pypi-deps-db version?

@bjornfor
Copy link
Contributor

bjornfor commented Mar 7, 2021

@rolfschr: I think that issue is fixed on master, ref. #208.

@InLaw
Copy link
Contributor

InLaw commented Mar 8, 2021

psf/black#1847

@rolfschr
Copy link
Author

rolfschr commented Mar 9, 2021

@bjornfor Yes, thanks. Using a newer version (>3.1.1) worked.

@rolfschr rolfschr closed this as completed Mar 9, 2021
rolfschr added a commit to ngi-nix/vulnerablecode that referenced this issue Mar 9, 2021
Installing black==20.8b1 caused mach-nix to abort
(DavHau/mach-nix#250). Using a newer version
of mach-nix solves this specific issue.
rolfschr added a commit to ngi-nix/vulnerablecode that referenced this issue Mar 9, 2021
Installing black==20.8b1 caused mach-nix to abort
(DavHau/mach-nix#250). Using a newer version
of mach-nix solves this specific issue.

Signed-off-by: Rolf Schröder <rolf.schr@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants