Open sanousi opened 1 month ago
Have you installed python-numpy package before installing statsmodels?
Yes I did and I received this error message when I tried to install statsmodels: ~ $ pip install statsmodels Collecting statsmodels Downloading statsmodels-0.14.2.tar.gz (20.4 MB) ━━━━━━━━━━━━ 20.4/20.4 MB 1.6 MB/s eta 0:00:00 Installing build dependencies ... error error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [97 lines of output] Collecting setuptools>=69.0.2 Downloading setuptools-70.3.0-py3-none-any.whl.metadata (5.8 kB) Collecting cython<4,>=3.0.10 Downloading Cython-3.0.10-py2.py3-none-any.whl.metadata (3.2 kB) Collecting numpy<3,>=2.0.0rc1 Downloading numpy-2.0.0.tar.gz (18.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.3/18.3 MB 1.1 MB/s eta 0:00:00 Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'error' error: subprocess-exited-with-error
× pip subprocess to install backend dependencies did not run
successfully. │ exit code: 1 ╰─> [69 lines of output] Collecting patchelf>=0.11.0 Downloading patchelf-0.17.2.1.tar.gz (167 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 167.5/167.5 kB 339.1 kB/s eta 0:00:00 Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting ninja>=1.8.2 Downloading ninja-1.11.1.1.tar.gz (132 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.4/132.4 kB 341.4 kB/s eta 0:00:00 Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: patchelf, ninja Building wheel for patchelf (pyproject.toml): started Building wheel for patchelf (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error
× Building wheel for patchelf (pyproject.toml) did not run
successfully. │ exit code: 1 ╰─> [11 lines of output] Traceback (most recent call last): File "/data/data/com.termux/files/usr/tmp/pip-build-env-0pfdqbxl/overlay/lib/python3.11/site-packages/skbuild/setuptools_wrap.py", line 643, in setup cmkr = cmaker.CMaker(cmake_executable) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/tmp/pip-build-env-0pfdqbxl/overlay/lib/python3.11/site-packages/skbuild/cmaker.py", line 145, in init self.cmake_version = get_cmake_version(self.cmake_executable)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/tmp/pip-build-env-0pfdqbxl/overlay/lib/python3.11/site-packages/skbuild/cmaker.py", line 102, in get_cmake_version raise SKBuildError(msg) from err
Problem with the CMake installation, aborting build.
CMake executable is cmake [end of output]
note: This error originates from a subprocess, and is likely
not a problem with pip. ERROR: Failed building wheel for patchelf Building wheel for ninja (pyproject.toml): started Building wheel for ninja (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error
× Building wheel for ninja (pyproject.toml) did not run
successfully. │ exit code: 1 ╰─> [15 lines of output]
/data/data/com.termux/files/usr/tmp/pip-build-env-wbokzx4h/overlay/lib/python3.11/site-packages/setuptools_scm/git.py:312: UserWarning: git archive did not support describe output warnings.warn("git archive did not support describe output")
/data/data/com.termux/files/usr/tmp/pip-build-env-wbokzx4h/overlay/lib/python3.11/site-packages/setuptools_scm/git.py:331: UserWarning: unprocessed git archival found (no export subst applied) warnings.warn("unprocessed git archival found (no export subst applied)") Traceback (most recent call last): File "/data/data/com.termux/files/usr/tmp/pip-build-env-wbokzx4h/overlay/lib/python3.11/site-packages/skbuild/setuptools_wrap.py", line 643, in setup cmkr = cmaker.CMaker(cmake_executable) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/tmp/pip-build-env-wbokzx4h/overlay/lib/python3.11/site-packages/skbuild/cmaker.py", line 145, in init self.cmake_version = get_cmake_version(self.cmake_executable)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/tmp/pip-build-env-wbokzx4h/overlay/lib/python3.11/site-packages/skbuild/cmaker.py", line 102, in get_cmake_version raise SKBuildError(msg) from err
Problem with the CMake installation, aborting build.
CMake executable is cmake [end of output]
note: This error originates from a subprocess, and is likely
not a problem with pip. ERROR: Failed building wheel for ninja Failed to build patchelf ninja ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (patchelf, ninja) [end of output]
note: This error originates from a subprocess, and is likely not a
problem with pip. error: subprocess-exited-with-error
× pip subprocess to install backend dependencies did not run
successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a
problem with pip. [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. ~ $ And her a list of installed packages so far: ~ $ pkg list-installed apt/now 2.9.4-2 aarch64 [installed,upgradable to: 2.9.6] bash/stable,now 5.2.26-2 aarch64 [installed] ca-certificates/now 2024.03.11-2 all [installed,upgradable to: 2024.07.02] clang/stable,now 18.1.8 aarch64 [installed,automatic] command-not-found/now 2.4.0-30 aarch64 [installed,upgradable to: 2.4.0-33] coreutils/stable,now 9.5 aarch64 [installed] curl/stable,now 8.8.0 aarch64 [installed] dash/stable,now 0.5.12 aarch64 [installed] debianutils/now 5.19 aarch64 [installed,upgradable to: 5.20] diffutils/stable,now 3.10 aarch64 [installed] dpkg/stable,now 1.22.6-3 aarch64 [installed] findutils/stable,now 4.9.0-3 aarch64 [installed] gawk/stable,now 5.3.0 aarch64 [installed] gdbm/stable,now 1.23 aarch64 [installed,automatic] glib/stable,now 2.80.4 aarch64 [installed,automatic] gpgv/stable,now 2.4.5-5 aarch64 [installed] grep/stable,now 3.11 aarch64 [installed] less/now 633-1 aarch64 [installed,upgradable to: 661] libandroid-posix-semaphore/stable,now 0.1-3 aarch64 [installed,automatic] libassuan/stable,now 2.5.7 aarch64 [installed] libbz2/stable,now 1.0.8-7 aarch64 [installed,automatic] libc++/stable,now 26d aarch64 [installed] libcap-ng/stable,now 0.8.5 aarch64 [installed] libcompiler-rt/stable,now 18.1.8 aarch64 [installed,automatic] libcrypt/stable,now 0.2-5 aarch64 [installed,automatic] libcurl/stable,now 8.8.0 aarch64 [installed] libexpat/stable,now 2.6.2 aarch64 [installed,automatic] libffi/stable,now 3.4.6-1 aarch64 [installed,automatic] libgcrypt/stable,now 1.10.3-1 aarch64 [installed] libgmp/stable,now 6.3.0 aarch64 [installed] libgnutls/stable,now 3.8.5-1 aarch64 [installed] libgpg-error/stable,now 1.49 aarch64 [installed] libiconv/stable,now 1.17-1 aarch64 [installed,automatic] libidn2/stable,now 2.3.7 aarch64 [installed] libllvm/stable,now 18.1.8 aarch64 [installed,automatic] liblzma/stable,now 5.6.2 aarch64 [installed] libmd/stable,now 1.1.0 aarch64 [installed] libmpfr/stable,now 4.2.1 aarch64 [installed] libnettle/stable,now 3.9.1 aarch64 [installed] libnghttp2/stable,now 1.62.1 aarch64 [installed] libnghttp3/stable,now 1.4.0 aarch64 [installed] libnpth/stable,now 1.6-2 aarch64 [installed] libopenblas/stable,now 0.3.27 aarch64 [installed,automatic] libsmartcols/stable,now 2.39.3-4 aarch64 [installed] libsqlite/stable,now 3.46.0 aarch64 [installed,automatic] libssh2/stable,now 1.11.0 aarch64 [installed] libunistring/stable,now 1.1 aarch64 [installed] libxml2/stable,now 2.13.2 aarch64 [installed,automatic] lld/stable,now 18.1.8 aarch64 [installed,automatic] llvm/stable,now 18.1.8 aarch64 [installed,automatic] make/stable,now 4.4.1 aarch64 [installed,automatic] nano/stable,now 8.0 aarch64 [installed] ncurses-ui-libs/stable,now 6.5.20240519-6 aarch64 [installed,automatic] ncurses/stable,now 6.5.20240519-6 aarch64 [installed] ndk-sysroot/stable,now 26d-2 aarch64 [installed,automatic] openssl/stable,now 3.2.1-1 aarch64 [installed] pcre2/stable,now 10.44 aarch64 [installed] pkg-config/stable,now 0.29.2-2 aarch64 [installed,automatic] procps/stable,now 3.3.17-5 aarch64 [installed] psmisc/stable,now 23.7 aarch64 [installed] python-ensurepip-wheels/stable,now 3.11.9-2 all [installed,automatic] python-numpy/stable,now 1.26.4-1 aarch64 [installed] python-pip/stable,now 24.1.2 all [installed,automatic] python/stable,now 3.11.9-2 aarch64 [installed] readline/stable,now 8.2.10 aarch64 [installed] resolv-conf/stable,now 1.3 aarch64 [installed,automatic] sed/stable,now 4.9-1 aarch64 [installed] tar/stable,now 1.35-1 aarch64 [installed] termux-am/stable,now 0.8.0-1 all [installed] termux-exec/now 1.3 aarch64 [installed,upgradable to: 1.4] termux-keyring/stable,now 3.15 all [installed] termux-licenses/stable,now 2.0-4 all [installed] termux-tools/stable,now 3.0.7 all [installed] util-linux/stable,now 2.39.3-4 aarch64 [installed] xxhash/stable,now 0.8.2 aarch64 [installed] zlib/stable,now 1.3.1 aarch64 [installed] zstd/stable,now 1.5.6 aarch64 [installed,automatic] ~ $ I appreciate your help!
في الاثنين، ١٥ يوليو ٢٠٢٤, ١٠:٥٧ Biswapriyo Nath @.***> كتب:
Have you installed python-numpy package before installing statsmodels?
— Reply to this email directly, view it on GitHub https://github.com/termux-play-store/termux-issues/issues/41#issuecomment-2228008917, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFK5GR5TJYTQ4MV3WSXD6LLZMOFJFAVCNFSM6AAAAABKYDBH6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRYGAYDQOJRG4 . You are receiving this because you authored the thread.Message ID: @.***>
There was a similar issue before https://github.com/termux/termux-packages/issues/19960
Problem description
I tried to install statsmodels library in termux with pip command and I received this error:
Welcome to Termux
Docs: https://doc.termux.com Community: https://social.termux.com
Working with packages:
Report issues at https://bugs.termux.com ~ $ pkg install statsmodels Get:1 https://termux.net stable InRelease [1086 B] Get:2 https://termux.net stable/main aarch64 Packag es [227 kB] Fetched 229 kB in 2s (142 kB/s) All packages are up to date. Error: Unable to locate package statsmodels ~ $ pip install statsmodels Collecting statsmodels Downloading statsmodels-0.14.2.tar.gz (20.4 MB) ━━━━━━━━━━━━ 20.4/20.4 MB 2.5 MB/s eta 0:00:00 Installing build dependencies ... error error: subprocess-exited-with-error
× pip subprocess to install build dependencies di d not run successfully. │ exit code: 1 ╰─> [37 lines of output] Collecting setuptools>=69.0.2 Using cached setuptools-70.3.0-py3-none-any .whl.metadata (5.8 kB) Collecting cython<4,>=3.0.10 Using cached Cython-3.0.10-py2.py3-none-any .whl.metadata (3.2 kB) Collecting numpy<3,>=2.0.0rc1 Using cached numpy-2.0.0.tar.gz (18.3 MB) Installing build dependencies: started Installing build dependencies: finished wit h status 'done' Getting requirements to build wheel: starte d Getting requirements to build wheel: finish ed with status 'done' Preparing metadata (pyproject.toml): starte d Preparing metadata (pyproject.toml): finish ed with status 'error' error: subprocess-exited-with-error
ot run successfully. │ exit code: 1 ╰─> [10 lines of output]
/data/data/com.termux/files/usr/bin/p ython3.11 /data/data/com.termux/files/usr/tmp/pip-i nstall-8ppasra6/numpy_bea510c2f0674a8abc55fa799cb39 f0e/vendored-meson/meson/meson.py setup /data/data/ com.termux/files/usr/tmp/pip-install-8ppasra6/numpy _bea510c2f0674a8abc55fa799cb39f0e /data/data/com.te rmux/files/usr/tmp/pip-install-8ppasra6/numpy_bea51 0c2f0674a8abc55fa799cb39f0e/.mesonpy-3m1zfoj1 -Dbui ldtype=release -Db_ndebug=if-release -Db_vscrt=md - -native-file=/data/data/com.termux/files/usr/tmp/pi p-install-8ppasra6/numpy_bea510c2f0674a8abc55fa799c b39f0e/.mesonpy-3m1zfoj1/meson-python-native-file.i ni The Meson build system Version: 1.2.99 Source dir: /data/data/com.termux/files /usr/tmp/pip-install-8ppasra6/numpy_bea510c2f0674a8 abc55fa799cb39f0e Build dir: /data/data/com.termux/files/ usr/tmp/pip-install-8ppasra6/numpy_bea510c2f0674a8a bc55fa799cb39f0e/.mesonpy-3m1zfoj1 Build type: native build
ata/data/com.termux/files/usr/bin/python3.11 /data/ data/com.termux/files/usr/tmp/pip-install-8ppasra6/ numpy_bea510c2f0674a8abc55fa799cb39f0e/numpy/_build _utils/gitversion.py` failed with status 1.
om.termux/files/usr/tmp/pip-install-8ppasra6/numpy_ bea510c2f0674a8abc55fa799cb39f0e/.mesonpy-3m1zfoj1/ meson-logs/meson-log.txt [end of output]
ss, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package menti oned above, not pip. hint: See above for details. [end of output]
note: This error originates from a subprocess, an d is likely not a problem with pip. error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. ~ $ I don't know what the problem is?
What steps will reproduce the bug?
using pip to install statsmodels , using pip to install scipy using pip to install pandas using pip to install numpy
What is the expected behavior?
installing libraries successfully.
System information