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

Offen
#334 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
42/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
build-system

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Python
Sterne
39
Forks
23
Ø Merge
2 T. 15 Std.
Gemergte PRs (30 T.)
7

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus saltstack/relenv

Alle Issues in saltstack/relenv

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.