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.

Creating poetry environment does not use specified version of Python #258

@ecwootten

Description

@ecwootten

Describe the bug
Creating poetry env. does not use the Python specified in the 'create' dialogue, it uses any old Python found on the user's path.

To Reproduce
Steps to reproduce the behavior:

  1. Add interpreter, choose "Poetry Environment",
  2. Set base environment by navigating to python.exe from Anaconda venv
  3. Click 'OK'
  4. See "Python was not found but can be installed from the Microsoft Store: ms-windows-store://pdp/?productid=9NJ46SX7X90P" error dialogue. (This is the error from running the fake python.exe shipped with Windows, which actually redirects the user to the M$ store).

Expected behavior
Expect usable interpreter to be created, using the specified version of Python.

Screenshots

Creating env:
poetry_1

Error:
poetry_2

The command from the dialogue box runs fine in ordinary Windows CLI:
poetry_3

Also in PyCharm terminal (currently set to PowerShell):
poetry_4

Environments (please complete the following information):

  • IDE: PyCharm Professional 2020.2
  • OS: Windows 10 Enterprise (Version 1909, OS build 18363.1646)
  • Poetry Version 1.1.7
  • Plugin version 0.5.5

Additional context
Think this is related to #168.
The command line shown in the error dialogue executes without issue in other contexts, and env.-creation works fine if I add the Anaconda venv to PATH (yugh).

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