0

I could successfully convert my py to an exe, but on running the exe it just opens and closes. The exe is supposed to ask for an argument to proceed. This is not happening. What could be wrong?

I referred to this answer to convert py2exe.

Community
  • 1
  • 1
Zayn malik
  • 107
  • 1
  • 4
  • 15
  • 1
    Either your script is running to completion, or it is producing an error and closing. I would suggest you add something like `raw_input()` to the start of the script, and gradually move it down the script to find where the problem is. – Martin Evans Mar 08 '17 at 12:56
  • (Assuming that you're not using a GUI) I think the best way to start with this would be to open a command prompt and execute the script from there. Doing so prevents the window from being closed after the program finished. You should be able to see some output (an error message / traceback e.g.) which should help you to find the problem. – Felix Apr 01 '17 at 10:41

1 Answers1

1

I found a better solution....Using Pyinstaller helped me converting the .py to .exe easily....

Zayn malik
  • 107
  • 1
  • 4
  • 15