EXE file not running though creation was successful

61 views
Skip to first unread message

Tamoghna Dey

unread,
Aug 24, 2019, 3:25:49 PM8/24/19
to pyins...@googlegroups.com
Hi Experts,
  
I'm new in python and want to make an executable file using a library highlighted below. The library is in python 2 and I'm using python 2.7 along with pyinstall version 3.5. the creation of exe file is successful by using command pyinstaller --onefile <myfile.py>. but while running the exe file it fails by closing the window immediately. By the way I'm using windows system. Can someone help me o overcome the issue. Let me know if anything more required. Thanks in advance.


C:\Users\ADMIN>pip list
Package              Version
-------------------- ---------
altgraph             0.16.1
dis3                 0.1.3
enm-client-scripting 1.18.1
future               0.17.1
pefile               2019.4.18
pip                  18.1
PyInstaller          3.5
pywin32-ctypes       0.2.0
requests             2.5.0
setuptools           40.6.2




--
Regards,
Tamoghna

Shil Nevado

unread,
Aug 27, 2019, 3:03:10 AM8/27/19
to PyInstaller
Try to execute the exe from command line so you can see the error message.

Leigh Yarrat

unread,
Jan 30, 2020, 5:09:51 AM1/30/20
to PyInstaller
Hi,
I have the same problem with my exe file closing the window immediately. However, PyInstaller is giving me an error message during the compile process and then proceeds to tell me that the compile was successful - so this is not reliable.
I haven't solved my problem yet. But you should find your error message.

M. Agus Setiadi

unread,
Jan 31, 2020, 9:14:47 AM1/31/20
to pyins...@googlegroups.com
Hi,

I suggest you to create variable input as follow.

x = input()

So it will wait for input and you can print error before input variable.

Thanks

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/d45ccee3-c975-4d88-a132-25549df9ba67%40googlegroups.com.

Scott Swain

unread,
Feb 1, 2020, 11:50:25 AM2/1/20
to pyins...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages