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

Problem parsing requirement markers #992

Closed
3 tasks done
lvkswrks opened this issue Mar 27, 2019 · 8 comments
Closed
3 tasks done

Problem parsing requirement markers #992

lvkswrks opened this issue Mar 27, 2019 · 8 comments
Labels
kind/bug Something isn't working as expected

Comments

@lvkswrks
Copy link

Issue

Poetry seems to have problems parsing requirement markers as illustrated below

setup(
    # ...
    install_requires = [
        'pyarrow==0.9.0;platform_system!="darwin"',
        'pyarrow==0.9.post1;platform_system=="darwin"',
    ],
)

It will fall into an infinite recursion and crash at some point with

0: Duplicate dependencies for pyarrow
0: Different requirements found for pyarrow (0.9.0) and pyarrow (0.9.post1).
1: Version solving took 0.056 seconds.
1: Tried 1 solutions.
0: Retrying dependency resolution for Python (>=3.6,<4.0).
1: fact: test-multiline is 0.1.0
1: derived: test-multiline
1: fact: test-multiline depends on py-setup (*)

Please also see a minimal example project configuration I uploaded to Gist.

@lvkswrks
Copy link
Author

lvkswrks commented May 7, 2019

I tested with poetry 0.12.15 and it is still an issue.

@lvkswrks
Copy link
Author

lvkswrks commented Jul 9, 2019

The error still persists in Poetry 0.12.17.

poetry install -vvv
Using virtualenv: /path/to/.venv
Updating dependencies
Resolving dependencies...
   1: fact: test-multiline is 0.1.0
   1: derived: test-multiline
   1: fact: test-multiline depends on py-setup (*)
   1: selecting test-multiline (0.1.0)
   1: derived: py-setup (*)
   0: Duplicate dependencies for pyarrow
   0: Different requirements found for pyarrow (0.9.0) and pyarrow (0.9.post1).
   1: Version solving took 0.221 seconds.
   1: Tried 1 solutions.
   0: Retrying dependency resolution for Python (>=3.6,<4.0).
   1: fact: test-multiline is 0.1.0
   1: derived: test-multiline
   1: fact: test-multiline depends on py-setup (*)
   1: selecting test-multiline (0.1.0)
   1: derived: py-setup (*)
   0: Duplicate dependencies for pyarrow
   0: Different requirements found for pyarrow (0.9.0) and pyarrow (0.9.post1).
   1: Version solving took 0.004 seconds.
   1: Tried 1 solutions.

@stale
Copy link

stale bot commented Nov 13, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 13, 2019
@lvkswrks
Copy link
Author

Hi, the issue persists in 1.0.0.b.

@s0undt3ch
Copy link

The issue still exists in latest release, see #1238 (comment)

@s0undt3ch
Copy link

Though, I hit a Max recursion error.

@finswimmer finswimmer added the kind/bug Something isn't working as expected label Jan 18, 2020
@g4b1nagy
Copy link

g4b1nagy commented Nov 9, 2020

This has been fixed in the 1.1.X branch of Poetry. So every version starting from 1.1.0 (Oct 1, 2020) should work just fine.
Note that:

lock files generated with this release are not compatible with previous releases of Poetry.

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