From: Arnd B. <arn...@we...> - 2006-05-03 07:02:49
|
On Wed, 3 May 2006, Arnd Baecker wrote: > In [1]: import numpy > from lib import * -> failed: 'module' object has no attribute 'nmath' > import linalg -> failed: 'module' object has no attribute 'nmath' > > In numpy/lib/__init__.py the construct > __all__ = ['nmath','math'] > is used, but `nmath` is not mentioned explicitely before. By looking in the trac history I found the simple reason: Index: numpy/lib/__init__.py =================================================================== --- numpy/lib/__init__.py (revision 2472) +++ numpy/lib/__init__.py (working copy) @@ -18,7 +18,7 @@ from arraysetops import * import math -__all__ = ['nmath','math'] +__all__ = ['emath','math'] __all__ += type_check.__all__ __all__ += index_tricks.__all__ __all__ += function_base.__all__ Patch is applied, http://projects.scipy.org/scipy/numpy/changeset/2473 So now numpy builds again and no errors on test. Back to real work ;-). Arnd |