1

Based on input data, I have to generate the plots using python scripting and it was run successfully with plots displayed. Later, unfortunately, after conversion from .py to .exe file, the outputs plots are not generated when clicked on .exe file, What may be the problem with .exe? Does anyone face a similar issue?

4
  • The plots were probably created by your IDE. Does your program have an interface? Do you have a few fig.show() missing? Commented Sep 10, 2020 at 10:52
  • I have used plt.show(). if we run with a python script, I don't have any issues to generates plots, the only problem I face is.. when converted to .exe file Commented Sep 11, 2020 at 12:29
  • Who closed the question? It's pretty clear: matplotlib pop-up windows don't show when using an exe bundled with PyInstaller. Take a look here OP: stackoverflow.com/questions/17095180/… Commented Sep 15, 2020 at 9:31
  • After using degarding to matplotlib 3.1.3 version, the plots are displayed Commented Sep 28, 2020 at 12:22

1 Answer 1

0

it could be number of things, dependencies are not included with the .exe file, or your program reads from input files that are not in the same directory as the .exe file

run the .exe in the same directory as .py and see if the problem persists.

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

1 Comment

Thanks for your reply Azeer. I am giving the input file (.txt) as dynamic. When the .exe is executed, it will ask for the user input file path and then execute it. Even I tried copying the i/p file and .exe at the same location path.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.