[SciPy-dev] Import strategy

Pearu Peterson pearu at scipy.org
Mon Jan 9 04:32:17 EST 2006



On Mon, 9 Jan 2006, Nils Wagner wrote:

> Traceback (most recent call last):
>  File "import.py", line 5, in ?
>    a_logm = linalg.logm(a)
> AttributeError: 'module' object has no attribute 'logm'

What linalg module are you using in import.py? May be it comes from
numpy? How do you import scipy/numpy in import.py?

Otherwise

>>> from scipy import *
>>> linalg.logm
<function logm at 0x40cf08ec>

works fine here.

Pearu




More information about the SciPy-Dev mailing list