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

poetry install does not use available binary for numpy 1.19.2 #3196

Closed
3 tasks done
jurgispods opened this issue Oct 13, 2020 · 6 comments
Closed
3 tasks done

poetry install does not use available binary for numpy 1.19.2 #3196

jurgispods opened this issue Oct 13, 2020 · 6 comments
Labels
kind/bug Something isn't working as expected

Comments

@jurgispods
Copy link

Issue

When running poetry install the installation of numpy 1.19.2 (using pyenv-installed Python 3.8.2) takes very long (~minutes) and seems to compile from source.

However, running pip install numpy==1.19.2 yields

Collecting numpy==1.19.2
  Using cached https://files.pythonhosted.org/packages/33/1a/d10d1c23d21c289a3e87e751a9daf0907e91665cab08d0c35033fd4f5b55/numpy-1.19.2-cp38-cp38-macosx_10_9_x86_64.whl
Installing collected packages: numpy
Successfully installed numpy-1.19.2
WARNING: You are using pip version 19.2.3, however version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

within a few seconds.

@jurgispods jurgispods added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 13, 2020
@naveen521kk
Copy link

naveen521kk commented Oct 13, 2020

Did you install python 3.9 and did poetry created a venv with that?
In that is the case it is expected.

@jtc42
Copy link

jtc42 commented Oct 20, 2020

We're also having this problem now which is causing significant delays in releasing a critical update.

Log available online if it's useful https://gitlab.com/openflexure/pi-gen/-/jobs/801886395

@jtc42
Copy link

jtc42 commented Oct 20, 2020

Worth noting that running poetry config experimental.new-installer false beforehand fixes this for me.

@jurgispods
Copy link
Author

@naveen521kk As it turns out, the poetry version installed via Homebrew uses a hardcoded Homebrew-installed Python 3.9. The maintainers do not seem to see any issues with that: Homebrew/homebrew-core#53169

I think this restricts the functionality of poetry in an unacceptable way. Solution: Use the official installer.

brew uninstall poetry
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -

@JezuzStardust
Copy link

JezuzStardust commented Jan 29, 2021

@naveen521kk As it turns out, the poetry version installed via Homebrew uses a hardcoded Homebrew-installed Python 3.9. The maintainers do not seem to see any issues with that: Homebrew/homebrew-core#53169

I think this restricts the functionality of poetry in an unacceptable way. Solution: Use the official installer.

brew uninstall poetry
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -

I installed via Homebrew and got everything working. Using pyenv to set the local version first, then using using poetry env use and finally using the sugggestions by @jtc42 worked for me.

I.e.
pyenv local 3.x.x
poetry env use 3.x.x
poetry config experimental.new-installer false
poetry install

Not sure, but hopefully this helps.

@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
Copy link

github-actions bot commented Mar 2, 2024

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 Mar 2, 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
Projects
None yet
Development

No branches or pull requests

5 participants