nix-stable-diffusion
nix-stable-diffusion copied to clipboard
Hash mismatch error
When trying to run nix run .#invokeai.amd -- --web --root_dir "path/to/dir"
I get error:
error: hash mismatch in fixed-output derivation '/nix/store/x61qnng9yshji0f8nddqvidrjf68dkkh-safetensors-0.3.1-vendor.tar.gz.drv':
specified: sha256-3SluST4muwNxgt+GQ6ZuZ62TfMr5ZYiYN9M0QyhmsWc=
got: sha256-jpFjZk5iNiLXbg2fAy08c5scruW9rW36NDAVzZEBQUE=
error: 1 dependencies of derivation '/nix/store/ak2fhwd3dvcx5h5smpz1lzgbjl6clk3g-python3.10-safetensors-0.3.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/nwgwwdrksh7dk7gwss8g3v9w27wia41d-invokeai-2.3.5.drv' failed to build
The same things happen with Automatic1111 webui.
Hi. Unfortunately, this is a problem with safetensors & rust|nix lock integration. Sometimes hash computed from Cargo.lock is environment-dependent. I'm not aware of the right way to fix it, so the only thing you can do is to fork this repo and set hash to value that is computed for your environment.
Thanks, it worked.