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

On install, poetry removes setuptools + pip even if listed in deps - resulting in broken virtualenv #6575

Closed
3 of 4 tasks
philippefutureboy opened this issue Sep 20, 2022 · 3 comments
Labels
kind/question User questions (candidates for conversion to discussion) status/duplicate Duplicate issues

Comments

@philippefutureboy
Copy link

philippefutureboy commented Sep 20, 2022

  • I am on the latest stable Poetry version, installed using a recommended method. I could not update poetry using poetry self update, due to error Could not find poetry-1.2.1-darwin.sha256sum file
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.
    • See gist > poetry_install.log

Issue

When attempting to run poetry install (on either a pre-existing env or on a new one after nuking with poetry env remove {name}):

  1. poetry starts by removing pip and setuptools (which are both specified in pyproject.toml: pip@>=21 as dep, setuptools@^56.2.0 as dev-dep)
  2. poetry then proceeds to install the dependencies
  3. Due to (1), the dependency future fails to install and the virtual environment becomes broken.

The issue is on a dependabot branch for bumping google-cloud-bigquery from 2.33.0 to 2.34.4, but the issue is also reproducible on our base branch without the dependabot bump - but instead it's jupyter-core that fails for the same reason (missing setuptools).

Is there anything I can do to have a non-broken virtualenv? Should I pin the version of pip?

@philippefutureboy philippefutureboy added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Sep 20, 2022
@neersighted neersighted added kind/question User questions (candidates for conversion to discussion) status/duplicate Duplicate issues and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Sep 20, 2022
@neersighted
Copy link
Member

Duplicate #4242 (also see the update to the blog @ python-poetry/website#79).

@philippefutureboy
Copy link
Author

philippefutureboy commented Sep 20, 2022

Noice. Thanks @neersighted!
( tfw the answer is 4242 😄 )

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/question User questions (candidates for conversion to discussion) status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

2 participants