[Numpy-discussion] Error importing from numpy.matlib

David M. Cooke cookedm at physics.mcmaster.ca
Sat Jan 5 13:44:54 EST 2008


On Jan 3, 2008, at 18:29 , Steve Lianoglou wrote:
>
> Anyway, somewhere in my codebase (for a long time now) I'm doing:
>
> from numpy.matlib import *
>
> Now, when I try to use this code, or just type that in the
> interpreter, I get this message:
>
> AttributeError: 'module' object has no attribute 'pkgload'
>
> This doesn't happen when I do:
>
> import numpy.matlib as M
>
> Anyway, can anyone shed some light on this?


This is the behaviour you'd get if the module's __all__ attribute  
lists objects which don't exist in the module. Looks like a regression  
in r4659; fixed in SVN now as r4674.

-- 
|>|\/|<
/------------------------------------------------------------------\
|David M. Cooke              http://arbutus.physics.mcmaster.ca/dmc/
|cookedm at physics.mcmaster.ca




More information about the NumPy-Discussion mailing list