NumPy installation won't import correctly
Günther Dietrich
gd_usenet at spamfence.net
Tue Dec 1 12:36:08 EST 2009
Ethos <kevintylr at gmail.com> wrote:
>I installed NumPy for python 2.6 on my leopard macbook, using the
>nifty mac installer they now provide. I have the 2.6 official python
>distro installed on my computer, in addition to the 2.5 that is native
>on the mac. When I went to test out the installation, with 2.6, it
>gave me this:
>
>>>> import numpy
>Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
>python2.6/site-packages/numpy/__init__.py", line 132, in <module>
> import add_newdocs
> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
>python2.6/site-packages/numpy/add_newdocs.py", line 9, in <module>
> from lib import add_newdoc
> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
>python2.6/site-packages/numpy/lib/__init__.py", line 4, in <module>
> from type_check import *
> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
>python2.6/site-packages/numpy/lib/type_check.py", line 8, in <module>
> import numpy.core.numeric as _nx
> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
>python2.6/site-packages/numpy/core/__init__.py", line 5, in <module>
> import multiarray
>ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/
>lib/python2.6/site-packages/numpy/core/multiarray.so, 2): no suitable
>image found. Did find:
> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
>packages/numpy/core/multiarray.so: unknown required load command
>0x80000022
I had the same problem when I tried to use the MacPorts installation of
python3 within blender2.5alpha0 (I pointed the PYTHONPATH to the
respective MacPorts python3 folder). I figured out, that the blender
binary is a 64bit one, but the libraries of the MacPorts python3 are
32bit ones and these two don't fit together.
Then I found out, that -- as opposed to blender 2.4x -- blender 2.5
comes with all the standard python library bundled. So I'm fine with the
pure blender 2.5 for the testing.
Best regards,
Günther
More information about the Python-list
mailing list