-
This seems to be a recurrent issue. Short explanation and answer: If this is your issue, in your code simply declare |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I also added the lines
In case there was any issue with matplotlib not blocking the thread What happens is not that the program fails to plot or save the figures and exits, it just seems to ignore the |
Beta Was this translation helpful? Give feedback.
-
Can you provide an example that doesn't work when frozen? The basic import numpy as np
import matplotlib.pyplot as plt
x = np.arange(0, 5, 0.1)
y = np.sin(x)
plt.plot(x, y)
plt.show() seems to work as expected (python 3.11.0 from python.org, matplotlib 3.6.2 and pyinstaller 5.6.2 installed via pip). Are you using anaconda python (since you mention Are you using or trying to use specific matplotlib backend? In that case, do you see PyInstaller collecting that backend during the build or not (the message that looks like: |
Beta Was this translation helpful? Give feedback.
Can you provide an example that doesn't work when frozen? The basic
seems to work as expected (python 3.11.0 from python.org, matplotlib 3.6.2 and pyinstaller 5.6.2 installed via pip).
Are you using anaconda python (since you mention
libiomp5md.dll
...)?Are you using or trying to use specific matplotlib backend? In that case, do you see PyInstaller collecting that backend during the build or not (the message that looks like:
INFO: Selected matplotlib backends: ['TkAgg']
).