I had poetry running smoothly till yesterday with 1.1.13 version on Python 3.10.4 installed via pyenv Today I updated poetry with the command
JavaScript
x
2
1
poetry self update
2
Now after setting
JavaScript
1
2
1
poetry config virtualenvs.in-project true
2
When I try to create a new project
JavaScript
1
2
1
poetry new --src
2
It keeps giving me this error
JavaScript
1
2
1
Not enough arguments (missing: "path").
2
I already have my ~/.zshrc with the poetry setup if I am not mistaken on my Apple M1 machine
My ~/.zshrc file
JavaScript
1
14
14
1
export NVM_DIR="$HOME/.nvm"
2
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
3
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion
4
source ~/.nvm/nvm.sh
5
6
7
export PYENV_ROOT="$HOME/.pyenv"
8
export PATH="$PYENV_ROOT/bin:$PATH"
9
# https://python-poetry.org/docs/master/#installing-with-the-official-installer
10
export PATH="/Users/vr/.local/bin:$PATH"
11
eval "$(pyenv init --path)"
12
13
export PATH="$HOME/.poetry/bin:$PATH"
14
Can anyone kindly tell why this is not working? Version of poetry is 1.1.14 after update
Advertisement
Answer
When using new
you must specify a path, if you want to create a new project inside the current folder, it must be empty, and you should execute it as follows
JavaScript
1
4
1
$ mkdir my_new_project
2
$ cd my_new_project
3
$ poetry new --src .
4
Notice the .
in the end, this is the path