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

Failure to install textgen-nvidia on WSL #86

Open
jasper-zanjani opened this issue Feb 27, 2024 · 1 comment
Open

Failure to install textgen-nvidia on WSL #86

jasper-zanjani opened this issue Feb 27, 2024 · 1 comment

Comments

@jasper-zanjani
Copy link

Be forewarned that I am a Nix newbie. I installed NixOS-WSL using the PowerShell block provided online. I then attempted to run

nix run github:nixified-ai/flake#textgen-nvidia

which eventually resulted in the following errors:

do you want to allow configuration setting 'extra-substituters' to be set to 'https://ai.cachix.org' (y/N)? y
do you want to permanently mark this value as trusted (y/N)? y
do you want to allow configuration setting 'extra-trusted-public-keys' to be set to 'ai.cachix.org-1:N9dzRK+alWwoKXQlnn0H6aUx0lU/mspIoz8hMvGvbbc=' (y/N)? y
do you want to permanently mark this value as trusted (y/N)? y
warning: ignoring untrusted substituter 'https://ai.cachix.org'
error: builder for '/nix/store/y0fmdl9kcqdlbp2kb672zd5hxqgjgq6z-python3.11-ipython-8.15.0.drv' failed with exit code 1;
       last 10 log lines:
       > 6.90s call     IPython/core/tests/test_completer.py::test_unicode_range
       > 6.67s call     IPython/core/tests/test_debugger.py::test_where_erase_value
       > 6.66s call     IPython/extensions/tests/test_autoreload.py::TestAutoreload::test_autoreload_output
       > 6.57s call     IPython/terminal/tests/test_debug_magic.py::test_debug_magic_passes_through_generators
       > 5.41s call     IPython/testing/tests/test_tools.py::Test_ipexec_validate::test_main_path2
       > =========================== short test summary info ============================
       > FAILED IPython/core/tests/test_debugger.py::test_xmode_skip - pexpect.exceptions.TIMEOUT: Timeout exceeded.
       > FAILED IPython/terminal/tests/test_debug_magic.py::test_debug_magic_passes_through_generators - pexpect.exceptions.ExceptionPexpect: Could not terminate the child.
       > = 2 failed, 1279 passed, 115 skipped, 1 deselected, 1 xpassed, 40 warnings in 260.04s (0:04:20) =
       > /nix/store/wr08yanv2bjrphhi5aai12hf2qz5kvic-stdenv-linux/setup: line 1559: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/y0fmdl9kcqdlbp2kb672zd5hxqgjgq6z-python3.11-ipython-8.15.0.drv'.
error: 1 dependencies of derivation '/nix/store/av2430c1cmrzyp03v4c38bj6qz828r83-python3.11-altair-5.1.2.drv' failed to build
error (ignored): error: cannot unlink '/tmp/nix-build-magma-2.7.2.drv-0': Directory not empty
error: 1 dependencies of derivation '/nix/store/4x3wy4zhlszyk0807lcm0lwinccr4iql-python3.11-python-dotenv-1.0.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/24fj8bc89m7dg6nn2f10j8j7fzhn95p7-python3-3.11.6-env.drv' failed to build
error (ignored): error: cannot unlink '/tmp/nix-build-cudatoolkit-11.8.0.drv-0/pkg/builds': Directory not empty
error: 1 dependencies of derivation '/nix/store/61kamkwidm6w1m8gy81xdqv0rjkgcnkc-textgen.drv' failed to build

Version information:

Windows Subsystem for Linux Distributions:
Ubuntu-22.04 (Default)
NixOS-nixified-ai
PS C:\Users\jaspe> wsl --version
WSL version: 2.0.14.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.26058.1400

This computer runs Windows 11 Pro 24H2 and has an NVIDIA GeForce GTX 960 which functions just fine for gaming.

@MatthewCroughan
Copy link
Member

That's just because it's running the IPython upstream tests, and your computer may not be fast enough to run them, so it times out. The reason it's building everything from source is because as you see in the warning, you haven't trusted ai.cachix.org as a substituted, probably because you are not a trusted user in the Nix configuration.

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

2 participants