On Mar 24, 2012, at 12:16 PM, Sandro Tosi wrote:
> On Sat, Mar 24, 2012 at 18:13, Derek Homeier
> <[email protected]> wrote:
>> I used the 1.1.0 version to build with the fink Python installation on MaxOS
>> X
>> and everything seems to work there, passing the tests at least (does
>> pylab.test('full')
>> execute all tests? It seems a rather small number…).
>
> to run tests I use:
>
> python -c "import matplotlib as m ; m.test(verbosity=1)"
Thank you for the test instructions. That's a much more complete test than I
had been using. I get the following one failure on Mac OS X 10.6 using my new
binary installer (results are appended). I'm also concerned about the complaint:
"""
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/__init__.py:921:
UserWarning: This call to matplotlib.use() has no effect
because the the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.
"""
which suggests a test that is mis-written.
-- Russell
localhost$ python
imporPython 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 14:13:39)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
matplotlib.>>> matplotlib.test(verbosity=1)
..K.............KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK..KK.KK.KK.KK.KK.KK.KKK...KK...KK.KK..KKKK..KK.KK.KK.KK.KK..KK.KK.KK............K................................................................K..K......................................K......................K....................................K....KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK.KK../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py:1218:
UserWarning: findfont: Font family ['sans-serif'] not found. Falling back to
Bitstream Vera Sans
(prop.get_family(), self.defaultFamily[fontext]))
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py:1228:
UserWarning: findfont: Could not match :family=Bitstream Vera
Sans:style=normal:variant=normal:weight=normal:stretch=normal:size=14.0.
Returning
/Applications/TUI.app/Contents/Resources/lib/python2.7/matplotlib/mpl-data/fonts/ttf/Vera.ttf
UserWarning)
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py:1228:
UserWarning: findfont: Could not match :family=Bitstream Vera
Sans:style=normal:variant=normal:weight=bold:stretch=500:size=14.0. Returning
/Applications/TUI.app/Contents/Resources/lib/python2.7/matplotlib/mpl-data/fonts/ttf/Vera.ttf
UserWarning)
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py:1218:
UserWarning: findfont: Font family ['sans serif'] not found. Falling back to
Bitstream Vera Sans
(prop.get_family(), self.defaultFamily[fontext]))
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py:1228:
UserWarning: findfont: Could not match :family=Bitstream Vera
Sans:style=italic:variant=normal:weight=750:stretch=500:size=14.0. Returning
/Applications/TUI.app/Contents/Resources/lib/python2.7/matplotlib/mpl-data/fonts/ttf/Vera.ttf
UserWarning)
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py:1228:
UserWarning: findfont: Could not match :family=Bitstream Vera
Sans:style=normal:variant=normal:weight=200:stretch=500:size=14.0. Returning
/Applications/TUI.app/Contents/Resources/lib/python2.7/matplotlib/mpl-data/fonts/ttf/Vera.ttf
UserWarning)
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py:1228:
UserWarning: findfont: Could not match :family=Bitstream Vera
Sans:style=normal:variant=normal:weight=500:stretch=100:size=14.0. Returning
/Applications/TUI.app/Contents/Resources/lib/python2.7/matplotlib/mpl-data/fonts/ttf/Vera.ttf
UserWarning)
FKK.KK.KK.KK.KK.KK.KK.KK.....K.......K..KK................K...........................KK.KK
======================================================================
FAIL: matplotlib.tests.test_text.test_font_styles.test
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose-0.11.4-py2.7.egg/nose/case.py",
line 186, in runTest
self.test(*self.arg)
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py",
line 36, in failer
result = f(*args, **kwargs)
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py",
line 140, in do_test
'(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close:
/Users/rowen/result_images/test_text/font_styles.png vs.
/Users/rowen/result_images/test_text/expected-font_styles.png (RMS 47.138)
----------------------------------------------------------------------
Ran 1061 tests in 344.859s
FAILED (KNOWNFAIL=541, failures=1)
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/__init__.py:921:
UserWarning: This call to matplotlib.use() has no effect
because the the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.
if warn: warnings.warn(_use_error_msg)
False
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel