python-poetry / python-poetry/install.python-poetry.org

Got ResourceUnavailable after installing on Windows in PowerShell

オープン
#162 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
255
フォーク
65
平均マージ
2時間 48分
マージ済み PR(30日)
1

説明

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 🙂

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず install.python-poetry.org スクリプトを確認し、C:\Users\Name\AppData\Roaming\Python\Scripts\poetry.exe を作成して起動する PowerShell コマンドを再現します。実行可能ファイルと PATH の動作を、正常に動作する Windows インストールと比較します。access-denied 起動失敗の原因を特定し、再インストール後に Poetry が起動することを確認できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
powershell, python
領域
cli, tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。