Re: [Jepp-users] Windows compiled version for python27?
Brought to you by:
mrjohnson0
From: Andy G. <and...@es...> - 2011-11-23 07:36:33
|
Hi Jon, I have built jep2.4 on Linux Ubuntu 11.10 using python2.7 and it compiles, install and the test runs with the output below. I presume despite the exceptions it is working. A least jep lets me import numpy+scipy which are needed by our programs. Andy On 11/22/2011 08:46 AM, Jonathan WRIGHT wrote: > Hi Mike, > > Are you planning to do a release for python27? We are about to try to > make a new release of our application and a couple of python libraries > now want to drop support for python25. If we can skip straight to > python27 it would bring us right up to date. Do you know of anything > which might be problematic in the latest python release? > > Thanks > > Jon > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Jepp-users mailing list > Jep...@li... > https://lists.sourceforge.net/lists/listinfo/jepp-users goetz@andy-laptop:~/jepp/jep-2.4$ java -classpath src jep.Test 0 running i: 0 1 1.0 1 Hello world using Jep. sys.path: ['/home/goetz/jepp/jep-2.4', '/opt/sardana/lib/python2.6/site-packages', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/ubuntuone-client', '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel', '/usr/lib/python2.7/dist-packages/ubuntuone-couch', '/usr/lib/python2.7/dist-packages/ubuntuone-installer', '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol', '/home/goetz/jepp/jep-2.4/.'] dir(jep): ['JBOOLEAN_ID', 'JBYTE_ID', 'JCHAR_ID', 'JDOUBLE_ID', 'JFLOAT_ID', 'JINT_ID', 'JLONG_ID', 'JSHORT_ID', 'JSTRING_ID', 'VERSION', '__doc__', '__name__', '__package__', 'findClass', 'forName', 'jarray', 'jimport', 'jproxy', 'printStack'] ################################################## # test parameters ################################################## dir test object: ['booleanField', 'byteField', 'callStaticVoid', 'callback', 'charField', 'classField', 'doubleField', 'equals', 'floatField', 'getBooleanArray', 'getByte', 'getChar', 'getClass', 'getClassDouble', 'getClassFloat', 'getClassLong', 'getDouble', 'getEnum', 'getFloat', 'getFloatArray', 'getInt', 'getIntArray', 'getInteger', 'getJep', 'getLong', 'getObject', 'getObjectArray', 'getShort', 'getShortArray', 'getStaticBoolean', 'getStaticByte', 'getStaticChar', 'getStaticClass', 'getStaticDouble', 'getStaticFloat', 'getStaticInt', 'getStaticLong', 'getStaticObject', 'getStaticShort', 'getStaticString', 'getStringArray', 'getStringStringArray', 'hashCode', 'intField', 'longField', 'main', 'notify', 'notifyAll', 'run', 'sendIntArray', 'sendMeSomeStuff', 'sendObjectArray', 'shortField', 'staticBoolean', 'staticByte', 'staticChar', 'staticClass', 'staticDouble', 'staticFloat', 'staticInt', 'staticLong', 'staticShort', 'staticString', 'stringField', 'toString', 'wait'] test object: toString(). Thanks for calling Java(tm). test parameter: value from java. test int param: 0 test bool param: 1 test long param: 123123122112 double param: 123.123 float param: 12312.1230469 test byte: 127 test char: t test null obj: None test class obj: toString(). Thanks for calling Java(tm). test b array: 1 test d array: 1.79769313486e+308 test b array: 1 test d array: 1.79769313486e+308 ################################################## # test method calling ################################################## test callback: Hey, you called a Java(tm) method! test toString: toString(). Thanks for calling Java(tm). test getInt: 2147483647 test getShort: 321 test getLong: 9223372036854775807 test getDouble: 1.79769313486e+308 test getFloat: 3.40282346639e+38 test getByte: 123 test getChar: c test getClass: dir getInteger: ['MAX_VALUE', 'MIN_VALUE', 'SIZE', 'TYPE', 'bitCount', 'byteValue', 'compareTo', 'decode', 'doubleValue', 'equals', 'floatValue', 'getClass', 'getInteger', 'hashCode', 'highestOneBit', 'intValue', 'longValue', 'lowestOneBit', 'notify', 'notifyAll', 'numberOfLeadingZeros', 'numberOfTrailingZeros', 'parseInt', 'reverse', 'reverseBytes', 'rotateLeft', 'rotateRight', 'shortValue', 'signum', 'toBinaryString', 'toHexString', 'toOctalString', 'toString', 'valueOf', 'wait'] dir getLong: ['MAX_VALUE', 'MIN_VALUE', 'SIZE', 'TYPE', 'bitCount', 'byteValue', 'compareTo', 'decode', 'doubleValue', 'equals', 'floatValue', 'getClass', 'getLong', 'hashCode', 'highestOneBit', 'intValue', 'longValue', 'lowestOneBit', 'notify', 'notifyAll', 'numberOfLeadingZeros', 'numberOfTrailingZeros', 'parseLong', 'reverse', 'reverseBytes', 'rotateLeft', 'rotateRight', 'shortValue', 'signum', 'toBinaryString', 'toHexString', 'toOctalString', 'toString', 'valueOf', 'wait'] long value: 9223372036854775807 integer value: -2147483648 double value: 4.9E-324 float value: 3.4028235E38 dir(jarrayList): ['add', 'addAll', 'clear', 'clone', 'contains', 'containsAll', 'ensureCapacity', 'equals', 'get', 'getClass', 'hashCode', 'indexOf', 'isEmpty', 'iterator', 'lastIndexOf', 'listIterator', 'notify', 'notifyAll', 'remove', 'removeAll', 'retainAll', 'set', 'size', 'subList', 'toArray', 'toString', 'trimToSize', 'wait'] test getObject list 0 dir(it) ['equals', 'getClass', 'hasNext', 'hashCode', 'next', 'notify', 'notifyAll', 'remove', 'toString', 'wait'] it.hasNext() 1 array parameter: list 1 got some stuff: v = an arraylist object and a = [list 0, list 1, list 2] test send stuff None got some stuff: v = null and a = [list 0, list 1, list 2] test send stuff None ################################################## # test constructors ################################################## new Integer: 12 new HashMap: {test=w00t} new Boolean: false <PyJobject object at 0x7faec8209c48> make jstring: tested new string make long: 123123123123123 make double: 132123.123123 make float: 123.123 make char: j make byte: 123 ################################################## # test fields ################################################## stringField: a stringField intField: 123 shortField: 321 booleanField: 1 longField: 9223372036854775807 doubleField: 123.123 floatField: 3.40282346639e+38 byteField: 43 charField: c classField: stringField: a new string for loop: 0 intField: 0 shortField: 0 booleanField: 0 longField: -9223372036854775807 doubleField: 1223123.123 floatField: 12312.1220703 byteField: 2 charField: j classField: ################################################## # test static fields ################################################## staticString: stringField staticInt: 123 staticShort: 321 staticBoolean: 1 staticLong: 9223372036854775807 staticDouble: 123.123 staticFloat: 3.40282346639e+38 staticChar: j staticByte: 125 staticClass: staticShort: 0 staticString: a new string for loop: 0 staticInt: 0 staticBoolean: 1 staticLong: -9223372036854775807 staticDouble: 123.12 staticFloat: 123.123001099 staticChar: z staticByte: -30 staticClass: staticString: a new string for loop: 0 staticInt: 0 staticShort: 0 staticBoolean: 1 staticLong: 9223372036854775807 staticDouble: 213239.990921 staticFloat: 3.21212315559 staticChar: a staticByte: -44 int min value: -2147483648 int min value: -2147483648 ii type: <type 'PyJobject'> Integer type: <type 'PyJobject'> ################################################## # test static methods ################################################## staticString: a static string. staticBoolean: 0 staticInt: 123 staticShort: 321 staticObject: java.lang.Object@199a0c7c staticVoid: None staticLong: 9223372036854775807 staticDouble: 123123213.123 staticFloat: 12312.1230469 staticByte: 23 staticChar: b staticClass: ################################################## # test exceptions ################################################## 12: 12 Exception in thread "main" java.lang.NumberFormatException: For input string: "asdf" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:481) at java.lang.Integer.parseInt(Integer.java:514) at jep.Jep.run(Native Method) at jep.Jep.runScript(Jep.java:191) at jep.Jep.runScript(Jep.java:167) at jep.Test.run(Test.java:89) at jep.Test.main(Test.java:371) parseInt: caught NumberFormatException Exception in thread "main" java.io.FileNotFoundException: asdf (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:137) at java.io.FileInputStream.<init>(FileInputStream.java:96) at jep.Jep.run(Native Method) at jep.Jep.runScript(Jep.java:191) at jep.Jep.runScript(Jep.java:167) at jep.Test.run(Test.java:89) at jep.Test.main(Test.java:371) inputStream: caught FileNotFoundException Integer = fixed regression test. regression: no crash yet ################################################## # array handling ################################################## configure starts #! /bin/sh string[] len: 2 [0], [1], [2]: one two two [0], [1]: new None sending: array[0] = new array[1] = null string[][]: 2 [0][1]: two object array: 2 [0], [1]: toString(). Thanks for calling Java(tm). toString(). Thanks for calling Java(tm). [0], [1]: toString(). Thanks for calling Java(tm). None int array[0]: 1 sending: <jarray object at 0x7faec8141b28> array[0] = -99 array[1] = 2 bool array[1]: 1 short [1]: 123 float[0]: 123.123001099 Float max: 3.40282346639e+38 python loop 0 finished. testMethod: 1 testMethod: 123 testMethod: 112 testMethod: 112.23 testMethod: 112.231231689 testMethod: -45 testMethod: t testMethod: method called from Java testMethod ret: 12 Test get object: toString(). Thanks for calling Java(tm). Test get string: value from java. Test get int: 0 Test get boolean: true Test get long: 123123122112 Test get double: 123.123 Test get float: 12312.123 Test get short: 127 Test get null: null Test get class: class jep.Test Test get Python object: {'blah': 'har'} get unknown val: <type 'exceptions.NameError'>: name '_asdf' is not defined **** close me test instance finalized, you should see this if the reference counting worked... test instance finalized, you should see this if the reference counting worked... test instance finalized, you should see this if the reference counting worked... |