Dear all, On 06/08/2013 16:36, Andrew Jaffe wrote:
>> On 08/02/2013 06:53 AM, Andrew Jaffe wrote: >>> >>> On 01/08/2013 19:06, Michael Droettboom wrote: >>>> On behalf of a veritable army of super coders, I'm pleased to announce the >>>> release of matplotlib 1.3.0. >>> Two issues on OSX 10.8.4. I had been previously using the dmg installer. >>> Lacking that, I tried easy-install and pip install, both of which gave me >>> the following problems: >>> >>> - I needed to set CC=clang >>> - When attempting to load matplotlib, I got the following error: >>> >>> /Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/font_manager.py >>> >>> in <module>() >>> ---> 53 from matplotlib import ft2font >>> >>> ImportError: >>> dlopen(/Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/ft2font.so, >>> >>> 2): Symbol not found: _FT_Attach_File >>> Referenced from: >>> /Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/ft2font.so >>> >>> Expected in: flat namespace in >>> /Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib/ft2font.so >>> >>> This is a freetype problem, probably an incompatible version somewhere. >>> Ideas? Some self-followup: I was able to get the build to compile and install and pass most of the tests with the following change to the basedir_map dict (currently line 147) in setupext.py: 'darwin': ['/opt/X11', '/usr/local/', '/usr', '/opt/local'], i.e. /opt/X11 in the front. I assume this accounts for my XQuartz X11 install. I think both of those changes (i.e., usr->opt and moving to the front of the path) are necessary. With this setup, I get lots of knownfails and a few real "ImageComparisonFailure" ones -- see below for the output. In all three cases, examining the images, it's clear that the system is not using styled fonts. (I have no idea how these failures compare to my previous system with a dmg installation of matplotlib as I never ran the tests on it...) Also, as mentioned previously, on one of my machines (but, strangely, not both) I also had to change CC and CXX to force use of clang (i.e., one worked with standard gcc). The test failures are the same in both cases, although, for what it's worth, the on-screen font rendering does appear different on the two machines, no doubt owing to slightly different installation histories of the various non-apple installed unix and other libraries... Yours, Andrew ====================================================================== FAIL: matplotlib.tests.test_backend_pdf.test_use14corefonts.test ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib-1.3.0-py2.7-macosx-10.6-intel.egg/matplotlib/testing/decorators.py", line 40, in failer result = f(*args, **kwargs) File "/Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib-1.3.0-py2.7-macosx-10.6-intel.egg/matplotlib/testing/decorators.py", line 159, in do_test '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: /Volumes/Data/Users/jaffe/result_images/test_backend_pdf/pdf_use14corefonts_pdf.png vs. /Volumes/Data/Users/jaffe/result_images/test_backend_pdf/pdf_use14corefonts-expected_pdf.png (RMS 57.518) ====================================================================== FAIL: matplotlib.tests.test_text.test_font_styles.test ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib-1.3.0-py2.7-macosx-10.6-intel.egg/matplotlib/testing/decorators.py", line 40, in failer result = f(*args, **kwargs) File "/Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib-1.3.0-py2.7-macosx-10.6-intel.egg/matplotlib/testing/decorators.py", line 159, in do_test '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: /Volumes/Data/Users/jaffe/result_images/test_text/font_styles.png vs. /Volumes/Data/Users/jaffe/result_images/test_text/font_styles-expected.png (RMS 13.676) ====================================================================== FAIL: matplotlib.tests.test_text.test_font_styles.test ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib-1.3.0-py2.7-macosx-10.6-intel.egg/matplotlib/testing/decorators.py", line 40, in failer result = f(*args, **kwargs) File "/Volumes/Data/Users/jaffe/Library/Python/2.7/lib/python/site-packages/matplotlib-1.3.0-py2.7-macosx-10.6-intel.egg/matplotlib/testing/decorators.py", line 159, in do_test '(RMS %(rms).3f)'%err) ImageComparisonFailure: images not close: /Volumes/Data/Users/jaffe/result_images/test_text/font_styles_pdf.png vs. /Volumes/Data/Users/jaffe/result_images/test_text/font_styles-expected_pdf.png (RMS 14.120) ---------------------------------------------------------------------- Ran 1458 tests in 620.025s FAILED (KNOWNFAIL=350, failures=3) ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users