Hello,

Mac OSX 10.6.8
matplotlib 1.1.0


From the matplotlib website:
=========
Installing OSX binaries
If you want to install matplotlib from one of the binary installers we build, 
you have two choices: a mpkg installer, which is a typical Installer.app, or a 
binary OSX egg, which you can install via setuptools’ easy_install.

The mkpg installer will have a “zip” extension, and will have a name like 
matplotlib-0.99.0.rc1-py2.5-macosx10.5_mpkg.zip. 
==========

Where are those files?  I can't find them anywhere.

Also from the matplotlib website:
=======
You can also use the eggs we build for OSX (see the installation instructions 
for easy_install if you do not have it on your system already). You can try:

> easy_install matplotlib
which should grab the latest egg from the sourceforge site, but sometimes the 
naming conventions for OSX eggs can be broken (see below). Therefore, there is 
no guarantee the right egg will be found. We recommend you download the latest 
egg from our download site directly to your harddrive, and manually install it, 
eg:

> easy_install --install-dir=~/dev/lib/python2.5/site-packages/  
> matplotlib-0.99.0.rc1-py2.5-macosx-10.5-i386.egg
=======

Where are those eggs?  I can't find them anywhere.

On the home page of the matplotlib website, on the right hand side, is a link 
"downloads", which took me here:

http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/

There isn't anything later than osx 10.3 there, and there are no egg files at 
all.  Yet the install directions mention osx10.5. 

I installed python 2.7, which automatically installed an interpreter named 
python2.7, because the Numpy installer I found was for python 2.7 and mac osx 
10.6. I installed this for matplotlib:

matplotlib-1.1.0-py2.7-python.org-macosx10.3.dmg

because that is the only thing even close.

This works:

import matplotlib
print(matplotlib.__version__)
print(matplotlib.__file__)

$ python2.7 my_prog.py
1.1.0
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/__init__.pyc
/Users/Me/.matplotlib


But this does not work:

import matplotlib.pyplot as plot
xs = [2, 3, 5, 7, 11]
ys = [4, 9, 5, 9, 1]
plot.plot(xs, ys)
plot.savefig("squaremod10.png")


$ python2.7 my_prog.py
  File "my_prog.py", line 1, in <module>
    import matplotlib.pyplot as plot
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pyplot.py",
 line 23, in <module>
    from matplotlib.figure import Figure, figaspect
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/figure.py",
 line 16, in <module>
    import artist
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/artist.py",
 line 6, in <module>
    from transforms import Bbox, IdentityTransform, TransformedBbox, 
TransformedPath
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/transforms.py",
 line 34, in <module>
    from matplotlib._path import affine_transform
ImportError: 
dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so,
 2): no suitable image found.  Did find:
        
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so:
 no matching architecture in universal wrapper



------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to