Created
May 21, 2024 00:14
-
-
Save tastycode/fe7031620a3dc9e41a99659249775a03 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Resolved https://github.com/vllm-project/vllm.git to commit c3af44722cff56bba5fc912c8e16d9de02dfb532 | |
Installing build dependencies ... done | |
Checking if build backend supports build_editable ... done | |
Getting requirements to build editable ... error | |
error: subprocess-exited-with-error | |
× Getting requirements to build editable did not run successfully. | |
│ exit code: 1 | |
╰─> [25 lines of output] | |
Traceback (most recent call last): | |
File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module> | |
main() | |
File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main | |
json_out['return_val'] = hook(**hook_input['kwargs']) | |
File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 132, in get_requires_for_build_editable | |
return hook(config_settings) | |
File "/tmp/nix-shell.FUTDpV/nix-shell.ru5Zak/pip-build-env-lj__4rc0/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 448, in get_requires_for_build_editable | |
return self.get_requires_for_build_wheel(config_settings) | |
File "/tmp/nix-shell.FUTDpV/nix-shell.ru5Zak/pip-build-env-lj__4rc0/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel | |
return self._get_build_requires(config_settings, requirements=['wheel']) | |
File "/tmp/nix-shell.FUTDpV/nix-shell.ru5Zak/pip-build-env-lj__4rc0/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 295, in _get_build_requires | |
self.run_setup() | |
File "/tmp/nix-shell.FUTDpV/nix-shell.ru5Zak/pip-build-env-lj__4rc0/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 311, in run_setup | |
exec(code, locals()) | |
File "<string>", line 11, in <module> | |
File "/tmp/nix-shell.FUTDpV/nix-shell.ru5Zak/pip-build-env-lj__4rc0/overlay/local/lib/python3.10/dist-packages/torch/__init__.py", line 236, in <module> | |
_load_global_deps() | |
File "/tmp/nix-shell.FUTDpV/nix-shell.ru5Zak/pip-build-env-lj__4rc0/overlay/local/lib/python3.10/dist-packages/torch/__init__.py", line 195, in _load_global_deps | |
raise err | |
File "/tmp/nix-shell.FUTDpV/nix-shell.ru5Zak/pip-build-env-lj__4rc0/overlay/local/lib/python3.10/dist-packages/torch/__init__.py", line 176, in _load_global_deps | |
ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) | |
File "/usr/lib/python3.10/ctypes/__init__.py", line 374, in __init__ | |
self._handle = _dlopen(self._name, mode) | |
OSError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /nix/store/c2yb135iv4maadia5f760b3xhbh6jh61-gcc-13.2.0-lib/lib/libstdc++.so.6) | |
[end of output] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
inputs = { | |
nixpkgs.url = "github:cachix/devenv-nixpkgs/rolling"; | |
systems.url = "github:nix-systems/default"; | |
devenv.url = "github:cachix/devenv"; | |
devenv.inputs.nixpkgs.follows = "nixpkgs"; | |
nixpkgs-python.url = "github:cachix/nixpkgs-python"; | |
nixpkgs-python.inputs = { nixpkgs.follows = "nixpkgs"; }; | |
}; | |
nixConfig = { | |
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="; | |
extra-substituters = "https://devenv.cachix.org"; | |
}; | |
outputs = { self, nixpkgs, devenv, systems, ... } @ inputs: | |
let | |
lib = nixpkgs.lib; | |
forEachSystem = nixpkgs.lib.genAttrs (import systems); | |
in | |
{ | |
packages = forEachSystem (system: { | |
devenv-up = self.devShells.${system}.default.config.procfileScript; | |
}); | |
devShells = forEachSystem | |
(system: | |
let | |
pkgs = import nixpkgs { | |
inherit system; | |
config.allowUnfree = true; | |
}; | |
pkgs_glibc = import (builtins.fetchGit { | |
# Descriptive name to make the store path easier to identify | |
name = "my-old-revision"; | |
url = "https://github.com/NixOS/nixpkgs/"; | |
ref = "refs/heads/nixpkgs-unstable"; | |
rev = "07518c851b0f12351d7709274bbbd4ecc1f089c7"; | |
}) {}; | |
in | |
{ | |
default = devenv.lib.mkShell { | |
inherit inputs pkgs; | |
modules = [ | |
{ | |
# https://devenv.sh/reference/options/ | |
packages = [ pkgs_glibc.glibc pkgs.gcc12 ]; | |
languages.python = { | |
enable = true; | |
version = "3.10"; | |
}; | |
env.LD_LIBRARY_PATH = lib.mkIf pkgs.stdenv.isLinux ( | |
lib.makeLibraryPath (with pkgs; [ | |
gcc-unwrapped.lib | |
linuxPackages_latest.nvidia_x11 | |
zlib | |
cmake | |
cudaPackages.cudatoolkit | |
cudaPackages.cudnn | |
cudaPackages.libcublas | |
cudaPackages.libcurand | |
cudaPackages.libcufft | |
cudaPackages.libcusparse | |
cudaPackages.cuda_nvtx | |
cudaPackages.cuda_cupti | |
cudaPackages.cuda_nvrtc | |
cudaPackages.nccl | |
])); | |
env.CUDA_HOME = "${pkgs.cudaPackages.cudatoolkit}"; | |
env.CUDA_PATH = "${pkgs.cudaPackages.cudatoolkit}"; | |
} ]; | |
};}); | |
}; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The above flake.nix, is added to the root of fasteval/fasteval, then run nix develop. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment