Problem with Python-2.1.1 and Numeric-20.1.0
Alexander V. Voinov
avv at quasar.ipa.nw.ru
Fri Jul 27 19:27:31 EDT 2001
Hi All,
"Alexander V. Voinov" wrote:
> Hi,
>
> It says:
>
> data = Numeric.transpose(data)
> File "/.../site-packages/Numeric/Numeric.py", line 280, in transpose
> axes = arange(len(array(a).shape))[::-1]
> File "/.../site-packages/Numeric/Numeric.py", line 159, in arrayrange
> m = (add.accumulate(ones((n,), Int))-1)*step +(start+(stop-stop))
> NameError: global name 'add' is not defined
>
> The program worked OK with Python-2.0 and Numeric-17.1.
:-) It occurred that some user's module in a shared directory was named
umath.py. Really, I do not see that I am to blame this user, because
everybody was told: "import Numeric and you're set". Is there a way to
protect internal submodule names?
Alexander
More information about the Python-list
mailing list