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

Pip vendor modules not found when using Poetry 1.2.1 #6643

Closed
4 tasks done
markusos opened this issue Sep 27, 2022 · 3 comments
Closed
4 tasks done

Pip vendor modules not found when using Poetry 1.2.1 #6643

markusos opened this issue Sep 27, 2022 · 3 comments
Labels
status/duplicate Duplicate issues

Comments

@markusos
Copy link

  • I am on the latest stable Poetry version, installed using a recommended method.
  • 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.

Issue

After upgrading to Poetry 1.2.1 some dependencies now fails to install with different errors errors for pip._vendor libraries. E.g:

  • ModuleNotFoundError: No module named 'pip._vendor.packaging.markers'
  • ModuleNotFoundError: No module named 'pip._vendor.distlib'
  • ModuleNotFoundError: No module named 'pip._vendor.urllib3._version'
  • ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/home/dev/.cache/pypoetry/virtualenvs/[poetry-bug]-p3hG42m9-py3.8/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py'

See full build log here: https://github.com/markusos/poetry-bug/blob/main/build.log

To reproduce check out the https://github.com/markusos/poetry-bug repo and run ./build.sh. This will build a docker container with Poetry 1.2.1 and use poetry to install this pyproject.toml: https://github.com/markusos/poetry-bug/blob/main/pyproject.toml

The same pyproject.toml and poetry.lock builds fine in the same docker setup if https://github.com/markusos/poetry-bug/blob/main/Dockerfile#L15 is changed to: RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.2.0
to run this with the previous release of Poetry. See build log for Poetry 1.2.0 here: https://github.com/markusos/poetry-bug/blob/main/build_1_2_0.log

This seems like a regression bug in Poetry 1.2.1, but it might be that we're missing something that needs to be migrated in the lock file some new dependency in the setup?

@markusos markusos added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Sep 27, 2022
@dimbleby
Copy link
Contributor

duplicate #6567 - pip is in your dependency tree, it's while updating pip that the other parallel installs go wrong.

@neersighted neersighted added status/duplicate Duplicate issues and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Sep 27, 2022
@neersighted
Copy link
Member

Mitigated in #6582 as well, which is currently unreleased in the 1.2 branch.

@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Sep 27, 2022
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
status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

3 participants