Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aarch64 Linux docker images can't install pedalboard from pip #48

Closed
i opened this issue Dec 6, 2021 · 1 comment · Fixed by #47
Closed

aarch64 Linux docker images can't install pedalboard from pip #48

i opened this issue Dec 6, 2021 · 1 comment · Fixed by #47

Comments

@i
Copy link
Contributor

i commented Dec 6, 2021

Simple example running on an m1 macbook:

Dockerfile:

FROM python
RUN pip install pedalboard

Build attempt:

docker build .
[+] Building 2.6s (5/5) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                                                                                                                                   0.0s
 => => transferring dockerfile: 81B                                                                                                                                                                                                                                                                                                                                    0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                                                                                                                      0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/python:latest                                                                                                                                                                                                                                                                                                       0.7s
 => CACHED [1/2] FROM docker.io/library/python@sha256:a1fba384d3aa879533a271ab5d73965fbd3385648f38835dacd07e519f1c7c3f                                                                                                                                                                                                                                                 0.0s
 => ERROR [2/2] RUN pip install pedalboard                                                                                                                                                                                                                                                                                                                             1.8s
------
 > [2/2] RUN pip install pedalboard:
#5 1.233 ERROR: Could not find a version that satisfies the requirement pedalboard (from versions: none)
#5 1.233 ERROR: No matching distribution found for pedalboard
#5 1.718 WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
#5 1.718 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
------
executor failed running [/bin/sh -c pip install pedalboard]: exit code: 1

This is happening because there's no aarch64 builds registered.

A temporary workaround is to use docker buildx like this.

docker buildx build --platform linux/amd64 .

A better solution is supporting aarch64 directly on linux. I've created a pull request here to do this.

@psobot psobot changed the title Linux docker images can't install pedalboard from pip aarch64 Linux docker images can't install pedalboard from pip Dec 29, 2021
@psobot psobot linked a pull request Dec 30, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
@i and others