[matplotlib]problem

Dear Reader,

I am a student at university and I was trying to install your Matplotlib library.
Well, I tried and failed ! Google&Co and your homepage couldn't help me anymore.
First, my system is MacOS X SnowLeopard 10.6.6 / installed Python 2.7.1 ( not Apple Python ) / installed NumPy 1.5.1 / installed SciPy 0.9.0rc1/ installed matplotlib-1.0.1-python.org-32bit-py2.7-macosx10.3.dmg

Second, I tried to figure out that tutorial http://scipy.org/Cookbook/OptimizationDemo1 and after typing in "from pylab import *"
I get following error:

from pylab import *

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pylab.py", line 1, in <module>
    from matplotlib.pylab import *
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pylab.py", line 220, in <module>
    from matplotlib import mpl # pulls in most modules
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mpl.py", line 1, in <module>
    from matplotlib 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

I thought, that this error is because of downloading your MacOSX 10.3 version ( compiled with an older gcc compiler ... ) and so my system cannot use those files ?
So I wanted to know if you can update such a 10.6.6 dmg file to sourceforge if that is the solution for my problem. So many others could also download that with the same system like mine.
Would be great writing me back.
Yours Jorgos

···

--
Schon gehört? GMX hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://www.gmx.net/de/go/toolbar

Jorgos Castello, on 2011-02-10 02:52, wrote:

First, my system is MacOS X SnowLeopard 10.6.6 / installed Python 2.7.1 ( not Apple Python ) / installed NumPy 1.5.1 / installed SciPy 0.9.0rc1/ installed matplotlib-1.0.1-python.org-32bit-py2.7-macosx10.3.dmg

Second, I tried to figure out that tutorial http://scipy.org/Cookbook/OptimizationDemo1 and after typing in "from pylab import *"
I get following error:
>>> from pylab import *
    /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so: no matching architecture in universal wrapper

Hi Jorgos,

seems like you're using a 64 bit (or a multi-architecture)
version of python.

  import sys
  [bits for bits in 32,64 if sys.maxint+1 == 2**(bits-1)]

will tell you if you're using 32 or 64 bit mode. You'll have to
either force 32 bit mode, or install matplotlib from source (i
don't there are python2.7 64 bit version for OS X at this time)

more on how to do that in the comments of the top reply here:

best,

···

--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7