Skip to content

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

Description

@cedricvidal

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions