Skip to content

Poetry 1.2.1 install fails to install packages with pip dependency #6567

@SfinxCZ

Description

@SfinxCZ
  • Poetry version: 1.2.1

  • Python version: 3.8.12

  • OS version and name: macOS 12.6 but same problem observed in docker built with python:3.8 as base image

  • pyproject.toml: https://gist.github.com/SfinxCZ/a8a80b14cc19c6631942adb2fb6ca3ff

  • 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 I have encountered an issue where poetry fails to install project linked above (pyproject.toml). From what I've observed, the problem seems to occur, when the project depends on a library that has pip as its dependency (chalice in this case). Then, during the installation poetry tries to upgrade pip to version listed in the poetry.lock file. However, other libraries that are being installed at the same moment require pip to be installed and installation fails - see the log here install.log.

Reproducing this error is tricky as it seems to be a raise condition that depends on the parallelism used in the install step.

Downgrading to poetry 1.2.0 seems to fix the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/installerRelated to the dependency installerkind/bugSomething isn't working as expectedstatus/confirmedIssue is reproduced and confirmedversion/1.2.1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions