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.

2
  • 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. Commented Mar 8, 2017 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. Commented Apr 1, 2017 at 10:41

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.