From: Jorgos C. <Jor...@gm...> - 2011-02-10 01:52:57
|
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 |
From: Paul I. <piv...@gm...> - 2011-02-10 06:54:58
|
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: http://stackoverflow.com/questions/3606964/no-matching-architecture-in-universal-wrapper-problem-in-wxpython best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 |
From: Paul I. <piv...@gm...> - 2011-02-10 10:54:29
|
Jorgos Castello, on 2011-02-10 10:59, wrote: > I installed Python 2.7.1 Mac OS X "32-bit" i386/PPC Installer > (for Mac OS X 10.3 through 10.6 [2]) as you recommended and now > it works fine. No errors anymore. THANKS !!! > > P.S. Thank you for MATPLOTLIB ;) Jorgos, Glad you got it sorted out, I'm forwarding your reply to the list to confirm the error and workaround for anyone else who encounters it in the future. Also forwarding so that your gratitude and enthusiasm get passed on to everyone in the community - core developers, patch submitters, actively engaged users, mailing list participants, etc. Our collective involvement in whatever capacity is what makes projects like matplotlib thrive! best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 |