On 04.01.2011, at 1:49AM, Russell E. Owen wrote:

I have uploaded Mac installers for python.org Python 2.6 and 32-bit
Python 2.7.

I'm not sure what to do about 64-bit Python 2.7. It does not even
support Mac OS X 10.5 due to tcl/tk issues that I think were resolved
too late for python 2.7.1. In my opinion a matplotlib built against
ActiveState's Python 2.7 (which is 64-bit and supports 10.5 and 10.6)
might be of more use. Opinions?

I cannot provide much input on those Python installations, but I've built rc1 against the fink installations of python/numpy for Intel and PPC 10.5 as well as Intel 10.6. I could not reproduce the missing .matplotlib/.fontconfig-related
crashes with this build.

With the 64-bit installation on 10.6 I encountered a problem discussed a few months ago on the list, due to the MacOS module being removed from standard 64-bit Python builds (and being generally deprecated for Python 3); this had been resolved by Michiel de Hoon in r8624 (and some parts in r8710, it seems), but those changes did not make it into rc1. I have attached the patch in the form working for me.

HTH,
                                                Derek

Attachment: matplotlib-py.patch
Description: Binary data



P.S. Test outcome is somewhat different between calling pylab.test() from the interpreter

Python 2.6.6 (r266:84292, Jan  3 2011, 20:49:26)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pylab
>>> pylab.test('full')
Running unit tests for numpy.linalg
/sw/lib/python2.6/site-packages/nose/plugins/manager.py:407: UserWarning: Module dap was already imported from None, but /sw/lib/ python2.6/site-packages is being added to sys.path
  import pkg_resources
NumPy version 1.5.1
NumPy is installed in /sw/lib/python2.6/site-packages/numpy
Python version 2.6.6 (r266:84292, Jan 3 2011, 20:49:26) [GCC 4.2.1 (Apple Inc. build 5664)]
nose version 0.11.4
S ...........................................................................................................................................................
----------------------------------------------------------------------
Ran 156 tests in 0.374s


or directly calling nosetests in the matplotlib directory (same errors occurring with python2.7 and on 10.5 x86/ppc, just the FAIL: matplotlib.tests.test_mlab.test_recarray_csv_roundtrip only appears
on 64-bit 10.6):

> nosetests2.6
/sw/bin/nosetests2.6:5: UserWarning: Module dap was already imported from None, but /sw/lib/python2.6/site-packages is being added to sys.path
  from pkg_resources import load_entry_point
/sw/lib/python2.6/site-packages/matplotlib/rcsetup.py:302: UserWarning: tk.pythoninspect is obsolete, and has no effect
  warnings.warn("tk.pythoninspect is obsolete, and has no effect")
/sw/lib/python2.6/site-packages/matplotlib/numerix/__init__.py:18: DeprecationWarning:
**********************************************************
matplotlib.numerix and all its subpackages are deprecated.
They will be removed soon.  Please use numpy instead.
**********************************************************

  warnings.warn(msg, DeprecationWarning)
.............................................Warning: divide by zero encountered in log
.Warning: divide by zero encountered in log
.Warning: divide by zero encountered in log
................E....E................/sw/lib/python2.6/site-packages/ matplotlib/axes.py:2381: UserWarning: Attempting to set identical left==right results
in singular transformations; automatically expanding.
left=730139.0, right=730139.0
  + 'left=%s, right=%s') % (left, right))
.......E....................E.Warning: invalid value encountered in absolute
Warning: invalid value encountered in absolute
F................................./sw/lib/python2.6/site-packages/ matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['Foo'] not found. Falling back to Bitstream Vera Sans
  (prop.get_family(), self.defaultFamily[fontext]))
E.E....
======================================================================
ERROR: matplotlib.tests.test_axes.test_pcolormesh
----------------------------------------------------------------------
Traceback (most recent call last):
File "/sw/lib/python2.6/site-packages/nose/case.py", line 186, in runTest
    self.test(*self.arg)
File "/sw/lib/python2.6/site-packages/matplotlib/testing/ decorators.py", line 32, in failer
    result = f(*args, **kwargs)
File "/sw/lib/python2.6/site-packages/matplotlib/testing/ decorators.py", line 126, in decorated_compare_images
    '(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /sw/lib/python2.6/site- packages/matplotlib/result_images/test_axes/pcolormesh.png vs. /sw/lib/ python2.6/site-packages/matplotlib/result_images/test_axes/expected- pcolormesh.png (RMS 116.512)

======================================================================
ERROR: matplotlib.tests.test_basic.test_simple_knownfail
----------------------------------------------------------------------
Traceback (most recent call last):
File "/sw/lib/python2.6/site-packages/nose/case.py", line 186, in runTest
    self.test(*self.arg)
File "/sw/lib/python2.6/site-packages/matplotlib/testing/ decorators.py", line 40, in failer raise KnownFailureTest(msg) # An error here when running nose means that you don't have the matplotlib.testing.noseclasses:KnownFailure plugin in use.
KnownFailureTest: Test known to fail

======================================================================
ERROR: matplotlib.tests.test_dates.test_empty_date_with_year_formatter
----------------------------------------------------------------------
Traceback (most recent call last):
File "/sw/lib/python2.6/site-packages/nose/case.py", line 186, in runTest
    self.test(*self.arg)
File "/sw/lib/python2.6/site-packages/matplotlib/testing/ decorators.py", line 40, in failer raise KnownFailureTest(msg) # An error here when running nose means that you don't have the matplotlib.testing.noseclasses:KnownFailure plugin in use.
KnownFailureTest: Test known to fail

======================================================================
ERROR: matplotlib.tests.test_mathtext.test_mathtext_stixsans
----------------------------------------------------------------------
Traceback (most recent call last):
File "/sw/lib/python2.6/site-packages/nose/case.py", line 186, in runTest
    self.test(*self.arg)
File "/sw/lib/python2.6/site-packages/matplotlib/testing/ decorators.py", line 32, in failer
    result = f(*args, **kwargs)
File "/sw/lib/python2.6/site-packages/matplotlib/testing/ decorators.py", line 126, in decorated_compare_images
    '(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /sw/lib/python2.6/site- packages/matplotlib/result_images/test_mathtext/ mathtext_stixsans_svg.png vs. /sw/lib/python2.6/site-packages/ matplotlib/result_images/test_mathtext/expected- mathtext_stixsans_svg.png (RMS 159.396)

======================================================================
ERROR: matplotlib.tests.test_text.test_font_styles
----------------------------------------------------------------------
Traceback (most recent call last):
File "/sw/lib/python2.6/site-packages/nose/case.py", line 186, in runTest
    self.test(*self.arg)
File "/sw/lib/python2.6/site-packages/matplotlib/testing/ decorators.py", line 32, in failer
    result = f(*args, **kwargs)
File "/sw/lib/python2.6/site-packages/matplotlib/testing/ decorators.py", line 126, in decorated_compare_images
    '(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /sw/lib/python2.6/site- packages/matplotlib/result_images/test_text/font_styles.png vs. /sw/ lib/python2.6/site-packages/matplotlib/result_images/test_text/ expected-font_styles.png (RMS 23.833)

======================================================================
ERROR: matplotlib.tests.test_text.test_font_styles
----------------------------------------------------------------------
Traceback (most recent call last):
File "/sw/lib/python2.6/site-packages/nose/case.py", line 186, in runTest
    self.test(*self.arg)
File "/sw/lib/python2.6/site-packages/matplotlib/testing/ decorators.py", line 32, in failer
    result = f(*args, **kwargs)
File "/sw/lib/python2.6/site-packages/matplotlib/testing/ decorators.py", line 126, in decorated_compare_images
    '(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /sw/lib/python2.6/site- packages/matplotlib/result_images/test_text/font_styles_svg.png vs. / sw/lib/python2.6/site-packages/matplotlib/result_images/test_text/ expected-font_styles_svg.png (RMS 12.961)

======================================================================
FAIL: matplotlib.tests.test_mlab.test_recarray_csv_roundtrip
----------------------------------------------------------------------
Traceback (most recent call last):
File "/sw/lib/python2.6/site-packages/nose/case.py", line 186, in runTest
    self.test(*self.arg)
File "/sw/lib/python2.6/site-packages/matplotlib/tests/ test_mlab.py", line 24, in test_recarray_csv_roundtrip
    assert np.allclose( expected['x'], actual['x'] )
AssertionError

----------------------------------------------------------------------
Ran 156 tests in 186.619s

FAILED (errors=6, failures=1)



------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to