I have a small app that is built with TKinter in python3.9. It uses 
matplotlib to put a plot in the windows.
I can pyinstaller -F main.py and it completes, but if I try to run the 
packed exe, it crashes looking in a random appdata folder for matplotlibrc.
How can I get this this to work without looking for a matplotlibrc?

Traceback (most recent call last):
  File "main.py", line 6, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod03_importers.py", line 531, in exec_module
  File "matplotlib\__init__.py", line 820, in <module>
  File "matplotlib\__init__.py", line 725, in _rc_params_in_file
  File "contextlib.py", line 117, in __enter__
  File "matplotlib\__init__.py", line 703, in _open_file_or_url
FileNotFoundError: [Errno 2] No such file or directory: 
'C:\\Users\\morde\\AppData\\Local\\Temp\\_MEI242442\\matplotlib\\mpl-data\\matplotlibrc'

-- 
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/552151c0-226a-4fb4-98d8-96698f2a22b2n%40googlegroups.com.

Reply via email to