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 doesn't raise error if using wrong python version #5540

Closed
3 tasks done
anth2o opened this issue May 4, 2022 · 3 comments
Closed
3 tasks done

Poetry doesn't raise error if using wrong python version #5540

anth2o opened this issue May 4, 2022 · 3 comments
Labels
kind/bug Something isn't working as expected

Comments

@anth2o
Copy link

anth2o commented May 4, 2022

Issue

I have an issue when using Poetry. If I use a pyproject.toml similar to the one of the Gist, I want to constrain Python versio to be 3.10.*.
But if I'm trying to install this package using a lower version (for instance 3.9), I don't have any error displayed:

$ python -V
Python 3.9.12
$ poetry env info
poet
Virtualenv
Python:         3.9.12
Implementation: CPython
Path:           venv
Valid:          True

System
Platform: darwin
OS:       posix
Python:   /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9
r%
$ poetry install
Updating dependencies
Resolving dependencies... (0.1s)

Writing lock file

I think this is a serious issue since might want to force some Python version and this conflict is silently ignored. The issue is the same if I specify a lower version in the pyproject.toml.

@anth2o anth2o added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels May 4, 2022
@anth2o anth2o changed the title Poetry doesn't raise error if using rong python version Poetry doesn't raise error if using wrong python version May 4, 2022
@finswimmer
Copy link
Member

Hello @anth2o,

this is already improved in the latest preview version (1.2.0b1) by #4520.

fin swimmer

@anth2o
Copy link
Author

anth2o commented May 4, 2022

Ok, thanks for your quick answer !

@mkniewallner mkniewallner removed the status/triage This issue needs to be triaged label Jun 11, 2022
Copy link

github-actions bot commented Mar 1, 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 1, 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

3 participants