Skip to contentSkip to conversation

New: Error: Could not install package {PACKAGE}: 'name'

Buildroot [email protected] 1 participant 8 messages Nov 4, 2021 – Nov 6, 2021

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=14321

            Bug ID: 14321
           Summary: Error: Could not install package {PACKAGE}: 'name'
           Product: buildroot
           Version: 2021.02.6
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Target Milestone: ---

root@4802338a3fcd:/buildroot-2021.02.6# utils/scanpypi pyinstaller
utils/scanpypi:21: DeprecationWarning: the imp module is deprecated in favour
of importlib; see the module's documentation for alternative uses
  import imp
buildroot package name for pyinstaller: python-pyinstaller
Package: python-pyinstaller
Fetching package pyinstaller
Downloading package pyinstaller from
https://files.pythonhosted.org/packages/90/8c/3aa36c18d2f05dc85d810b3fdd23dbadee15375b15c75533247347b4bb86/pyinstaller-4.6.tar.gz...
Error: Could not install package pyinstaller: 'name'

I also get the same error when trying to install the wheel package.

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

[Buildroot] [Bug 14321] Error: Could not install package {PACKAGE}: 'name'

https://bugs.busybox.net/show_bug.cgi?id=14321

--- Comment #1 from Thomas Petazzoni <[email protected]> --- scanpypi is not there to install a Python package, it is a script to help create a new Buildroot package for a Python module.

First of all, you should not use Buildroot as root, nor scanpypi itself.

Secondly, I'm not sure how pyinstaller can be useful in the context of Buildroot. According to its description, "PyInstaller bundles a Python application and all its dependencies into a single package. The user can run the packaged app without installing a Python interpreter or any modules.". I don't see how having pyinstaller available on the target system is going to be of any use.

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

[Buildroot] [Bug 14321] scanpypi doesn't work with the pyinstaller module

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=14321

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|Error: Could not install    |scanpypi doesn't work with
                   |package {PACKAGE}: 'name'   |the pyinstaller module
Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

[Buildroot] [Bug 14321] scanpypi doesn't work with the pyinstaller module

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=14321

--- Comment #2 from Kevin <[email protected]> ---
I started down this rabbit hole when trying to create a executable(written in python) to run on a target device (aarch64) with uclibc (basic busybox). I was able to virtualize the target arch with docker/buildx but could not find a suitable image that had uclibc, gcc, python, and other needed things to cross compile.

I then tried to use buildroot (running in ubuntu container) to create an image and run in docker but ran into some trouble and decided to pivot.

I discovered that the Rpi3 has the same chip (cortex A53) as my target device. So I used buildroot to create an image and flash it to the Rpi3. Now I have the correct toolchain and everything I need EXCEPT pyinstaller, to cross compile.

Due to certain restrictions I am unable to cross compile on the target device.

also this is my first experience going deeper into linux than just the basic terminal commands, so my apologies.

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

[Buildroot] [Bug 14321] scanpypi doesn't work with the pyinstaller module

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=14321

--- Comment #3 from Kevin <[email protected]> ---
I have also tried to install pyinstaller with pip on the rpi, but i get an error

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

[Buildroot] [Bug 14321] scanpypi doesn't work with the pyinstaller module

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=14321

--- Comment #4 from Kevin <[email protected]> ---
So after days of fiddling and multiple build I finally figured out that there is no GCC on the target... are there any unsanctioned work arounds?

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

[Buildroot] [Bug 14321] scanpypi doesn't work with the pyinstaller module

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=14321

--- Comment #5 from Fabrice Fontaine <[email protected]> --- The fact that wheel (and pyinstaller) don't work with scanpypi is a duplicate of https://bugs.buildroot.org/show_bug.cgi?id=13321

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#7 lore raw

[Buildroot] [Bug 14321] scanpypi doesn't work with the pyinstaller module

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=14321

Yann E. MORIN <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE
                 CC|                            |[email protected]

--- Comment #6 from Yann E. MORIN <[email protected]> --- Kevin, All,

Thanks for the report. As noticed by Fabrice, this is already tracked as #13321.

Regards,
Yann E. MORIN.

*** This bug has been marked as a duplicate of bug 13321 ***

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot