Tom,

For this problem, you may want to look at the tracker for JNumeric, apparently a quick fix for the 2.2beta was determined. This might be applicable to your situation:
http://sourceforge.net/tracker/index.php?func=detail&aid=1734031&group_id=49106&atid=455128

Unfortunately, JNumeric to my knowledge is no longer supported. The last email on its mailing list was in 2004, on which someone said they "Have $ to support" :), but that still wasn't enough.

But that's not the end of it. Along with a number of other people, I'm personally planning on revisiting numerical Jython issues, around a port of NumPy -- let's call it NumJy. In particular, we would like to address how we can effectively use many cores concurrently and work with extremely large data sets (so from the start, support for NetCDF, DAP, and HDF). It simply makes sense to take the premier high-level programming language for scientific computing and support it on the Java platform.

Kickoff for NumJy work will be at PyCon, so if you're interested, please catch us there!

- Jim


On Mon, Feb 9, 2009 at 9:34 AM, Tom Whittaker <tomw@ssec.wisc.edu> wrote:
(Sorry if this has been covered before -- I searched, but found no
other comments/questions.)  We just moved an application to Jython 2.2
....and found that JNumeric is quite broken.  One cannot even say
"from Numeric import *" without getting an Exception.  Any ideas and
help appreciated.

Here's the Excpetion (abreviated):

>>> from Numeric import *
Traceback (innermost last):
 File "<console>", line 1, in ?
       at JNumeric.PyMultiarray.<init>(PyMultiarray.java:73)
........
java.lang.NoSuchMethodError: java.lang.NoSuchMethodError:
org.python.core.PySequence.<init>(Lorg/python/core/PyClass;)V


The issues appear to be mostly (if not all) in the PyMultiarray class,
referencing signatures that have changed since 2.1.  Here's the output
from an attempt to recompile the package:

C:\Temp\jnumeric\src\>javac -cp \jython2.2b2\jython.jar;. *.java JNumeric\*.java

PyMultiarray.java:29: JNumeric.PyMultiarray is not abstract and does
not override abstract method pyget(int) in org.python.core.PySequence
public class PyMultiarray extends PySequence {
      ^
PyMultiarray.java:73: cannot find symbol
symbol  : constructor PySequence(org.python.core.PyClass)
location: class org.python.core.PySequence
       super(__class__);
       ^
PyMultiarray.java:904: cannot find symbol
symbol  : method getValue()
location: class org.python.core.PyObject
       return new int []
{asarray(o).__getitem__(Py.Ellipsis).__int__().getValue()};
                                 ^
PyMultiarray.java:913: cannot find symbol
symbol  : method getValue()
location: class org.python.core.PyObject
           intArray[i] = o.__getitem__(i).__int__().getValue();
                                      ^
PyMultiarray.java:1428: list has protected access in org.python.core.PySequenceL
ist
       PyObject indices[] = (pyIndices instanceof PyTuple) ?
((PyTuple)pyIndices).list : new PyObject[] {pyIndices};
                                                             ^
PyMultiarray.java:1428: incompatible types
found   : java.lang.Object
required: org.python.core.PyObject[]
       PyObject indices[] = (pyIndices instanceof PyTuple) ?
((PyTuple)pyIndices).list : new PyObject[] {pyIndices};
                                                           ^

--
Tom Whittaker
University of Wisconsin-Madison
Space Science & Engineering Center (SSEC)
Cooperative Institute for Meteorological Satellite Studies (CIMSS)
1225 W. Dayton Street
Madison, WI  53706  USA
ph: +1 608 262 2759

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users



--
Jim Baker
jbaker@zyasoft.com