Skip to content

Got ResourceUnavailable after installing on Windows in PowerShell #162

@cmp0xff

Description

@cmp0xff

Hi, we have a User on Windows 11 with PowerShell 7.5.2 installed. We installed Python via winget. After running

(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -

and adding C:\Users\Name\AppData\Roaming\Python\Scripts\ to PATH, we got

ResourceUnavailable: Program 'poetry.exe' failed to run: An error occurred trying to start process 'C:\Users\Name\AppData\Roaming\Python\Scripts\poetry.exe' with working directory 'C:\Users\Name'. Access is denied.At line:1 char:1
+ poetry
+ ~~~~~~.

We tried to uninstall by running

(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py - --uninstall

and then install again with python instead of py

(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -

which did not help. We get the same ResourceUnavailable error.

We checked the permission of C:\Users\Name\AppData\Roaming\Python\Scripts\poetry.exe, and the current User does have full control.

How can we address the problem? Thank you 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions