-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 not using wheels and trying to build from source on Big Sur #3591
Comments
This will be solved by https://github.com/python-poetry/poetry-core/pull/125/files |
A workaround for now
And only use |
I haven't actually been able to install my whole lock file yet while it works fine after converting to requirements.txt I also tried clearing the cache and making a new lock file but no difference.
Both install fine with pip
|
I had the same issue with cryptography. This now leads me to the question how the pip version used is determined? Is it based on the version installed in the base Python or is there a specific version pinned / bundled in poetry? |
@ulope thanks for the advice, that fixed my problem with |
This advice fixed it for me (atleast when installing |
Both #3591 (comment) and #3591 (comment) worked for me when trying to install Though #3591 (comment) is a better solution until fixed, as it requires less commands to be run. |
|
I can confirm that I'm getting the same error, poetry downloads |
Fixes this error (happened when building prod image): ``` RuntimeError Unable to find installation candidates for certifi (2021.10.8) at ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/installation/chooser.py:72 in choose_for 68│ 69│ links.append(link) 70│ 71│ if not links: → 72│ raise RuntimeError( 73│ "Unable to find installation candidates for {}".format(package) 74│ ) 75│ 76│ # Get the best link ``` Fix from: python-poetry/poetry#3591 (comment)
@alon1samuel the issue here is that the post1 release only distributes arm7 wheels for some reason. $ curl -sL https://pypi.org/pypi/kaleido/json | jq -r '.releases["0.2.1.post1"][] | .filename'
kaleido-0.2.1.post1-py2.py3-none-manylinux2014_armv7l.whl
$ curl -sL https://pypi.org/pypi/kaleido/json | jq -r '.releases["0.2.1"][] | .filename'
kaleido-0.2.1-py2.py3-none-macosx_10_11_x86_64.whl
kaleido-0.2.1-py2.py3-none-macosx_11_0_arm64.whl
kaleido-0.2.1-py2.py3-none-manylinux1_x86_64.whl
kaleido-0.2.1-py2.py3-none-manylinux2014_aarch64.whl
kaleido-0.2.1-py2.py3-none-win32.whl
kaleido-0.2.1-py2.py3-none-win_amd64.whl When poetry does |
Ugly workaround for poetry 1.1.15 not being able to find a wheel for pandas, and then failing to build pandas. Disabling the new installer does not work, and we already use the latest pip module.
I'm still having this issue. Poetry is building my packages from source and it takes ages |
I am closing this for now as the initial issue is solved, and the people chiming in have a variety of issues with no good description or reproduction. @tgy, if you are having issues, please open a Discussion or join Discord for advice. If you have done extensive testing/have enough knowledge of Poetry to think there may be a bug, feel free to open an issue -- however, the issue is most likely usage or local configuration, as Poetry has good support for macOS wheels on modern versions of pip. |
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. |
-vvv
option).Issue
When I try to install packages poetry trys to install from source, which can lead to various build failuers. But if I use pip 20.3 or greater I can download the wheel.
will work fine for example. My guess is the version of pip poetry install uses is too old.
The text was updated successfully, but these errors were encountered: