python3 -m poetry config --local virtualenvs.prompt null
worked for me.
Problem is: virtualenv: error: argument --prompt: expected one argument
$ python3 -m poetry add shell-gpt
Creating virtualenv -dotfiles-vt9Uq9JI-py3.11 in /Users/tamakiii/Library/Caches/pypoetry/virtualenvs
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--read-only-app-data] [--app-data APP_DATA] [--reset-app-data] [--upgrade-embed-wheels] [--discovery {builtin}] [-p py] [--try-first-with py_exe]
[--creator {builtin,cpython3-posix,venv}] [--seeder {app-data,pip}] [--no-seed] [--activators comma_sep_list] [--clear] [--no-vcs-ignore] [--system-site-packages] [--symlinks | --copies] [--no-download | --download]
[--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip] [--no-setuptools] [--no-wheel] [--no-periodic-update] [--symlink-app-data] [--prompt prompt] [-h]
dest
virtualenv: error: argument --prompt: expected one argument
Setting VIRTUAL_ENV_DISABLE_PROMPT
didn't worked for me
export VIRTUAL_ENV_DISABLE_PROMPT=1; python3 -m poetry add shell-gpt
Check your configuration before you make change
python3 -m poetry config --list
python3 -m poetry config --local --list
python3 -m poetry config virtualenvs.prompt
python3 -m poetry config --local virtualenvs.prompt
Change config (In my case, --local
was the point)
$ python3 -m poetry config --local virtualenvs.prompt null
$ python3 -m poetry config --local virtualenvs.prompt
null
poetry add
worked
$ python3 -m poetry add shell-gpt
Creating virtualenv -dotfiles-vt9Uq9JI-py3.11 in /Users/tamakiii/Library/Caches/pypoetry/virtualenvs
Using version ^0.7.3 for shell-gpt
Updating dependencies
Resolving dependencies... Downloading https://files.pythonhosted.org/packages/71/4c/3db2b8021bd6f2f0ceb0e088d6b2d49147671f25832fb17970e9b583d742/certifi-2022.12.7-py3-none-a
Resolving dependencies... Downloading https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-
Resolving dependencies... (2.5s)
Package operations: 13 installs, 0 updates, 0 removals
• Installing mdurl (0.1.2)
• Installing certifi (2022.12.7)
• Installing charset-normalizer (3.1.0)
• Installing click (8.1.3)
• Installing idna (3.4)
• Installing markdown-it-py (2.2.0)
• Installing pygments (2.14.0)
• Installing urllib3 (1.26.15)
• Installing distro (1.8.0)
• Installing requests (2.28.2)
• Installing rich (13.3.1)
• Installing typer (0.7.0)
• Installing shell-gpt (0.7.3)
Version informations
$ sw_vers
ProductName: macOS
ProductVersion: 13.2.1
BuildVersion: 22D68
$ python3 --version
Python 3.11.2
$ python3 -m poetry --version
Poetry (version 1.4.1)
$ python3 -m virtualenv --version
virtualenv 20.21.0 from /usr/local/lib/python3.11/site-packages/virtualenv/__init__.py
Configuration | Documentation | Poetry - Python dependency management and packaging made easy
https://python-poetry.org/docs/configuration/