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

RuntimeError - Unable to find installation candidates for pandas (1.3.0) #4250

Closed
3 tasks done
al1p opened this issue Jul 3, 2021 · 3 comments
Closed
3 tasks done
Labels
kind/bug Something isn't working as expected

Comments

@al1p
Copy link

al1p commented Jul 3, 2021

  • 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).

  • OS version and name: macOS Big Sur Version 11.4

  • Poetry version: 1.1.7

  • Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/al1p/3c4bc90273427c8bc61332e4484ca8a7

Issue

Install pandas fails.

When adding the pandas from "poetry init", version 1.3.0 is defined in pyproject.toml, but
version 1.3.0 is not available in https://pypi.org/simple/pandas/ :

...
pandas-1.3.0rc1-cp37-cp37m-macosx_10_9_x86_64.whl
pandas-1.3.0rc1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
pandas-1.3.0rc1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
pandas-1.3.0rc1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
pandas-1.3.0rc1-cp37-cp37m-win32.whl
pandas-1.3.0rc1-cp37-cp37m-win_amd64.whl
pandas-1.3.0rc1-cp38-cp38-macosx_10_9_x86_64.whl
pandas-1.3.0rc1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
pandas-1.3.0rc1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
pandas-1.3.0rc1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
pandas-1.3.0rc1-cp38-cp38-win32.whl
pandas-1.3.0rc1-cp38-cp38-win_amd64.whl
pandas-1.3.0rc1-cp39-cp39-macosx_10_9_x86_64.whl
pandas-1.3.0rc1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
pandas-1.3.0rc1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
pandas-1.3.0rc1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
pandas-1.3.0rc1-cp39-cp39-win32.whl
pandas-1.3.0rc1-cp39-cp39-win_amd64.whl
pandas-1.3.0rc1.tar.gz
pandas-1.3.0-cp37-cp37m-macosx_10_9_x86_64.whl
pandas-1.3.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
pandas-1.3.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
pandas-1.3.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
pandas-1.3.0-cp37-cp37m-win32.whl
pandas-1.3.0-cp37-cp37m-win_amd64.whl
poetry install -vvv                                                                                                                           I
Using virtualenv: /Users/alp/Library/Caches/pypoetry/virtualenvs/test-pandasgui-srrdTSBf-py3.9
Installing dependencies from lock file

Finding the necessary packages for the current system

Package operations: 1 install, 0 updates, 0 removals, 4 skipped

  • Installing six (1.16.0): Pending...
  • Installing six (1.16.0): Skipped for the following reason: Already installed
  • Installing numpy (1.21.0): Pending...
  • Installing numpy (1.21.0): Skipped for the following reason: Already installed
  • Installing python-dateutil (2.8.1): Pending...
  • Installing python-dateutil (2.8.1): Skipped for the following reason: Already installed
  • Installing pytz (2021.1): Pending...
  • Installing pytz (2021.1): Skipped for the following reason: Already installed
  • Installing pandas (1.3.0): Pending...
  • Installing pandas (1.3.0): Failed

  RuntimeError

  Unable to find installation candidates for pandas (1.3.0)

  at /usr/local/Cellar/poetry/1.1.7/libexec/lib/python3.9/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

Workaround :

  • Forcing version of pandas to 1.3.0rc1 works
    poetry add pandas@1.3.0rc1
@al1p al1p added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jul 3, 2021
@finswimmer
Copy link
Member

Hello @al1p,

at the time you've opened this ticket, there were neither a wheel for your target platform nor a sdist file, but other platforms were available. This is why poetry takes this version as the latest available into account.

In the meantime it looks like there are more wheels and also a sdist file available and your issue should be solved.

Can you please try again?

fin swimmer

@finswimmer finswimmer added the status/waiting-on-response Waiting on response from author label Jul 6, 2021
@srinivasreddy
Copy link

We can close this ticket.

@finswimmer finswimmer removed the status/waiting-on-response Waiting on response from author label Jul 14, 2021
@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

4 participants