Python Forum
PyInstaller subprocess.checkout error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyInstaller subprocess.checkout error
#1
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.
Reply
#2
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error with Pyinstaller dineshkumar 0 3,503 Apr-16-2018, 05:25 AM
Last Post: dineshkumar

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020