Docker build fails on Apple Silicon (arm64) — only x86_64 wheels pinned for extractcode-7z, extractcode-libarchive, typecode-libmagic
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 86/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- docker, docker-compose, python
- Área
- build-system
Línea de trabajo
Comprueba en requirements.txt y requirements-dev.txt las versiones fijadas de extractcode-7z, extractcode-libarchive y typecode-libmagic establecidas en .210531. Actualiza ambos archivos a las versiones fijadas más antiguas compatibles sugeridas en el informe, para que todos los entornos reciban el mismo cambio. Reproduce el problema con make envfile seguido de docker compose build en una configuración Apple Silicon (arm64/aarch64). Se considera terminado cuando la compilación se ejecuta correctamente sin el error ResolutionImpossible.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 716
- Forks
- 347
- Merge medio
- 12 h 15 min
- PR fusionados (30 d)
- 9
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de aboutcode-org/vulnerablecode
-
OSV parser drops all crates.io affected entries because the ecosystem mapping uses cargoPosiblemente ocupada @Ashutosh-Panda2004 la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
aboutcode-org/vulnerablecode#2485 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Docker Compose setup fails on wait-for-it host web:8000 and missing runtime .envPosiblemente ocupada @Anurag-S1ngh la tomó hace 6 días. Abierto
Dificultad 2/5 Medio día Aptitud para principiantes 77/100
aboutcode-org/vulnerablecode#2477 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
OVAL parser corrupts version bounds when the epoch is 10, 20 or the version contains "0:"Posiblemente ocupada @Ashutosh-Panda2004 la tomó hace 4 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
aboutcode-org/vulnerablecode#2474 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Get NuGet package versions from federated PURL version data in https://github.com/aboutcode-data/Quizá libre de nuevo @Anshi321 la tomó hace 25 días y no hay ningún pull request abierto. Abiertobug data-quality
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
aboutcode-org/vulnerablecode#2418 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
We do not collect the affected range for Gitlab advisoriesPosiblemente ocupada @akashrajeev la tomó hace 12 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
aboutcode-org/vulnerablecode#2412 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de aboutcode-org/vulnerablecode
Issues similares
-
infrastructure
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
NatLabRockies/H2Integrate#977 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
topoteretes/cognee#6470 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
area:docs priority:p2 type:docs wave:9
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
jejjohnson/radtrax#293 ·
Los mantenedores suelen responder en 1 día
-
bug core plugins
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
bunkerity/bunkerweb#4121 · 1 comentario ·
Los mantenedores suelen responder en 1 día