[Numpy-discussion] Moved python install, import errors

David Warde-Farley dwf@cs.toronto....
Fri Mar 27 02:46:14 CDT 2009


Hi all,

I built ATLAS, Python 2.5 and NumPy on the local disk of a cluster  
node, so that disk access would be faster than over NFS, and then  
moved it back. I made sure to modify all the relevant paths in  
__config__.py but when importing I receive this error, which I can't  
make heads or tails of, since core/ does contain an __init__.py. Has  
anyone seen anything like this before?

Thanks,
David


In [1]: import numpy
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call  
last)

/home/dwf/<ipython console> in <module>()

/home/dwf/software/Python-2.5.4/lib/python2.5/site-packages/numpy/ 
__init__.py in <module>()
     128         return loader(*packages, **options)
     129
--> 130     import add_newdocs
     131     __all__ = ['add_newdocs']
     132

/home/dwf/software/Python-2.5.4/lib/python2.5/site-packages/numpy/ 
add_newdocs.py in <module>()
       7 #       core/fromnumeric.py, core/defmatrix.py up-to-date.
       8
----> 9 from lib import add_newdoc
      10
      11  
###############################################################################

/home/dwf/software/Python-2.5.4/lib/python2.5/site-packages/numpy/lib/ 
__init__.py in <module>()
      11
      12 import scimath as emath
---> 13 from polynomial import *
      14 from machar import *
      15 from getlimits import *

/home/dwf/software/Python-2.5.4/lib/python2.5/site-packages/numpy/lib/ 
polynomial.py in <module>()
       9 import re
      10 import warnings
---> 11 import numpy.core.numeric as NX
      12
      13 from numpy.core import isscalar, abs

AttributeError: 'module' object has no attribute 'core'




More information about the Numpy-discussion mailing list