Hi Andrea, I don't know if this is too late to help, but I had a similar problem today and in my case it was because matplotlib was keeping a font cache in .matplotlib that pointed to a non-existent folder. Removing the font cache fixed it for me.
Hope this helps, Chris On Aug 1, 7:28 am, Andrea Gavana <[email protected]> wrote: > Hi All, > > I am using PyInstaller to create a single-file executable on > Windows Vista. I am using various libraries, but matplotlib is giving > me problems once I compile the application into an executable. > > Versions: > > >>> matplotlib.__version__ > > '1.0.0' > > PyInstaller: 1.5 > > The error I get is the following: > > Traceback (most recent call last): > File > "C:\MyProjects\HM_Evaluation\build\pyi.win32\HM_Evaluation\outPYZ1.pyz/matp > lotlib.backends.backend_wx", > line 1189, in _onPaint > File > "C:\MyProjects\HM_Evaluation\build\pyi.win32\HM_Evaluation\outPYZ1.pyz/matp > lotlib.backends.backend_wxagg", > line 59, in draw > File > "C:\MyProjects\HM_Evaluation\build\pyi.win32\HM_Evaluation\outPYZ1.pyz/matp > lotlib.backends.backend_agg", > line 394, in draw > File > "C:\MyProjects\HM_Evaluation\build\pyi.win32\HM_Evaluation\outPYZ1.pyz/matp > lotlib.artist", > line 55, in draw_wrapper > File > "C:\MyProjects\HM_Evaluation\build\pyi.win32\HM_Evaluation\outPYZ1.pyz/matp > lotlib.figure", > line 798, in draw > File > "C:\MyProjects\HM_Evaluation\build\pyi.win32\HM_Evaluation\outPYZ1.pyz/matp > lotlib.artist", > line 55, in draw_wrapper > File > "C:\MyProjects\HM_Evaluation\build\pyi.win32\HM_Evaluation\outPYZ1.pyz/matp > lotlib.axes", > line 1934, in draw > File > "C:\MyProjects\HM_Evaluation\build\pyi.win32\HM_Evaluation\outPYZ1.pyz/matp > lotlib.artist", > line 55, in draw_wrapper > File > "C:\MyProjects\HM_Evaluation\build\pyi.win32\HM_Evaluation\outPYZ1.pyz/matp > lotlib.axis", > line 1017, in draw > File > "C:\MyProjects\HM_Evaluation\build\pyi.win32\HM_Evaluation\outPYZ1.pyz/matp > lotlib.artist", > line 55, in draw_wrapper > File > "C:\MyProjects\HM_Evaluation\build\pyi.win32\HM_Evaluation\outPYZ1.pyz/matp > lotlib.axis", > line 234, in draw > File > "C:\MyProjects\HM_Evaluation\build\pyi.win32\HM_Evaluation\outPYZ1.pyz/matp > lotlib.artist", > line 55, in draw_wrapper > File > "C:\MyProjects\HM_Evaluation\build\pyi.win32\HM_Evaluation\outPYZ1.pyz/matp > lotlib.text", > line 524, in draw > File > "C:\MyProjects\HM_Evaluation\build\pyi.win32\HM_Evaluation\outPYZ1.pyz/matp > lotlib.text", > line 298, in _get_layout > File > "C:\MyProjects\HM_Evaluation\build\pyi.win32\HM_Evaluation\outPYZ1.pyz/matp > lotlib.backends.backend_agg", > line 180, in get_text_width_height_descent > File > "C:\MyProjects\HM_Evaluation\build\pyi.win32\HM_Evaluation\outPYZ1.pyz/matp > lotlib.backends.backend_agg", > line 221, in _get_agg_font > RuntimeError: Could not open facefile > C:\Temp\_MEI27762\mpl-data\fonts\ttf\Vera.ttf; Cannot_Open_Resource > > Does anyone know what I am doing wrong? > > Thank you in advance for your help. > > Andrea. > > "Imagination Is The Only Weapon In The War Against > Reality."http://xoomer.alice.it/infinity77/ -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
