Cannot create venv on Windows due to venvlauncher.exe and venvwlauncher.exe not being in expected folder

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
build-system

調査の方向性

The failure is in the Windows environment that relenv builds, not in the user's machine: venv expects venvlauncher.exe and venvwlauncher.exe under Lib\venv\scripts\nt, but they sit in Scripts. Start with the Windows build step that stages the Python install and copies these launchers, and compare where it places them against where venv looks. Done when a freshly built environment runs python -m venv on Windows without the 'Unable to copy' errors.

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

説明

Running
<path_to_relenv_environment_root>\Scripts\python.exe -m venv .
breaks and yields the following errors:

PS C:\Users\user\workdir> C:\work\salt\salt-3008.3\salt-python\Scripts\python.exe -m venv .venv
Unable to copy 'C:\\work\\salt\\salt-3008.3\\salt-python\\Lib\\venv\\scripts\\nt\\venvlauncher.exe' to 'C:\\Users\\user\\workdir\\.venv\\Scripts\\python.exe'
Unable to copy 'C:\\work\\salt\\salt-3008.3\\salt-python\\Lib\\venv\\scripts\\nt\\venvwlauncher.exe' to 'C:\\Users\\user\\workdir\\.venv\\Scripts\\pythonw.exe'

The issue is that the two files, venvlauncher.exe and venvwlauncher.exe, are not in the expected directory, so the copying fails. Copying them over to Lib\\venv\\scripts\\nt from the Scripts directory fixes the issue.

Relenv version: 0.22.27
Python version: 3.14.7
OS: Windows 11 x64

主要言語
Python
スター
39
フォーク
23
平均マージ
2日 15時間
マージ済み PR(30日)
7

環境構築

はじめの一歩

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

saltstack/relenv のほかの issue

saltstack/relenv の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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