Python Forum

Full Version: PyInstaller subprocess.checkout error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am developing a GUI app in Python, the code works fine in PyCharm IDE. Now I want to convert into an exe for distribution.

My code works fine until I generate a single file exe with PyInstaller without -w option enable (command: pyinstaller -F main.py ). If I omit -w option, the code works fine but the final exe shows unwanted console as well.

To find a solution, I searched and found this to be a suitable workaround:

Python Subprocess Popen with Pyinstaller

Therefore, I tried Recipe sub-process as described here:

github.com/pyinstaller/pyinstaller/wiki/Recipe-subprocess

However, this is not working for me and I still get the error where subprocess command fails.

Anybody been in this situation, please help. I am using Python 3.5, PyInstaller version 3.2.1.
Read the docs:
Quote:-w, --windowed, --noconsole Windows and Mac OS X: do not provide a console window for standard
i/o. On Mac OS X this also triggers building an OS X .app bundle. This option is
ignored in *NIX systems.