Sorted - I downloaded the wrong numpy dmg - I pulled in the mac os x 10.3-labelled dmg instead of the 10.6-labelled dmg, which was further down the list on sourceforge. :)
On Jul 22, 2011, at 7:52 AM, Mark Higgins wrote: > I just tried to set up numpy on a new laptop with Mac OS X Lion (10.7) and am > running into some problems. > > The laptop came with python 2.7 installed, but when I downloaded the dmg for > numpy from the sourceforge side, it refused to install it saying that it > couldn't find python 2.7. Odd, but maybe it was installed in some place numpy > didn't expect. > > So I went to python.org and got the official 2.7 installer dmg and stuck that > in. Seemed okay. > > Then I installed numpy using the dmg. Seemed okay. > > Now, though, when I start python at the terminal (or through Wing IDE) and > import numpy, I get > > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/__init__.py", > line 78, in <module> > from numpy import show_config as show_numpy_config > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/__init__.py", > line 137, in <module> > import add_newdocs > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/add_newdocs.py", > line 9, in <module> > from numpy.lib import add_newdoc > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/__init__.py", > line 4, in <module> > from type_check import * > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/type_check.py", > line 8, in <module> > import numpy.core.numeric as _nx > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/__init__.py", > line 5, in <module> > import multiarray > ImportError: > dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so, > 2): no suitable image found. Did find: > > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so: > no matching architecture in universal wrapper > > I'm not sure whether this is a problem with where the python 2.7 install is > located, or whether it's something bespoke about the new Mac OS. I'm pretty > sure I followed a similar route on an older laptop (which was OS X 10.6 and > has python 2.6 installed by default) and it worked fine; but it was a while > ago and I don't really remember. > > Any suggestions? > > _______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
