Open
Description
Issue
when trying to activate a venv in nushell via use /path/to/activate.nu
, it'll encounter an error saying that the path is not of type string.
Environment
Provide at least:
- OS: ubuntu 24.04
pip list
of the host python wherevirtualenv
is installed:
nu ❯ brew info virtualenv
==> virtualenv: stable 20.29.3 (bottled), HEAD
Tool for creating isolated virtual python environments
https://virtualenv.pypa.io/
Installed
/home/linuxbrew/.linuxbrew/Cellar/virtualenv/20.29.3 (279 files, 6.6MB) *
Poured from bottle using the formulae.brew.sh API on 2025-03-29 at 18:54:03
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/v/virtualenv.rb
License: MIT
==> Dependencies
Required: [email protected] ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 11,120 (30 days), 35,397 (90 days), 155,930 (365 days)
install-on-request: 10,577 (30 days), 33,817 (90 days), 133,302 (365 days)
build-error: 2 (30 days)
nu ❯ pip3 list
Package Version
-------------- -------
cffi 1.17.1
cryptography 44.0.2
libxml2-python 2.13.7
pip 25.0
pycparser 2.22
wheel 0.45.1
nu ➜
Output of the virtual environment creation
Make sure to run the creation with -vvv --with-traceback
:
nu ➜ use /data/venvs/py313-my-personal-finance/bin/activate.nu -vvv --with-traceback
Error: nu::parser::unknown_flag
× The `use` command doesn't have flag `-v`.
╭─[entry #6:1:60]
1 │ use /data/venvs/py313-my-personal-finance/bin/activate.nu -vvv --with-traceback
· ┬
· ╰── unknown flag
╰────
help: Available flags: --help(-h). Use `--help` for more information.