Index: lib/matplotlib/numerix/linear_algebra/__init__.py =================================================================== RCS file: /cvsroot/matplotlib/matplotlib/lib/matplotlib/numerix/linear_algebra/__init__.py,v retrieving revision 1.5 diff -r1.5 __init__.py 8a9,10 > inverse = inv > eigenvectors = eig This fixes import errors when using only numpy. Regards, Pearu
>>>>> "Pearu" == Pearu Peterson <pe...@sc...> writes: Pearu> This fixes import errors when using only numpy. which import errors? I updated from numpy svn today and did a clean build and test against matplotlib's poor man's regression suite using >>> import numpy >>> numpy.__version__ '0.9.7.2310' and did not encounter any errors.... Or is my numpy version already woefully out of date :-) ? JDH
On 2006年3月30日, John Hunter wrote: >>>>>> "Pearu" == Pearu Peterson <pe...@sc...> writes: > Pearu> This fixes import errors when using only numpy. > > which import errors? I updated from numpy svn today and did a clean > build and test against matplotlib's poor man's regression suite using > >>>> import numpy >>>> numpy.__version__ > '0.9.7.2310' > > and did not encounter any errors.... Or is my numpy version already > woefully out of date :-) ? Without the patch I get: >>> import pylab Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/local/lib/python2.3/site-packages/pylab.py", line 1, in ? from matplotlib.pylab import * File "/usr/local/lib/python2.3/site-packages/matplotlib/pylab.py", line 200, in ? from axes import Axes, PolarAxes File "/usr/local/lib/python2.3/site-packages/matplotlib/axes.py", line 14, in ? from artist import Artist, setp File "/usr/local/lib/python2.3/site-packages/matplotlib/artist.py", line 4, in ? from transforms import identity_transform File "/usr/local/lib/python2.3/site-packages/matplotlib/transforms.py", line 193, in ? from matplotlib.numerix.linear_algebra import inverse ImportError: cannot import name inverse >>> Pearu
>>>>> "Pearu" == Pearu Peterson <pe...@sc...> writes: Pearu> Without the patch I get: Are you using matplotlib subversion? What does >>> import matplotlib >>> matplotlib.__version__ report? My guess is that this was fixed by Travis' commit that imported the old linalg namespace elif which[0] == "numpy": from numpy.linalg import * inverse = inv eigenvectors = eig try: from numpy.linalg.old import * except: pass I am not getting your import error w/ current numpy snv (rev 2312) JDH
On 2006年3月30日, John Hunter wrote: >>>>>> "Pearu" == Pearu Peterson <pe...@sc...> writes: > > Pearu> Without the patch I get: > > Are you using matplotlib subversion? Hmm, I was using cvs.., I didn't notice the switch to svn. > What does > > >>> import matplotlib > >>> matplotlib.__version__ > > report? >>> import matplotlib >>> matplotlib.__version__ '0.87.1cvs' > My guess is that this was fixed by Travis' commit that imported the > old linalg namespace > > elif which[0] == "numpy": > from numpy.linalg import * > inverse = inv > eigenvectors = eig > try: > from numpy.linalg.old import * > except: > pass > > I am not getting your import error w/ current numpy snv (rev 2312) Ok, I'll switch to svn. Thanks, Pearu