PyInstaller Windows example

30 views
Skip to first unread message

Leigh Yarrat

unread,
Jan 30, 2020, 5:09:38 AM1/30/20
to PyInstaller

Hi,
I am trying to follow the touchtracer compiling example project for Windows provided by Kivy. 

I get to step 2: "python -m PyInstaller --name touchtracer examples-path\demo\touchtracer\main.py"
and the process produces the required spec file but also the error shown below.

"File "C:\Users\leigh.martin\Python\Python37\lib\site-packages\PyInstaller\compat.py", line 415, in exec_command
    outsubprocess.Popen(
NameError: name 'outsubprocess' is not defined"

I have worked on this for quite a while but cannot make progress.
Anybody able to suggest what should do?
If I ignored the error and continue I get a executable that closes on open.

I have checked that I have the requirements- Windows 10, Python 3.7.6, PyInstaller 3.6, 
Requirement already up-to-date: pyinstaller in c:\users\leigh.martin\python\python37\lib\site-packages (3.6)
Requirement already satisfied: altgraph in ...\python37\lib\site-packages (from pyinstaller) (0.17)
Requirement already satisfied: pefile>=2017.8.1 in ...\python37\lib\site-packages (from pyinstaller) (2019.4.18)
Requirement already satisfied: pywin32-ctypes>=0.2.0 in ...\python37\lib\site-packages (from pyinstaller) (0.2.0)
Requirement already satisfied: setuptools in ...\python37\lib\site-packages (from pyinstaller) (45.1.0)
Requirement already satisfied: future in ...\python37\lib\site-packages (from pefile>=2017.8.1->pyinstaller) (0.18.2)

Thanks
Leigh

Leigh Yarrat

unread,
Feb 3, 2020, 4:15:51 AM2/3/20
to PyInstaller
Hi,

To pick up on my own note:

I have succeeded in compilation my Kivy app - not so much the Kivy example (touchtracer).

I suggest that there is a Kivy incompatibility (bug?) in PyInstaller 3.6.

The solution I found was to overwrite PyInstaller with an older version. That was my entire solution.

The solution which is described here:

was to reinstall PyInstaller:
pip uninstall pyinstaller
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip

Thanks
Reply all
Reply to author
Forward
0 new messages