Docker build fails on Apple Silicon (arm64) — only x86_64 wheels pinned for extractcode-7z, extractcode-libarchive, typecode-libmagic
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 86/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- docker, docker-compose, python
- Bereich
- build-system
Rechercherichtung
Prüfe requirements.txt und requirements-dev.txt auf die festgelegten Versionen von extractcode-7z, extractcode-libarchive und typecode-libmagic, die auf .210531 gesetzt sind. Aktualisiere beide Dateien auf die kompatiblen älteren Pins, die im Report vorgeschlagen werden, damit alle Umgebungen dieselbe Änderung erhalten. Reproduziere das Problem mit make envfile und anschließend docker compose build auf einem Apple-Silicon-Setup (arm64/aarch64). Als erledigt gilt die Aufgabe, wenn der Build erfolgreich ohne den Fehler ResolutionImpossible durchläuft.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
docker compose build fails on native Apple Silicon (arm64) with a pipResolutionImpossible error.
This doesn't seem to be a version conflict but is instead caused due to the pinned versions
of three native dependencies in requirements.txt and requirements-dev.txt only shipping x86_64 wheels,
with no arm64 or aarch64 build available.
Environment
- macOS Ventura 13.7.3, Apple Silicon
- Docker via Colima (
--arch aarch64 --vm-type=vz) - Fresh clone, no other modifications
Steps to reproduce
- Clone the repo on an Apple Silicon Mac
make envfiledocker compose build
Actual behavior
ERROR: Cannot install extractcode[full]==31.0.0 because these package versions have conflicting dependencies.
The conflict is caused by:
extractcode[full] 31.0.0 depends on extractcode-7z>=16.5.210525; extra == "full"
The user requested (constraint) extractcode-7z==16.5.210531
ERROR: ResolutionImpossible
Root cause
requirements.txt and requirements-dev.txt both pin:
extractcode-7z==16.5.210531extractcode-libarchive==3.5.1.210531typecode-libmagic==5.39.210531
Checking PyPI, these specific versions publish wheels only for win_amd64,
manylinux1_x86_64, and macosx_10_14_x86_64.
No arm64/aarch64 wheels are available for .210531 for any of the three packages.
On an Apple Silicon host, pip therefore has no compatible wheel
available to satisfy the pinned versions. However, it reports a dependency conflict
rather than clearly indicating that a compatible wheel is unavailable,
which obscures the actual cause of the installation failure.
Proposed fix
The immediately preceding releases of the same three packages do ship
arm64 wheels, and still satisfy the >= minimums that extractcode[full]
and typecode[full] declare:
| Package | Current pin | Proposed pin | Satisfies declared minimum? |
|---|---|---|---|
extractcode-7z |
16.5.210531 |
16.5.210525 |
yes (>=16.5.210525) |
extractcode-libarchive |
3.5.1.210531 |
3.5.1.210525 |
yes (>=3.5.1.210525) |
typecode-libmagic |
5.39.210531 |
5.39.210223 |
yes (>=5.39.210223) |
This needs to be applied to both requirements.txt and requirements-dev.txt.
They pin these separately so fixing only one still breaks the other.
Verification
With the above three-line change in both files:
docker compose buildcompletes natively as arm64- Full stack (postgres, redis, nginx, web, scheduler, both rqworkers)
boots cleanly - Test suite: 882 passed, 1 skipped, 1 failed — the one failure is
unrelated and caused by a git-commit-hash injection intosettings.py
Happy to open a PR with this fix if it's welcome — wanted to inquire
whether there was a reason these specific versions were pinned.
- Vorherrschende Sprache
- Python
- Sterne
- 716
- Forks
- 347
- Ø Merge
- 13 Std. 47 Min.
- Gemergte PRs (30 T.)
- 8
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Kein Beitragsleitfaden
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/vulnerablecode
-
OSV parser drops all crates.io affected entries because the ecosystem mapping uses cargoEvtl. vergeben @Ashutosh-Panda2004 hat das vor 3 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
aboutcode-org/vulnerablecode#2485 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Docker Compose setup fails on wait-for-it host web:8000 and missing runtime .envEvtl. vergeben @Anurag-S1ngh hat das vor 6 Tagen übernommen. Offen
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 77/100
aboutcode-org/vulnerablecode#2477 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
OVAL parser corrupts version bounds when the epoch is 10, 20 or the version contains "0:"Evtl. vergeben @Ashutosh-Panda2004 hat das vor 4 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
aboutcode-org/vulnerablecode#2474 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Get NuGet package versions from federated PURL version data in https://github.com/aboutcode-data/Evtl. wieder frei @Anshi321 hat das vor 25 Tagen übernommen, und es ist kein Pull Request offen. Offenbug data-quality
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
aboutcode-org/vulnerablecode#2418 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
We do not collect the affected range for Gitlab advisoriesEvtl. vergeben @akashrajeev hat das vor 12 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
aboutcode-org/vulnerablecode#2412 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in aboutcode-org/vulnerablecode
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
pydantic/pydantic-ai#12091 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
Enhance blog readabilityOffenCSS enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
pychess/pychess-variants#2448 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Bump locked PyTensor so Apple clang 21 does not pass -ld64Evtl. vergeben @drbenvincent hat das heute übernommen. Offenbug dev ops
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 2 Tagen
-
ai_p2 bug comp-datalake
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
ClickHouse/ClickHouse#128306 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag