Skip to content
This repository was archived by the owner on Feb 9, 2022. It is now read-only.
This repository was archived by the owner on Feb 9, 2022. It is now read-only.

Extra dependencies set installation fails when done from the plugin #256

@agatti

Description

@agatti

Describe the bug
Extra dependencies set install fails from within PyCharm.

To Reproduce
Steps to reproduce the behavior:

  1. Have a project with some extra dependencies set.
  2. Click on the installation sidebar icon next to the extra dependency set.
  3. Poetry pops up an error window.

Expected behavior
Dependencies set installation should work from within PyCharm too. The same command shown to be executed in the error dialog works when run manually from the console.

Screenshots
Screenshot 2021-07-24 at 12 34 58

Environments (please complete the following information):

  • IDE: PyCharm Professional 2021.1.3
  • OS: macOS 11.4
  • Poetry Version 1.1.7
  • Plugin version 1.1.4

Additional context
The pyproject.toml file I am having this issue with can be summed up as such:

[tool.poetry.dependencies]
python = ">=3.8, <3.9"
...
pyside2 = { version = "^5.15", optional = true }

[tool.poetry.extras]
qt = ["pyside2"]

And the same command when ran from the console:

agatti@tardigrade <redacted> % which poetry
/opt/local/bin/poetry
agatti@tardigrade <redacted> % poetry install --extras qt
Installing dependencies from lock file
Warning: The lock file is not up to date with the latest changes in pyproject.toml. You may be getting outdated dependencies. Run update to update them.

Package operations: 2 installs, 0 updates, 0 removals

  • Installing shiboken2 (5.15.2)
  • Installing pyside2 (5.15.2)

Installing the current project: <redacted> (<redacted>)
agatti@tardigrade <redacted> %

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions