[Numpy-discussion] Numpy import problem

Satellite Data Research Group satgroup at postbox.auckland.ac.nz
Thu Jul 6 00:02:41 CDT 2006


Hi, I have a problem when importing numpy into python 2.4.1.  I did a 
successful (I think) build and install of Numpy 0.9.8 on a mac osx 
(10.4) intel, but when i try to import numpy into python i get this 
error:

>>> from numpy import*
import core -> failed: Inappropriate file type for dynamic loading
import lib -> failed: Inappropriate file type for dynamic loading
import linalg -> failed: Inappropriate file type for dynamic loading
import dft -> failed: Inappropriate file type for dynamic loading
import random -> failed: Inappropriate file type for dynamic loading

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in -toplevel-
    from numpy import*
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/__init__.py", line 49, in 
-toplevel-
    import add_newdocs
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/add_newdocs.py", line 2, in 
-toplevel-
    from lib import add_newdoc
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/lib/__init__.py", line 5, in 
-toplevel-
    from type_check import *
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/lib/type_check.py", line 8, in 
-toplevel-
    import numpy.core.numeric as _nx
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/core/__init__.py", line 5, in 
-toplevel-
    import multiarray
ImportError: Inappropriate file type for dynamic loading




Any help anyone could offer as to the cause of this would be most welcome,
Cheers,     Joe Corbett
ps. installing numpy through python 2.3 worked and I was able to import 
numpy into 2.3 fine.

-----------------------------------------------------------------------
This mail sent through University of Auckland http://www.auckland.ac.nz





More information about the Numpy-discussion mailing list