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 won't install 'wheel' package (1.0.10 -> 1.1.0 regression)

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.

  • (N/A) If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

  • OS version and name: Linux, MacOS, Windows

  • Poetry version: 1.1.0

  • Link to your pyproject.toml file: brechtm/rinohtype/pyproject.toml

Issue

Since updating to 1.1.0, Poetry will no longer install the wheel dependency. See the “Install development dependencies” section of any “unit tests (wheel)” jobs on rinohtype’s CI tests. After creating a new virtual environment, instead of installing wheel, Poetry prints:

 • Removing wheel (0.34.2)

I can reproduce this locally. Removing and adding ‘wheel’ manually does not help.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
laggardkernelcommented, Jul 1, 2021

Update: seems my problem is unrelated, I’d better switch to psycopg2-binary.


psycopg2 depends on wheel to avoid building the package from source. wheel does exist in poetry.lock and pyproject.toml. But during creating the environment, pip tells me wheel is not installed.

Package operations: 82 installs, 0 updates, 1 removal, 2 skipped

  • Removing wheel (0.34.2)
...
  • Installing psycopg2 (2.8.5): Failed

  EnvCommandError

  Command ['/Users/username/.local/share/pyenv/versions/search-spider-tC2SZ2ft-py3.7/bin/pip', 'install', '--no-deps', '/Users/username/Library/Caches/pypoetry/artifacts/43/1e/47/e00cc30663ca574d30900f282f4d8dbde97c45de8357536fbef7589179/psycopg2-2.8.5.tar.gz'] errored with the following return code 1, and output:
  Processing /Users/username/Library/Caches/pypoetry/artifacts/43/1e/47/e00cc30663ca574d30900f282f4d8dbde97c45de8357536fbef7589179/psycopg2-2.8.5.tar.gz
  Using legacy 'setup.py install' for psycopg2, since package 'wheel' is not installed.
  Installing collected packages: psycopg2
      Running setup.py install for psycopg2: started
      Running setup.py install for psycopg2: finished with status 'error'
      ERROR: Command errored out with exit status 1:

Why does poetry keep removing wheel even it’s defined in poetry.lock and pyproject.toml?

Now I’m not able to build the virtual environment.

0reactions
abncommented, May 12, 2022

This should not happen with 1.2.

$ poetry remove wheel
Updating dependencies
Resolving dependencies... (0.1s)

Writing lock file

Package operations: 0 installs, 0 updates, 1 removal

  • Removing wheel (0.37.1)
$ poetry add wheel
Using version ^0.37.1 for wheel

Updating dependencies
Resolving dependencies... (0.1s)

Writing lock file

Package operations: 1 install, 0 updates, 0 removals

  • Installing wheel (0.37.1)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Package List — Spack 0.20.0.dev0 documentation
This is a list of things you can install using Spack. It is automatically generated based on the packages in this Spack version....
Read more >
Dependency Management With Python Poetry
A dependency manager like Python Poetry helps you specify, install, and resolve external packages in your projects. This way, you can be sure ......
Read more >
poetry - PyPI
Poetry helps you declare, manage and install dependencies of Python projects, ensuring you have the right stack everywhere. Poetry Install.
Read more >
Python package built with Poetry does not install supporting ...
I'm writing a Python package (assume it's "mypkg") and using Poetry to build the distributable wheel/tar.gz files for installation by the ...
Read more >
poetry: Versions - Openbase
Fix an issue where poetry lock --no-update updated dependencies from non-PyPI package sources (#6335). Fix a poetry install performance regression by ...
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