[PYTHON MATRIX-SIG] ValueError: function not supported
Jim Hugunin
hugunin@mit.edu
Thu, 20 Mar 1997 16:40:13 -0500
Dietmar writes:
>
> When using NumPy I always get an error
> "ValueError: function not supported".
>
> An example is included at the end.
>
>
> Any ideas what could have gone wrong?
>
> The System I'm using is Acorn RISC OS.
This error is being caused by the function "a+1". The reason for it is
that the table of basic functions for arrays has somehow not been loaded in
your system. This behavior is very peculiar as your "from Numeric import
*" should handle this. As a test, I'd try doing an explicit "import umath"
and a
>>> dir(umath)
['__', '__doc__', '__file__', '__name__', '__version__', 'absolute', 'add',
'arccos', 'arcsin', 'arctan', 'arctan2', 'boolean_and', 'boolean_or',
'boolean_xor', 'ceil', 'conjugate', 'cos', 'cosh', 'divide', 'divide_safe',
'e', 'equal', 'exp', 'fabs', 'floor', 'fmod', 'greater', 'greater_equal',
'hypot', 'invert', 'left_shift', 'less', 'less_equal', 'log', 'log10',
'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'maximum',
'minimum', 'multiply', 'negative', 'not_equal', 'pi', 'power', 'remainder',
'right_shift', 'sin', 'sinh', 'sqrt', 'subtract', 'tan', 'tanh']
If you don't get what I show here, then something's very wrong.
My best guess is that you've somehow created another module called umath
that is confusing python's importer. Is there any chance of this?
Are you using the 1.0beta2 release? Are you using dynamic libraries or did
you build in the source tree?
-Jim
_______________
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________