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

Dependency resolver bluntly ignores version requirement and installs release candidate instead of latest stable #2797

Closed
3 tasks done
ghost opened this issue Aug 11, 2020 · 2 comments
Labels
kind/bug Something isn't working as expected

Comments

@ghost
Copy link

ghost commented Aug 11, 2020

  • 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: Ubuntu WSL on Windows 10

  • Poetry version: 1.0.10 and 1.1.0b2

Issue

To reproduce:

$ poetry new test_proj
$ cd test_proj
$ poetry install
$ poetry add numba -vvv
Result
PyPI: 75 packages found for numba *
Using version ^0.50.1 for numba

Updating dependencies
Resolving dependencies...
   1: fact: test-proj is 0.1.0
   1: derived: test-proj
   1: fact: test-proj depends on numba (^0.50.1)
   1: fact: test-proj depends on pytest (^5.2)
   1: fact: test-proj depends on pytest (^5.2)
   1: selecting test-proj (0.1.0)
   1: derived: pytest (^5.2)
   1: derived: numba (^0.50.1)
   1: fact: pytest (5.4.3) depends on py (>=1.5.0)
   1: fact: pytest (5.4.3) depends on packaging (*)
   1: fact: pytest (5.4.3) depends on attrs (>=17.4.0)
   1: fact: pytest (5.4.3) depends on more-itertools (>=4.0.0)
   1: fact: pytest (5.4.3) depends on pluggy (>=0.12,<1.0)
   1: fact: pytest (5.4.3) depends on wcwidth (*)
   1: fact: pytest (5.4.3) depends on importlib-metadata (>=0.12)
   1: fact: pytest (5.4.3) depends on atomicwrites (>=1.0)
   1: fact: pytest (5.4.3) depends on colorama (*)
   1: selecting pytest (5.4.3)
   1: derived: colorama (*)
   1: derived: atomicwrites (>=1.0)
   1: derived: importlib-metadata (>=0.12)
   1: derived: wcwidth (*)
   1: derived: pluggy (>=0.12,<1.0)
   1: derived: more-itertools (>=4.0.0)
   1: derived: attrs (>=17.4.0)
   1: derived: packaging (*)
   1: derived: py (>=1.5.0)
PyPI: 1 packages found for numba >=0.50.1,<0.51.0
   1: fact: numba (0.50.1) depends on llvmlite (>=0.33.0.dev0,<0.34)
   1: fact: numba (0.50.1) depends on numpy (>=1.15)
   1: selecting numba (0.50.1)
   1: derived: numpy (>=1.15)
   1: derived: llvmlite (>=0.33.0.dev0,<0.34)
PyPI: No release information found for numpy-0.9.6, skipping
PyPI: No release information found for numpy-0.9.8, skipping
PyPI: No release information found for numpy-1.0.3, skipping
PyPI: No release information found for numpy-1.0.4, skipping
PyPI: No release information found for numpy-1.0b1, skipping
PyPI: No release information found for numpy-1.0b4, skipping
PyPI: No release information found for numpy-1.0b5, skipping
PyPI: No release information found for numpy-1.0rc1, skipping
PyPI: No release information found for numpy-1.0rc2, skipping
PyPI: No release information found for numpy-1.0rc3, skipping
PyPI: No release information found for numpy-1.1.1, skipping
PyPI: No release information found for numpy-1.2.0, skipping
PyPI: No release information found for numpy-1.2.1, skipping
PyPI: No release information found for numpy-1.4.0, skipping
PyPI: 26 packages found for numpy >=1.15
PyPI: No release information found for llvmlite-0.1, skipping
PyPI: 3 packages found for llvmlite >=0.33.0.dev0,<0.34
   1: selecting colorama (0.4.3)
   1: selecting atomicwrites (1.4.0)
   1: fact: importlib-metadata (1.7.0) depends on zipp (>=0.5)
   1: selecting importlib-metadata (1.7.0)
   1: derived: zipp (>=0.5)
   1: selecting wcwidth (0.2.5)
   1: fact: pluggy (0.13.1) depends on importlib-metadata (>=0.12)
   1: selecting pluggy (0.13.1)
   1: selecting more-itertools (8.4.0)
   1: selecting attrs (19.3.0)
   1: fact: packaging (20.4) depends on pyparsing (>=2.0.2)
   1: fact: packaging (20.4) depends on six (*)
   1: selecting packaging (20.4)
   1: derived: six (*)
   1: derived: pyparsing (>=2.0.2)
   1: selecting py (1.9.0)
   1: selecting zipp (3.1.0)
   1: selecting six (1.15.0)
   1: selecting pyparsing (2.4.7)
   1: selecting llvmlite (0.34.0rc1)
   1: selecting numpy (1.19.1)
   1: Version solving took 0.262 seconds.
   1: Tried 1 solutions.

Writing lock file


Package operations: 3 installs, 0 updates, 0 removals

  - Installing llvmlite (0.34.0rc1)
  - Installing numpy (1.19.1)
  - Installing numba (0.50.1)

It is clear for the numba requirements that llvmlite should be <0.34, but the resolver still chooses 0.34.0rc1.

That's wrong and my code cannot run because of this.

@ghost ghost added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Aug 11, 2020
@ghost
Copy link
Author

ghost commented Aug 11, 2020

Duplicate from #2271 (my bad)

@ghost ghost closed this as completed Aug 11, 2020
@abn abn removed the status/triage This issue needs to be triaged label Sep 25, 2020
Copy link

github-actions bot commented Mar 3, 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 3, 2024
This issue was closed.
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

1 participant