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 tries to install nbformat py3 wheel in a py2 environment #1963

Closed
3 tasks done
romaingz opened this issue Jan 31, 2020 · 6 comments
Closed
3 tasks done

poetry tries to install nbformat py3 wheel in a py2 environment #1963

romaingz opened this issue Jan 31, 2020 · 6 comments
Labels
kind/bug Something isn't working as expected status/duplicate Duplicate issues

Comments

@romaingz
Copy link

romaingz commented Jan 31, 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: CentOS 7
  • Poetry version: 1.0.3, 1.0.2
  • Link of a Gist with the contents of your pyproject.toml file:
[tool.poetry.dependencies]
python = "^2.7"

Issue

When running poetry add nbformat with the only requirement python = "^2.7", poetry tries to install nbformat==5.0.4 which is py3 only and fails.

I assume from the README that it should find by itself that 4.4.0 is the latest py2 compatible version.

If I pin that nbformat = "4.4.0" in my pyproject.toml it gets correctly installed, but I get issues later on with papermill.

Edit
Reproduced on version 1.0.3.

@romaingz romaingz added the kind/bug Something isn't working as expected label Jan 31, 2020
@s0undt3ch
Copy link

Does the nbformat package properly set the supported python versions depending on its own version? Ie, seems like version >=5 should define that it's not Py2 compatible.

I know poetry still has issues resolving complex dependencies(namely if you add platform markers, which is why we still haven't moved to poetry) but this looks like a simple "problem" that, if given enough and proper information, poetry should be able to resolve.

Anyway, just trying to get more information, I'm still pretty new to poetry.

@s0undt3ch
Copy link

Well it does seem that nbformst does set the right information....

@romaingz
Copy link
Author

romaingz commented Feb 2, 2020

Yes, I also checked that they correctly specified their wheel as non universal.

I am taking a look at poetry for migrating our projects so still in the discovering phase also.

@romaingz
Copy link
Author

romaingz commented Feb 3, 2020

Reproduced it on 1.0.3.

@dimbleby
Copy link
Contributor

Another duplicate of #707, #1589, #2171, #5453, ...

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 status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

4 participants