Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installer does not work with Homebrew #8321

Closed
2 of 4 tasks
transcental opened this issue Aug 16, 2023 · 3 comments
Closed
2 of 4 tasks

Installer does not work with Homebrew #8321

transcental opened this issue Aug 16, 2023 · 3 comments
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@transcental
Copy link

  • Poetry version: 1.5.1
  • Python version: 3.11.4
  • OS version and name: macOS Monterey 12.6.8
  • pyproject.toml: N/A
  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below. - Not applicable

Issue

I have Python 3.11.4 installed via Homebrew. This is available via python and python3 in my terminal. However, the poetry install is searching for /usr/local/lib/Python or /usr/lib/Python which is not where my Python version is stored.

Attached is the error and log from running the recommended installer

> curl -sSL https://install.python-poetry.org | python - -vvv
Retrieving Poetry metadata

# Welcome to Poetry!

This will download and install the latest version of Poetry,
a dependency and package manager for Python.

It will add the `poetry` command to Poetry's bin directory, located at:

/Users/dillonbarnes/.local/bin

You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.

Installing Poetry (1.5.1): An error occurred. Removing partial environment.
Poetry installation failed.
See /Users/dillonbarnes/poetry-installer-error-misximsf.log for error logs.
dyld[5485]: Library not loaded: '@loader_path/../Python'
  Referenced from: '/Users/dillonbarnes/Library/Application Support/pypoetry/venv/bin/python3.11'
  Reason: tried: '/Users/dillonbarnes/Library/Application Support/pypoetry/venv/bin/../Python' (no such file), '/usr/local/lib/Python' (no such file), '/usr/lib/Python' (no such file)

Traceback:

  File "<stdin>", line 923, in main
  File "<stdin>", line 562, in run

My suggestion for this is to use the python binary used when running the installer if possible.

My Python installation is at /usr/local/bin/python3 and not /usr/local/lib/Python which seems to be hardcoded into the installer.

@transcental transcental added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Aug 16, 2023
@dimbleby
Copy link
Contributor

wrong repository, looks duplicate python-poetry/install.python-poetry.org#24

@transcental
Copy link
Author

Sorry, didn't realise it was a different repo and therefore only looked at the issues on this repo. Will try that, thanks!

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants