devbox
devbox copied to clipboard
Cannot find flake in the flake registries when instaling python311Packages.torch-bin
What happened?
When I try to install python311Packages.torch-bin, python311Packages.torchvision-bin or python311Packages.torchaudio-bi
I get the error:
error: cannot find flake 'flake:nixpkgs/3f316d2a50699a78afe5e77ca486ad553169061e' in the flake registries
Steps to reproduce
- devbox shell
- devbox add python311Packages.torch-bin@latest
Command
add
devbox.json
{
"packages": ["[email protected]", "python311Packages.pip@latest", "zlib@latest"],
"shell": {
"init_hook": [
". $VENV_DIR/bin/activate",
"pip install -r requirements.txt"
],
"scripts": {
"test": ["echo \"Error: no test specified\" && exit 1"]
}
}
}
Devbox version
0.8.2
Nix version
nix (Nix) 2.18.1
What system does this bug occur on?
Linux (x86-64)
Debug logs
Info: Adding package "python311Packages.torch-bin@latest" to devbox.json
Ensuring nixpkgs registry is downloaded.
error: cannot find flake 'flake:nixpkgs/3f316d2a50699a78afe5e77ca486ad553169061e' in the flake registries
Ensuring nixpkgs registry is downloaded: Fail
Error: There was an error installing nix packages
source: Command: /run/current-system/sw/bin/nix flake prefetch nixpkgs/3f316d2a50699a78afe5e77ca486ad553169061e --extra-experimental-features ca-derivations --option experimental-features nix-command flakes fetch-closure: exit status 1
Error: There was an internal error. Run with DEVBOX_DEBUG=1 for a detailed error message, and consider reporting it at https://github.com/jetpack-io/devbox/issues
(.venv) (devbox) mmayla@nixos:/Workspace/my-project/ > DEVBOX_DEBUG=1 devbox add python311Packages.torch-bin@latest
2024/05/27 23:08:06 findProjectDir: path is
2024/05/27 23:08:06 finding devbox.json in dir: /Workspace/my-project/
2024/05/27 23:08:06 findProjectDir: path is
2024/05/27 23:08:06 finding devbox.json in dir: /Workspace/my-project/
2024/05/27 23:08:06 findProjectDir: path is
2024/05/27 23:08:06 finding devbox.json in dir: /Workspace/my-project/
Info: Adding package "python311Packages.torch-bin@latest" to devbox.json
2024/05/27 23:08:06 Creating files for package "[email protected]" create files
2024/05/27 23:08:06 Creating files for package "python311Packages.pip@latest" create files
2024/05/27 23:08:06 Creating file "/Workspace/my-project/.devbox/virtenv/python311Packages.pip/bin/venvShellHook.sh" from contentPath: "pip/venvShellHook.sh"
Ensuring nixpkgs registry is downloaded.
error: cannot find flake 'flake:nixpkgs/3f316d2a50699a78afe5e77ca486ad553169061e' in the flake registries
Ensuring nixpkgs registry is downloaded: Fail
Error: There was an error installing nix packages
source: Command: /run/current-system/sw/bin/nix flake prefetch nixpkgs/3f316d2a50699a78afe5e77ca486ad553169061e --extra-experimental-features ca-derivations --option experimental-features nix-command flakes fetch-closure: exit status 1
2024/05/27 23:08:06 Command stderr:
2024/05/27 23:08:06
ExecutionID:5a77d1ec1aa448e49d5d4491bc2343b5
<nil>
2024/05/27 23:08:06 findProjectDir: path is
2024/05/27 23:08:06 finding devbox.json in dir: /Workspace/my-project/