Installation script doesn't set the path to the poetry installation dir to $PATH on MacOS without $ZDOTDIR specified
See original GitHub issue- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- MacOS BigSur 11.1 (20C69):
- P1.1.4:
Issue
After I’d executed curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -
I tried to get the version:
$ poetry --version
zsh: command not found: poetry
I checked .zshrc
and didn’t found anything related to poetry. Then I reviewed the code of get-poetry.py
and found that in order to setup the path to poetry ZDOTDIR env variable should be set. But there is nothing in the docs about it. By default it is not set.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
What is the default install path for poetry - Stack Overflow
The default install location is ~/.poetry/bin/poetry. I added the following to my .zshrc export PATH=$PATH:$HOME/.poetry/bin.
Read more >Where should the XDG_CONFIG_HOME variable be defined?
XDG Base Directory Specification clearly says: If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.
Read more >How do I add a directory to PATH when using `zsh` in Sierra
The name of the PATH variable is case-sensitive and must be all-uppercase. export PATH=$PATH:/folder/you/want. To verify your change, run: echo ...
Read more >Configure a Poetry environment | DataSpell Documentation
On macOS and Windows, the installation script will suggest adding the folder with the poetry executable to the PATH variable.
Read more >Unix and Linux: Visual QuickStart Guide
The information in this book is distributed on an “As Is” basis, without ... Adding to Your bash Path . ... Certainly you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Confirmed on macOS 11.2.3 (Big Sur), the latest version of macOS at the time of writing.
Impact is that Poetry is not usable after installation on the latest macOS 11, for a fresh macOS 11. This is a poor first-time run experience for the latest version of macOS and I would advocate it be treated as high priority.
get-poetry.py
is deprecated. Useinstall-poetry.py
from now on. Here we decided to not set any environment variables at all, because people don’t like it.