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

Đang mở
#334 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
build-system

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
39
Fork
23
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của saltstack/relenv

Tất cả issue của saltstack/relenv

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.