From: Olive <enc...@ya...> - 2005-04-15 22:17:41
|
On Fri, 15 Apr 2005 00:34:15 -0500, John Hunter <jdh...@ac...> wrote : > Olive> Hello, I've juste downloaded the last version (0.8) of > Olive> matplotlib and successfully built it on SunOS 5.8 with GTK > Olive> backend (gcc 3.2.2). "import matplolib" is OK but typing > Olive> "from matplotlib.pylab import *" result in a core dumped ! > Olive> without any error message or exception... "import gtk", > Olive> "import pygtk", and "import wx" works OK. > > Olive> I've tried with version 0.72, same error : > > I don't have a lot of good advice for you, but here is how I would go > about debugging the problem. You can recompile mpl in verbose mode. > rm -rf "site-packages/matplotlib" and your "build" subdir and edit > setup.py and set VERBOSE=True and recompile/reinstall. Ah ! that was what I was looking for ! So I've managed to isolate the culprit : >>> from font_manager import FontProperties Glyph::init_type FT2Font::init_type ft2font_module::new_ft2font FT2Font::FT2Font FT2Font::clear Illegal Instruction (core dumped) It appears that the problem was in file ft2font.cpp at line 354 : const char* ps_name = FT_Get_Postscript_Name( face ); I don't know what is wrong here but I managed to get matplotlib working by replacing it by : const char* ps_name = NULL; I forgot to take the version number of the freetype library before leaving work, I will get it on monday. I haven't understand what is really in the argument 'face', can you give me a code which print the fields of 'face' ? (I don't know C++...) Thank you anyway for your help ! |