question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

poetry tries to install nbformat py3 wheel in a py2 environment

See original GitHub issue
  • 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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
s0undt3chcommented, Feb 2, 2020

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

0reactions
dimblebycommented, Jun 18, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip subprocess to install backend dependencies did not run ...
I have a docker image with poetry-core installed and inside the container I tried to run a pip install of project and it...
Read more >
Resolving new pip backtracking runtime issue - Stack Overflow
Currently, the best way I can think of is running pip install setup.py locally in a new virtual environment, then using pip freeze...
Read more >
30371 (Use pipenv to create venv for development) - Sage Trac
So running pipenv install results in a semi-workable virtual environment. ... /src-BXov0SKG/lib/python3.8/site-packages/pip (python 3.8) Non-user install by ...
Read more >
Package List — Spack 0.20.0.dev0 documentation
This is a list of things you can install using Spack. ... hip, hip-rocclr, rocm-gdb; Run Dependencies: py-wheel; Description: llvm openmp compiler from...
Read more >
poetry.lock - deepicedrain - DagsHub
poetry.lock 321 KB ... description = "Clean single-source support for Python 3 and 2" ... appdirs = [; {file = "appdirs-1.4.4-py2.py3-none-any.whl", ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found