termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.32k stars 3.06k forks source link

Pip : pyinstaller error #22098

Closed shaheen-coder closed 1 week ago

shaheen-coder commented 1 week ago

Problem description

I try to install pyinstaller then Im getting build error

What steps will reproduce the bug?

pip3 install pyinstaller


Collecting pyinstaller
  Using cached pyinstaller-6.11.0.tar.gz (4.2 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: setuptools>=42.0.0 in /data/data/com.termux/files/usr/lib/python3.12/site-packages (from pyinstaller) (75.1.0)         Collecting altgraph (from pyinstaller)
  Using cached altgraph-0.17.4-py2.py3-none-any.whl.metadata (7.3 kB)
Collecting pyinstaller-hooks-contrib>=2024.8 (from pyinstaller)
  Using cached pyinstaller_hooks_contrib-2024.9-py3-none-any.whl.metadata (16 kB)
Collecting packaging>=22.0 (from pyinstaller)
  Using cached packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Using cached packaging-24.1-py3-none-any.whl (53 kB)
Using cached pyinstaller_hooks_contrib-2024.9-py3-none-any.whl (336 kB)
Using cached altgraph-0.17.4-py2.py3-none-any.whl (21 kB)
Building wheels for collected packages: pyinstaller
  Building wheel for pyinstaller (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pyinstaller (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      /data/data/com.termux/files/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py:251: _IncompatibleBdistWheel: wheel.bdist_wheel is deprecated, please import it from setuptools
      !!

              ********************************************************************************
              Ensure that any custom bdist_wheel implementation is a subclass of
              setuptools.command.bdist_wheel.bdist_wheel.

              By 2025-Oct-15, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.

              See https://github.com/pypa/wheel/pull/631 for details.
              ********************************************************************************

      !!
        return _build_backend().build_wheel(wheel_directory, config_settings,
      running bdist_wheel
      running clean
      'build/lib' does not exist -- can't clean it
      'build/bdist.linux-aarch64' does not exist -- can't clean it
      'build/scripts-3.12' does not exist -- can't clean it
      running build
      running build_bootloader
      error: [Errno 2] No such file or directory: 'ldd'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyinstaller
Failed to build pyinstaller
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pyinstaller)

What is the expected behavior?

uhm to be installed successfully

System information

Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=23937
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages-cf.termux.dev/apt/termux-main stable main
# sources.list.d/pointless.list
deb https://its-pointless.github.io/files/21 termux extras
# x11-repo (sources.list.d/x11.list)
deb https://packages-cf.termux.dev/apt/termux-x11 x11 main
Updatable packages:
angle-android/stable 2.1.23487-faae3c32-1 aarch64 [upgradable from: 2.1.23487-faae3c32-0]
bsdtar/stable 3.7.7 aarch64 [upgradable from: 3.7.6]
c-ares/stable 1.34.2 aarch64 [upgradable from: 1.33.1]
clang/stable 19.1.3 aarch64 [upgradable from: 19.1.1-1]
cmake/stable 3.30.5 aarch64 [upgradable from: 3.30.4]
command-not-found/stable 2.4.0-49 aarch64 [upgradable from: 2.4.0-45]
cups/stable 2.4.11 aarch64 [upgradable from: 2.4.10]
curl/stable 8.10.1-2 aarch64 [upgradable from: 8.10.1-1]
desktop-file-utils/x11 0.28 aarch64 [upgradable from: 0.27]
eza/stable 0.20.6 aarch64 [upgradable from: 0.20.1]
fluidsynth/stable 2.4.0 aarch64 [upgradable from: 2.3.7]
glib-bin/stable 2.82.2 aarch64 [upgradable from: 2.80.5-1]
glib/stable 2.82.2 aarch64 [upgradable from: 2.80.5-1]
gnupg/stable 2.4.5-3 aarch64 [upgradable from: 2.4.5-2]
gpgme/stable 1.23.2-3 aarch64 [upgradable from: 1.23.2-2]
gpgmepp/stable 1.23.2-3 aarch64 [upgradable from: 1.23.2-2]
gpgv/stable 2.4.5-3 aarch64 [upgradable from: 2.4.5-2]
gst-plugins-bad/stable 1.24.9 aarch64 [upgradable from: 1.24.8]
gst-plugins-base/stable 1.24.9 aarch64 [upgradable from: 1.24.8]
gst-plugins-good/stable 1.24.9 aarch64 [upgradable from: 1.24.8]
gstreamer/stable 1.24.9 aarch64 [upgradable from: 1.24.8]
gtk2/x11 2.24.33-5 aarch64 [upgradable from: 2.24.33-4]
gtk4/x11 4.16.5 aarch64 [upgradable from: 4.16.2]
imath/stable 3.1.12 aarch64 [upgradable from: 3.1.11]
inetutils/stable 2.4-2 aarch64 [upgradable from: 2.4-1]
libadwaita/x11 1.6.1-1 aarch64 [upgradable from: 1.6.0]
libarchive/stable 3.7.7 aarch64 [upgradable from: 3.7.6]
libassuan/stable 3.0.1-2 aarch64 [upgradable from: 2.5.7-1]
libcompiler-rt/stable 19.1.3 aarch64 [upgradable from: 19.1.1-1]
libcurl/stable 8.10.1-2 aarch64 [upgradable from: 8.10.1-1]
libdav1d/stable 1.5.0 aarch64 [upgradable from: 1.4.3]
libepoxy/stable 1.5.10-2 aarch64 [upgradable from: 1.5.10-1]
libgit2/stable 1.8.4 aarch64 [upgradable from: 1.8.1]
libgmp/stable 6.3.0-1 aarch64 [upgradable from: 6.3.0]
libheif/stable 1.19.1 aarch64 [upgradable from: 1.18.2]
libllvm/stable 19.1.3 aarch64 [upgradable from: 19.1.1-1]
libltdl/stable 2.5.3 aarch64 [upgradable from: 2.4.7-4]
libnettle/stable 3.10 aarch64 [upgradable from: 3.9.1]
libnghttp2/stable 1.64.0 aarch64 [upgradable from: 1.63.0]
libnspr/stable 4.36 aarch64 [upgradable from: 4.35]
libnss/stable 3.106 aarch64 [upgradable from: 3.105]
libopenmpt/stable 0.7.11 aarch64 [upgradable from: 0.7.10]
librsvg/stable 2.59.2 aarch64 [upgradable from: 2.58.3]
libsmartcols/stable 2.40.2-2 aarch64 [upgradable from: 2.40.2-1]
libssh2/stable 1.11.1 aarch64 [upgradable from: 1.11.0]
libtirpc/stable 1.3.6 aarch64 [upgradable from: 1.3.5]
libtool/stable 2.5.3 aarch64 [upgradable from: 2.4.7-4]
libtreesitter/stable 0.22.6-1 aarch64 [upgradable from: 0.22.6]
libunbound/stable 1.22.0 aarch64 [upgradable from: 1.21.1-1]
libunistring/stable 1.3 aarch64 [upgradable from: 1.1]
libuuid/stable 2.40.2-2 aarch64 [upgradable from: 2.40.2-1]
libuv/stable 1.49.2 aarch64 [upgradable from: 1.49.0]
libvpx/stable 1:1.15.0 aarch64 [upgradable from: 1:1.14.1]
libwayland/stable 1.23.1 aarch64 [upgradable from: 1.22.0-1]
libwnck/x11 43.1 aarch64 [upgradable from: 43.0-3]
libx264/stable 1:0.164.3191 aarch64 [upgradable from: 1:0.164.3101]
libxi/stable 1.8.2 aarch64 [upgradable from: 1.8.1]
libxmlb/stable 0.3.21 aarch64 [upgradable from: 0.3.19]
lld/stable 19.1.3 aarch64 [upgradable from: 19.1.1-1]
llvm/stable 19.1.3 aarch64 [upgradable from: 19.1.1-1]
mariadb/stable 2:11.5.2-2 aarch64 [upgradable from: 2:11.5.2-1]
mpg123/stable 1.32.9 aarch64 [upgradable from: 1.32.7]
ncurses-ui-libs/stable 6.5.20240831-2 aarch64 [upgradable from: 6.5.20240831-1]
ncurses-utils/stable 6.5.20240831-2 aarch64 [upgradable from: 6.5.20240831-1]
ncurses/stable 6.5.20240831-2 aarch64 [upgradable from: 6.5.20240831-1]
neovim/stable 0.10.2-2 aarch64 [upgradable from: 0.9.5-1]
opencv/x11 4.10.0-4 aarch64 [upgradable from: 4.10.0-3]
pinentry/stable 1.3.1-1 aarch64 [upgradable from: 1.3.1]
proot-distro/stable 4.17.2 all [upgradable from: 4.17.1]
python-ensurepip-wheels/stable 3.12.7-1 all [upgradable from: 3.12.7]
python-numpy/stable 2.1.3 aarch64 [upgradable from: 2.1.2-1]
python-pip/stable 24.3.1 all [upgradable from: 24.2-1]
python-torch/stable 2.5.0 aarch64 [upgradable from: 2.4.1-1]
python/stable 3.12.7-1 aarch64 [upgradable from: 3.12.7]
rhash/stable 1.4.5 aarch64 [upgradable from: 1.4.4]
rust-std-aarch64-linux-android/stable 1.82.0 all [upgradable from: 1.81.0-1]
rust/stable 1.82.0 aarch64 [upgradable from: 1.81.0-1]
sdl2/x11 2.30.9 aarch64 [upgradable from: 2.30.8]
svt-av1/stable 2.3.0 aarch64 [upgradable from: 2.2.1]
termux-am/stable 0.8.0-1 all [upgradable from: 0.8.0]
termux-tools/stable 1.44.3 aarch64 [upgradable from: 1.43.6]
termux-x11-nightly/x11 1.03.01 all [upgradable from: 1.03.00-7]
unbound/stable 1.22.0 aarch64 [upgradable from: 1.21.1-1]
util-linux/stable 2.40.2-2 aarch64 [upgradable from: 2.40.2-1]
virglrenderer-android/stable 1.0.1-3 aarch64 [upgradable from: 1.0.1-1]
webkit2gtk-4.1/x11 2.42.4-2 aarch64 [upgradable from: 2.42.4-1]
zenity/x11 4.0.3 aarch64 [upgradable from: 3.44.2]
termux-tools version:
1.43.6
Android version:
12
Kernel build information:
Linux localhost 4.19.191-perf-01022-gec293e668c0c #1 SMP PREEMPT Fri Mar 10 18:54:33 CST 2023 aarch64 Android
Device manufacturer:
Xiaomi
Device model:
22120RN86G
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51
com.termux.x11 versionCode:14
twaik commented 1 week ago

error: [Errno 2] No such file or directory: 'ldd' [end of output]

Install ldd and start over;

pkg install ldd
shaheen-coder commented 1 week ago

It works thanks you