I am making a program using Python2.7 and Kivy1.9.2-dev , and trying to package it using PyInstaller-3.0 for different systems as a single executable.
The systems for which I am trying to package them are as follows:
- Linux Mint 17.3 64-bit
- 32-bit Linux Mint 17 (also when upgrading to 17.1 and 17.3)
- 32-bit version of Windows XP SP3
- Raspbian (Raspberry Pi)
On all of these systems, the program works well when it just starts with Python and is not compiled. (so all Kivy dependencies are wonderful too).
However, of the executables executed using PyInstaller, only one made in 64-bit Linux works as a single file. Mostly the Windows and Raspbian executables work (I will write about this later), but the one that was made on 32-bit Linux still does not start. It gives the following error at startup (I tried running it on both 32 and 64-bit Linux):
Traceback (most recent call last):
File "<string>", line 11, in <module>
File "/media/Data/Programming/Python/installers/PyInstaller-3.0/PyInstaller/loader/pyimod03_importers.py", line 363, in load_module
exec(bytecode, module.__dict__)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 48, in <module>
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/extern/__init__.py", line 60, in load_module
ImportError: The 'six' package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution.
pyi_rth_pkgres returned -1
Here's what bothers me:
- Inside my "/usr/local/lib/python2.7/dist-packages/" there is no "pkg_resources" folder, but it is indicated above that it apparently is ... It even reads files there successfully. Is this what is created only when the executable is launched?
- I specifically do not use the "six" for anything, before this error I did not even know that it exists.
- "" IS , Pip. /usr/local/lib/python 2.7/dist-packages/. , PyInstaller - ( , , , .)
, , PyInstaller ( , "setup.py install" ) / ?
!
PS: Windows Raspbian. Windows exe "zlib1.dll" ( exe PyInstaller, ), Raspbian "--onefile" ( "--onefile", , PyInstaller Python , libpython.2.7.so, )