[PYTHON MATRIX-SIG] ValueError: function not supported

Dietmar Schwertberger dietmar.schwertberger@student.uni-ulm.de
Fri, 21 Mar 1997 19:17:41 +0100 (MEZ)


On Fre 21 Mrz, Jim Hugunin wrote:
> 
> This is very strange behavior!  It could have something to do with dynamic 
> linking under the Acorn OS (which I know absolutely nothing about).  Are 
Yes, Acorns are quite seldom - especially in the US.

> you in a position to build this statically linked into the interpreter? 
I will try to do so over the weekend.


>  I'd very much like to know if this would make the problem go away.
> 
> Another simple test case I'd like to have you try is the following.  Let me 
> know how your results compare to mine.
> 
> >>> import multiarray
> >>> a = multiarray.array([1,2,3])
> >>> a
> array([1, 2, 3], 'l')
> >>> a+1
> Traceback (innermost last):
>   File "<interactive input>", line 0, in ?
> ValueError: function not supported
> >>> import umath
> >>> a+1
> array([2, 3, 4], 'l')

My result:

Python 1.4 (Mar 20 1997) [C]
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import multiarray
>>> a=multiarray.array([1,2,3])
>>> a
array([1, 2, 3], 'l')
>>> a+1
Traceback (innermost last):
  File "<stdin>", line 1, in ?
ValueError: function not supported
>>> import umath
>>> a+1
Traceback (innermost last):
  File "<stdin>", line 1, in ?
ValueError: function not supported
>>> 


> If you're in a position to do c-code debugging, I'd look closely at the 
> function call to PyArray_SetNumericOps at the bottom of umathmodule.c.  If 
With a statically linked System, it should be possible to use the debugger.


> none of the rest of this helps, and you're not able to debug the C-code, I 
> don't think there's anything else I can do to help you.
You've already done a lot. Thanks,


Dietmar


_______________
MATRIX-SIG  - SIG on Matrix Math for Python

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