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 packages fail to install from source with pip when setuptools 60.0.0 is installed, including Poetry itself. #4915

Closed
2 of 3 tasks
alkasm opened this issue Dec 20, 2021 · 9 comments
Labels
kind/bug Something isn't working as expected

Comments

@alkasm
Copy link

alkasm commented Dec 20, 2021

  • 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: macOS 11.5.2
  • Poetry version: Poetry version 1.1.2

Issue

Installing poetry packages, including poetry itself, from source currently fails with the newest version of setuptools. I opened up an issue on their tracker as well with all the details.

See https://github.com/pypa/setuptools/issues/2939

Edit: Note that this issue has been resolved with setuptools 60.1.1.

Note that poetry install does not fail; only pip install .

@alkasm alkasm added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Dec 20, 2021
@layday
Copy link

layday commented Dec 21, 2021

See https://github.com/pypa/setuptools/issues/2939#issuecomment-999040464 for what I think is happening.

@benjaminbauer
Copy link

benjaminbauer commented Dec 22, 2021

After adding setuptools as an explicit build-system requirement in a poetry project, I was able to install it from source again. Is this possibly a problem with some changes from poetry 1.2 bleeding into the main branch? Because I first stumbled upon this #3153

My setup is the same as the OPs

@jjorissen52
Copy link

jjorissen52 commented Dec 28, 2021

I have this problem when a new version of setuptools is installed, specifically setuptools==60.1.0.

For me, I must explicitly pin an older version of setuptools, e.g.:

# pyproject.toml
[build-system]
requires = ["setuptools==58.3.0", "poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

The above reference issue on the setuptools GitHub repo has a list of setuptools versions that seem to still work as expected:
pypa/setuptools#2980 (comment)

This works when a project dependency must run a setup() command.

@edgarrmondragon
Copy link
Contributor

@jjorissen52 setuptools 60.1.1 was released earlier today. That solved the issue for me 😄

@finswimmer
Copy link
Member

Thanks a lot for reporting this @alkasm 👍

I followed the issue on setuptools and was glad they found out the problem was on their site :)

@rafalkrupinski
Copy link

I wish poetry had pipx as it's official installation method and kept all its deps in its own venv

@finswimmer
Copy link
Member

[...] and kept all its deps in its own venv

The install-poetry.py installer is exactly doing this.

@rafalkrupinski
Copy link

[...] and kept all its deps in its own venv

The install-poetry.py installer is exactly doing this.

Hm... I had this error and it got fixed by upgrading system-wide setuptools and virtualenv

@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
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

8 participants