You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anaconda Distribution (formerly Anaconda Individual Edition)
Miniconda
Anaconda.org
What happened?
Downloaded and installed Miniconda3-latest-Linux-aarch64.sh on an Ubuntu 20.04 VM on Graviton2 and discovered that certain Python packages with binary dependencies will not install properly due to bad CFLAGS directives causing compiler errors in the distribution's lib/_sysconfigdata__linux_aarch64-linux-gnu.py file that is used by setuptools and distutils to compile python modules from source.
Inspecting this file I see mal-formed compiler directives for AWS Graviton instances:
The vended Miniconda and Anaconda distributions should come with well formed information in lib/_sysconfigdata__linux_aarch64-linux-gnu.py so it can used in the same way as any python distribution.
Conda info
active environment : base
active env location : /home/ubuntu/miniconda3
shell level : 1
user config file : /home/ubuntu/.condarc
populated config files :
conda version : 4.12.0
conda-build version : not installed
python version : 3.9.12.final.0
virtual packages : __linux=5.15.0=0
__glibc=2.31=0
__unix=0=0
__archspec=1=aarch64
base environment : /home/ubuntu/miniconda3 (writable)
conda av data dir : /home/ubuntu/miniconda3/etc/conda
conda av metadata url : None
channel URLs : https://repo.anaconda.com/pkgs/main/linux-aarch64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/linux-aarch64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /home/ubuntu/miniconda3/pkgs
/home/ubuntu/.conda/pkgs
envs directories : /home/ubuntu/miniconda3/envs
/home/ubuntu/.conda/envs
platform : linux-aarch64
user-agent : conda/4.12.0 requests/2.27.1 CPython/3.9.12 Linux/5.15.0-1026-aws ubuntu/20.04.5 glibc/2.31
UID:GID : 1000:1000
netrc file : None
offline mode : False
There is a _sysconfigdata__linux_aarch64-linux-gnu.py.orig in the same directory as the bad _sysconfigdata__linux_aarch64-linux-gnu.py file and that appears to have properly formed compiler directives. Why is there an .orig file in the release build? Was there a bad merge?
There was indeed an issue with a previous python 3.9.12 package (build hc137634_0) for linux-aarch64, which was included in older Miniconda installers.
You can then install the new Miniconda with the following command: bash Miniconda3-latest-Linux-aarch64.sh
Alternatively, if you wish to stay with an existing Miniconda installation, you can upgrade python with conda update python, and this should also resolve the issue. The latest python version for linux-aarch64 is currently 3.9.15 build h89984f6_2.
Checklist
Impacted product
What happened?
Downloaded and installed Miniconda3-latest-Linux-aarch64.sh on an Ubuntu 20.04 VM on Graviton2 and discovered that certain Python packages with binary dependencies will not install properly due to bad CFLAGS directives causing compiler errors in the distribution's lib/_sysconfigdata__linux_aarch64-linux-gnu.py file that is used by setuptools and distutils to compile python modules from source.
Inspecting this file I see mal-formed compiler directives for AWS Graviton instances:
-n1
->-mcpu=neoverse-n1
.2-a+fp16+rcpc+dotprod+crypto
->-march=armv8.2-a+fp16+rcpc+dotprod+crypto
Others have seen this behavior: https://stackoverflow.com/questions/74739356/python-cant-install-ta-lib-in-oracle-arm64-vm-ubuntu-20-04
The workaround is use the system python.
Expected behavior or outcome
The vended Miniconda and Anaconda distributions should come with well formed information in lib/_sysconfigdata__linux_aarch64-linux-gnu.py so it can used in the same way as any python distribution.
Conda info
Conda list
Additional information
No response
The text was updated successfully, but these errors were encountered: