Cannot create venv on Windows due to venvlauncher.exe and venvwlauncher.exe not being in expected folder
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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của saltstack/relenv
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
documentation
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Tất cả issue của saltstack/relenv
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
btclib-org/btclib-wallet#872 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Scheduled returns scan all accepted minion keys causing extreme loadCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
saltstack/salt#70789 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
btclib-org/btclib#3093 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
patrickballard/wheelgap#269 ·
-
priority: low python
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
LearningCircuit/local-deep-research#8635 ·
Maintainer thường phản hồi trong vòng 1 ngày