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

Conda devcontainer not support on Apple Silicon: Architecture aarch64 unsupported #1192

Open
cedricvidal opened this issue Nov 18, 2024 · 2 comments

Comments

@cedricvidal
Copy link

Error logs

 > [dev_containers_target_stage 5/5] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=conda_0,target=/tmp/build-features-src/conda_0     cp -ar /tmp/build-features-src/conda_0 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/conda_0  && cd /tmp/dev-container-features/conda_0  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/conda_0:
0.112 ===========================================================================
0.112 Feature       : Conda
0.112 Description   : A cross-platform, language-agnostic binary package manager
0.112 Id            : ghcr.io/devcontainers/features/conda
0.112 Version       : 1.0.9
0.112 Documentation : https://github.com/devcontainers/
[2024-11-18T20:44:41.077Z] features/tree/main/src/conda
0.112 Options       :
0.112     VERSION="3.10"
0.112     ADDCONDAFORGE="false"
0.112 ===========================================================================
0.115 + export DEBIAN_FRONTEND=noninteractive
0.115 + DEBIAN_FRONTEND=noninteractive
0.116 + rm -rf '/var/lib/apt/lists/*'
0.117 ++ id -u
0.118 + '[' 0 -ne 0 ']'
0.118 + rm -f /etc/profile.d/00-restore-env.sh
0.119 ++ sh -lc 'echo $PATH'
0.122 + echo 'export PATH=/opt/conda/bin:/usr/local/python/current/bin:/usr/local/py-utils/bin:/usr/local/share/nvm/current/bin:/usr/local/bin:$PATH'
0.122 + chmod +x /etc/profile.d/00-restore-env.sh
0.123 + '[' vscode = auto ']'
0.123 + '[' vscode = automatic ']'
0.123 + '[' vscode = none ']'
0.123 + id -u vscode
0.123 ++ uname -m
0.124 + architecture=aarch64
0.124 + '[' aarch64 '!=' x86_64 ']'
0.124 + echo '(!) Architecture aarch64 unsupported'
0.124 (!) Architecture aarch64 unsupported
0.124 + exit 1
0.125 ERROR: Feature "Conda" (ghcr.io/devcontainers/features/co
[2024-11-18T20:44:41.077Z] nda) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/conda for help troubleshooting this error.
------
[2024-11-18T20:44:41.079Z] Dockerfile.extended:26
--------------------
  25 |     ENV PATH="/opt/conda/bin:${PATH}"
  26 | >>> RUN --mount=type=bind,from=dev_containers_feature_content_source,source=conda_0,target=/tmp/build-features-src/conda_0 \
  27 | >>>     cp -ar /tmp/build-features-src/conda_0 /tmp/dev-container-features \
  28 | >>>  && chmod -R 0755 /tmp/dev-container-features/conda_0 \
  29 | >>>  && cd /tmp/dev-container-features/conda_0 \
  30 | >>>  && chmod +x ./devcontainer-features-install.sh \
  31 | >>>  && ./devcontainer-features-install.sh \
  32 | >>>  && rm -rf /tmp/dev-container-features/conda_0
[2024-11-18T20:44:41.079Z]   33 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c cp -ar /tmp/build-features-src/conda_0 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/conda_0  && cd /tmp/dev-container-features/conda_0  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/conda_0" did not complete successfully: exit code: 1
@gauravsaini04
Copy link
Contributor

gauravsaini04 commented Nov 21, 2024

Hi @cedricvidal,
Anaconda doesn't support an aarch64 build yet.
See here and can look through more information in similar issues raised by users.

@rubensa
Copy link
Contributor

rubensa commented Nov 26, 2024

Miniconda supports arm64 (aarch64) architecture so it can be used instead of conda debian package that is only available for amd64 (x86_64) architecture.

Currently this limitation should be noticed in the NOTES.

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

No branches or pull requests

3 participants