question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
davidfstrcommented, Mar 29, 2021

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.

0reactions
finswimmercommented, Dec 30, 2021

get-poetry.py is deprecated. Use install-poetry.py from now on. Here we decided to not set any environment variables at all, because people don’t like it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found