nixpkgs-unfree icon indicating copy to clipboard operation
nixpkgs-unfree copied to clipboard

numpy + scipy broken by default lapack / blas overrides

Open ryanswrt opened this issue 1 year ago • 2 comments

Describe the bug

nixpkgs-unfree saves me some hassles when importing pytorch in newer nixpkgs-unstable, as it has introduced an unfree dependency. However, somewhere along the line, numpy and scipy started picking up the blas overrides, causing them to fail to build as described here: https://github.com/NixOS/nixpkgs/issues/206866

To Reproduce

Steps to reproduce the behavior:

nix shell github:numtide/nixpkgs-unfree/nixos-unstable#python310Packages.numpy

Expected behavior

To be able to use numpy + scipy with nixpgkgs-unfree

Could we fix this by overriding the blas that gets passed to numpy scipy to be openblas instead?

ryanswrt avatar Jul 28 '23 06:07 ryanswrt

I confirmed if I compile nixpkgs with allowUnfree and cudaSupport without the blas overrides I can get numpy working. It would be great if I could use nixpkgs-unfree but at the moment this is breaking my diffusers repo.

collinarnett avatar Sep 11 '23 23:09 collinarnett

#27 should fix this since nixpkgs will now be unpatched.

zimbatm avatar Nov 20 '23 12:11 zimbatm