[PYTHON MATRIX-SIG] Strange problem importing Numeric

David Ascher da@maigret.cog.brown.edu
Thu, 23 Jan 1997 16:40:29 -0500 (EST)


> % python sieve.py
> Traceback (innermost last):
>   File "sieve.py", line 3, in ?
>     from Numeric.Core import *
>   File "/usr/local/lib/python1.4/ni.py", line 306, in import_module
>     return self.finish(m, m, tail, fromlist)
>   File "/usr/local/lib/python1.4/ni.py", line 321, in finish
>     m = self.get1(yname)
>   File "/usr/local/lib/python1.4/ni.py", line 338, in get1
>     m = self.get(name)
>   File "/usr/local/lib/python1.4/ni.py", line 358, in get
>     path = sys.modules[head].__path__
> AttributeError: __path__
> 
> Anyone got a shrubbery? If I just import Numeric, I get no errors. Even
> the html docs say to import Numeric, so are the demo programs out of date? 
> There's no Core in Numeric, anyway, as near as I can tell from
> dir(Numeric) (but then, I don't understand exactly how ni works). If I
> change "from Numeric.Core import *" to "from Numeric import *", sieve
> seems to work, BTW. 

Yah, the demos are out of date.  They date from a version of Numeric
which used 'ni'.  



_______________
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________