cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to install Pyinstaller in STM32MP157D-DK1(DK32MP157D1$AU2)

Mohanv
Visitor

 

Hi everyone,

I'm trying to install PyInstaller on a system and am running into a couple of errors. Here's what I've done so far:

1. Approach

  1. Built the latest distribution packages.
  2. Ran apt update to update the system packages.
  3. Installed pip3 via apt as part of the setup. (apt install python3-pip)

(I encounter an error related to ldd. To resolve this, I tried installing ldd via apt:)

(I have also try to install the build-essential then it was showing that it is unable to locate)

When I try to install PyInstaller using the following command:

pip3 install pyinstaller

"

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
╰─> [18 lines of output]
running bdist_wheel
running clean
'build/lib' does not exist -- can't clean it
'build/bdist.linux-armv7l' does not exist -- can't clean it
'build/scripts-3.11' does not exist -- can't clean it
running build
running build_bootloader
No precompiled bootloader found or compile forced. Trying to compile the bo.
Setting top to : /tmp/pip-install-wsshh_3v/pyinstr
Setting out to : /tmp/pip-install-wsshh_3v/pyinstd
Python Version : 3.11.5 (main, Aug 24 2023, 12:23]
MSVC target(s) : not found
Checking for 'gcc' (C compiler) : not found
Checking for 'clang' (C compiler) : not found
Checking for 'icc' (C compiler) : not found
could not configure a C compiler!
(complete log in /tmp/pip-install-wsshh_3v/pyinstaller_bbfcecf9b29242c59bd2)
ERROR: Failed compiling the bootloader. Please compile manually and rerun
[end of output]

note: This error originates from a subprocess, and is likely not a problem with.
ERROR: Failed building wheel for pyinstaller
Failed to build pyinstaller
ERROR: Could not build wheels for pyinstaller, which is required to install pypros

"

2. Approach (ongoing)

 In which we can create yocto recipe for pyinstaller and get  the pyinstaller library in the linux distribution itself.

 

which approach is better 1 or 2 ? Please also suggest the steps for that method .

 

Thanks!

0 REPLIES 0