Matplotlib’s array of interchangeable backends model is fairly ambiguous to 
PyInstaller — particularly if you want more than one backend. Telling 
PyInstaller which backends you want 
<https://pyinstaller.org/en/v6.10.0/hooks-config.html#matplotlib-hooks> 
straightens it out.
# In your spec file a = Analysis( ... hooksconfig={ "matplotlib": { 
"backends": ["TkAgg", "pdf"], } }, ... ) 

That said, just adding a dumb --hiddenimport=matplotlib.backends.backend_pdf 
to the build command does the trick for me too.
​

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/2c8bd6a7-8453-4072-b0fa-5f32a01188a2n%40googlegroups.com.

Reply via email to