[BUG] configure.bat fails on Windows: hardcoded commoncode-32.5.2-py3-none-any.whl path does not exist
Maintainer thường phản hồi trong vòng 2 ngày
@muskan-creates352 đang làm issue này rồi.
Từ ngày 13/11/2026.
- #5481 của @muskan-creates352 — đang mở
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả 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 hardcoded wheel name is on line 166 of configure.bat; compare it with the wildcard install on line 264 of the POSIX configure script. The wheel is built from pyproject-commoncode.toml, so the filename changes with the version. Pull request #5481 is already open against this fix, so check it before starting. Done when the Windows install step picks up whatever dist\commoncode*.whl file was built.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem Description
When running configure.bat on Windows from the latest develop branch, the configuration process fails with an error trying to reinstall the locally built commoncode wheel.
Steps to Reproduce
- Clone the repository on Windows:
git clone https://github.com/aboutcode-org/scancode-toolkit.git - Run
configure.bat
Error Output
Built wheel: C:\...\aboutcode\dist\commoncode-33.0.0-py3-none-any.whl
Building from pyproject: pyproject-commoncode.toml
output in : C:\...\aboutcode\dist
using wheel tag: py3-none-any
WARNING: Requirement './dist/commoncode-32.5.2-py3-none-any.whl' looks like a filename, but the file does not exist
Processing c:\...\aboutcode\dist\commoncode-32.5.2-py3-none-any.whl
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\...\\aboutcode\\dist\\commoncode-32.5.2-py3-none-any.whl'
Cause
In configure.bat (line 166), the wheel filename is hardcoded to an older version:
"%CFG_BIN_DIR%\pip" install --force-reinstall ./dist/commoncode-32.5.2-py3-none-any.whl
However, flot builds commoncode-33.0.0-py3-none-any.whl based on pyproject-commoncode.toml.
In the POSIX configure script (line 264), a wildcard is properly used:
"$CFG_BIN_DIR/pip" install --force-reinstall ./dist/commoncode*.whl
Proposed Solution
Update line 166 in configure.bat to handle the wildcard dynamically:
for %%f in (dist\commoncode*.whl) do "%CFG_BIN_DIR%\pip" install --force-reinstall "%%f"
Environment
- OS: Windows 10/11
- Python: 3.11
- Branch: develop
- Ngôn ngữ chính
- Python
- Star
- 2.7k
- Fork
- 871
- Merge trung bình
- 1 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- 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 aboutcode-org/scancode-toolkit
-
yarn.lock v1 with a scoped alias of an unscoped package yields no packages and no errorCó thể đã có người làm @Shubham-dev-stack đã nhận 6 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
aboutcode-org/scancode-toolkit#5466 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
package-lock.json dependencies report file_references as a list inside a listCó thể đã có người làm @Anbarasu2410 đã nhận 9 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
aboutcode-org/scancode-toolkit#5449 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
scancode aborts when encountering a broken RPM archiveCó thể đã có người làm @Ashutosh-Panda2004 đã nhận 14 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
aboutcode-org/scancode-toolkit#5407 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Four silent bugs: IsRequiredPhrase.license_expression returns None, find_in_path ignores later PATH changes, duplicate dict keys override license mappingsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 65/100
aboutcode-org/scancode-toolkit#5405 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
parse_maintainer_name_email returns empty name and wrong email when string has "@" but no angle bracketsCó thể đã có người làm @RohitSutar1823 đã nhận 15 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
aboutcode-org/scancode-toolkit#5402 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của aboutcode-org/scancode-toolkit
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
GoogleCloudPlatform/professional-services-data-validator#1899 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
mohanraj00/entelos#200 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Dead url in mise.tomlĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
-
sweep
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
bketelsen/truenas-mcp#77 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
sandbox-quantum/switch#2163 ·
Maintainer thường phản hồi trong vòng 1 ngày