[Numpy-discussion] TypeError: 'module' object is not callable

Robert Kern robert.kern@gmail....
Mon Jan 11 17:49:11 CST 2010


On Mon, Jan 11, 2010 at 17:44, Jankins <andyjian430074@gmail.com> wrote:
> Hello,
>
> I want to use scipy.sparse.linalg.eigen function, but it keeps popping
> out error message:
> TypeError: 'module' object is not callable
>
> "eigen" is a module, but it has "__call__" method. Why couldn't I call
> scipy.sparse.linalg.eigen(...)?

Please show the complete code and the complete traceback.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco


More information about the NumPy-Discussion mailing list