python-poetry / python-poetry/install.python-poetry.org
Official Install on Windows PowerShell failed on FileNotFoundError
オープン
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 255
- フォーク
- 65
- 平均マージ
- 2時間 48分
- マージ済み PR(30日)
- 1
説明
I've been trying to update my 1.1.13 poetry install to 1.2.2 using the official doc but it failed.
PS D:\Downloads>(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python3 -
Retrieving Poetry metadata
# Welcome to Poetry!
This will download and install the latest version of Poetry,
a dependency and package manager for Python.
It will add the `poetry` command to Poetry's bin directory, located at:
D:\AppData\Roaming\Python\Scripts
You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.
Installing Poetry (1.2.2)
Installing Poetry (1.2.2): Saving existing environment
Installing Poetry (1.2.2): Creating environment
Installing Poetry (1.2.2): An error occurred. Removing partial environment.
Installing Poetry (1.2.2): Restoring previously saved environment.
Traceback (most recent call last):
File "D:\Downloads\install-poetry.py", line 940, in <module>
sys.exit(main())
File "D:\Downloads\install-poetry.py", line 919, in main
return installer.run()
File "D:\Downloads\install-poetry.py", line 550, in run
self.install(version)
File "D:\Downloads\install-poetry.py", line 571, in install
with self.make_env(version) as env:
File "D:\.pyenv\pyenv-win\versions\3.9.6\lib\contextlib.py", line 117, in __enter__
return next(self.gen)
File "D:\Downloads\install-poetry.py", line 643, in make_env
raise e
File "D:\Downloads\install-poetry.py", line 629, in make_env
yield VirtualEnvironment.make(env_path)
File "D:\Downloads\install-poetry.py", line 319, in make
builder.create(target)
File "D:\.pyenv\pyenv-win\versions\3.9.6\lib\venv\__init__.py", line 75, in create
self._setup_pip(context)
File "D:\.pyenv\pyenv-win\versions\3.9.6\lib\venv\__init__.py", line 298, in _setup_pip
subprocess.check_output(cmd, stderr=subprocess.STDOUT)
File "D:\.pyenv\pyenv-win\versions\3.9.6\lib\subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "D:\.pyenv\pyenv-win\versions\3.9.6\lib\subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "D:\.pyenv\pyenv-win\versions\3.9.6\lib\subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "D:\.pyenv\pyenv-win\versions\3.9.6\lib\subprocess.py", line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] Le fichier spécifié est introuvable
and the error same occurs after poetry uninstall with both python 3.9.6 and python3.8.10
I now don't have poetry anymore on my computer 😢
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
install-poetry.py、特に Installer.run、Installer.install、make_env、VirtualEnvironment.make から始め、その後、Windows 上で Python 3.9.6 と 3.8.10 を使って公式の PowerShell コマンドを再現します。仮想環境の作成パスと subprocess の失敗を確認します。ドキュメントに記載されたインストールが FileNotFoundError なしで完了し、アンインストール後に Poetry が復元されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- powershell, python
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100