You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Put something in requirements.txt like django, and then run lorri shell. You’ll get the following error:
❯ lorri shelllorri: building environment.......... doneJan 20 09:34:46.604 ERRO Build failed. No cached environment available.Build error: Nix process returned exit code 1.
$ "nix-build""--out-link""/tmp/.tmpoM4Zgu/result""--""/tmp/.tmpzQiyBN/result"this derivation will be built: /nix/store/3jdfxdmqzrg9f17nv384vyf8r5x3r18a-lorri-keep-env-hack-impurePythonEnv.drvbuilding '/nix/store/3jdfxdmqzrg9f17nv384vyf8r5x3r18a-lorri-keep-env-hack-impurePythonEnv.drv'...Using venvShellHookExecuting venvHookCreating new venv environment in path: './.venv'WARNING: The directory '/homeless-shelter/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.ERROR: Could not open requirements file: [Errno 2] No such file or directory: './requirements.txt'error: builder for '/nix/store/3jdfxdmqzrg9f17nv384vyf8r5x3r18a-lorri-keep-env-hack-impurePythonEnv.drv' failed with exit code 1; last 5 log lines: > Using venvShellHook > Executing venvHook > Creating new venv environment in path: './.venv' > WARNING: The directory '/homeless-shelter/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag. > ERROR: Could not open requirements file: [Errno 2] No such file or directory: './requirements.txt' For full logs, run 'nix log /nix/store/3jdfxdmqzrg9f17nv384vyf8r5x3r18a-lorri-keep-env-hack-impurePythonEnv.drv'.
Expected behavior
The Python virtual environment is created and activated.
Metadata
❯ lorri info --shell-file shell.nixlorri version: 1.5
❯ uname -aLinux midgar 5.10.81 #1-NixOS SMP Sun Nov 21 12:46:37 UTC 2021 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered:
Describe the bug
Using lorri with
pythonPackages.venvShellHook
as mentioned in the nixpkgs docs results in an error.To Reproduce
Create a
shell.nix
file with the following contents:Put something in
requirements.txt
likedjango
, and then runlorri shell
. You’ll get the following error:Expected behavior
The Python virtual environment is created and activated.
Metadata
The text was updated successfully, but these errors were encountered: