conda-forge / miniforge

A conda-forge distribution.
https://conda-forge.org/miniforge
Other
5.73k stars 303 forks source link

Can't install large packages in Termux-proot #568

Open SHLEM666 opened 3 months ago

SHLEM666 commented 3 months ago

Solution to issue cannot be found in the documentation.

Issue

When I try to install SageMath package on Android device with conda or mamba the following error occurs

ERROR conda.core.link:_execute(945): An error occurred while installing package 'conda-forge::ipykernel-6.29.3-pyhd33586a_0'.

[Errno 2] No such file or directory: '/root/miniforge3/pkgs/ipykernel-6.29.3-pyhd33586a_0/site-packages/ipykernel/inprocess/__init__.py'

Moreover, at several installation attempts, this error occurs with different packages. E.g. ipython, sagelib, python, giac, nbconvert, pythran, sphinx, notebook, rpy2 and many-many others.

Additionally, I tried splitting the SageMath package installation into parts, but result was the same. The error always has the same form: No such file or directory: '/root/miniforge3/pkgs/package_name-version-build/some/path/__init__.py

Commands to reproduce

# in termux
yes | pkg update
yes | pkg install proot-distro
proot-distro install debian
proot-distro login debian

# in proot debian
apt update
yes | apt upgrade
curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh
bash Miniforge3-Linux-aarch64.sh

# relogin
exit
proot-distro login debian

conda create -n sage sage=10.2

Detailed information

The full installation output is too large to post here output.txt

Environment info active environment : base active env location : /root/miniforge3 shell level : 1 user config file : /root/.condarc populated config files : /root/miniforge3/.condarc conda version : 23.11.0 conda-build version : not installed python version : 3.10.13.final.0 solver : libmamba (default) virtual packages : __archspec=1=aarch64 __conda=23.11.0=0 __glibc=2.36=0 __linux=6.2.1=0 __unix=0=0 base environment : /root/miniforge3 (writable) conda av data dir : /root/miniforge3/etc/conda conda av metadata url : None channel URLs : https://conda.anaconda.org/conda-forge/linux-aarch64 https://conda.anaconda.org/conda-forge/noarch package cache : /root/miniforge3/pkgs /root/.conda/pkgs envs directories : /root/miniforge3/envs /root/.conda/envs platform : linux-aarch64 user-agent : conda/23.11.0 requests/2.31.0 CPython/3.10.13 Linux/6.2.1-PRoot-Distro debian/12.5 glibc/2.36 solver/libmamba conda-libmamba-solver/23.12.0 libmambapy/1.5.5 UID:GID : 0:0 netrc file : None offline mode : False

Hardware

Software

[!NOTE] On Raspberry Pi 3 Model B (aarch64, 1Gb ram) + Raspberry OS lite 64 bit Installation with the same commands completes successfully

hmaarrfk commented 3 months ago

I think there might have been a bug in conda and libmamba's solver in the previous version.

Try the latest version of miniforge's installer (it updates the default package).

Apparently the next version should be even better in terms of memory limitations.

PS. not many of us use Termux so that is why we are all hesitant to reply

SHLEM666 commented 3 months ago

Thank you, I didn’t expect a quick response)).

Miniforge3 v24.1.2-0 test showed that the error still occurs.