[BUG] configure.bat fails on Windows: hardcoded commoncode-32.5.2-py3-none-any.whl path does not exist
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- python
- Bereich
- build-system
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Python
- Sterne
- 2.7k
- Forks
- 871
- Ø Merge
- 1 T. 10 Std.
- Gemergte PRs (30 T.)
- 3
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus aboutcode-org/scancode-toolkit
-
yarn.lock v1 with a scoped alias of an unscoped package yields no packages and no errorEvtl. vergeben @Shubham-dev-stack hat das vor 6 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
aboutcode-org/scancode-toolkit#5466 ·
Maintainer antworten meist innerhalb von 1 Tag
-
package-lock.json dependencies report file_references as a list inside a listEvtl. vergeben @Anbarasu2410 hat das vor 10 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
aboutcode-org/scancode-toolkit#5449 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
scancode aborts when encountering a broken RPM archiveEvtl. vergeben @Ashutosh-Panda2004 hat das vor 14 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
aboutcode-org/scancode-toolkit#5407 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Four silent bugs: IsRequiredPhrase.license_expression returns None, find_in_path ignores later PATH changes, duplicate dict keys override license mappingsEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenbug
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 65/100
aboutcode-org/scancode-toolkit#5405 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
parse_maintainer_name_email returns empty name and wrong email when string has "@" but no angle bracketsEvtl. vergeben @RohitSutar1823 hat das vor 15 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
aboutcode-org/scancode-toolkit#5402 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in aboutcode-org/scancode-toolkit
Ähnliche Issues
-
Internal ErrorOffenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
frappe/frappe_docker#2071 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug python
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
traceloop/openllmetry#4717 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
The-Pocket/PocketFlow#161 ·
-
[Bug]: Webapp workspace fails to render in Safari — "Can't find variable: requestIdleCallback"Offencomp/desktop P2 type/bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
NousResearch/hermes-agent#157702 ·
Maintainer antworten meist innerhalb von 1 Tag
-
scibench_physics / scibench_chemistry: a correct answer scores 0 when the unit has a power of tenEvtl. vergeben @BahaaMattar hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
EvolvingLMMs-Lab/lmms-eval#1699 ·
Maintainer antworten meist innerhalb von 1 Tag