Re: Problem using generic types?

2014-02-02 Thread Petrus Hyvönen
Hi Andi and Others, The latest trunk jcc works and builds very fine on my windows machine, and happy about the extendend support of generics. But I am experiencing the problem below when building on my mac, using same wrap parameters as on the windows platform. To me it seems like some

Re: Problem using generic types?

2014-02-02 Thread Petrus Hyvönen
Hi, It's part of a class PointVectorValuePair and PointValuePair in the apache math commons (http://commons.apache.org/proper/commons-math/javadocs/api-3.2/org/apache/commons/math3/optimization/PointVectorValuePair.html) I have tried to reserve a bunch of things like 'Point', 'Value', 'Pair'

Re: Problem using generic types?

2014-02-02 Thread Andi Vajda
On Feb 2, 2014, at 13:41, Petrus Hyvönen petrus.hyvo...@gmail.com wrote: Hi, It's part of a class PointVectorValuePair and PointValuePair in the apache math commons

Re: Problem using generic types?

2014-02-02 Thread Petrus Hyvönen
Hi Andi, Yes, the confusing thing is that it works well under windows. I compared the code in __wrap__ and it looks different in the windows version: static int t_PointVectorValuePair_init_(t_PointVectorValuePair *self, PyObject *args, PyObject *kwds) { switch

Re: Problem using generic types?

2014-02-02 Thread Andi Vajda
On Sun, 2 Feb 2014, Petrus Hyvönen wrote: Yes, the confusing thing is that it works well under windows. I compared the code in __wrap__ and it looks different in the windows version: static int t_PointVectorValuePair_init_(t_PointVectorValuePair *self, PyObject *args, PyObject *kwds)

Re: Problem using generic types?

2014-02-02 Thread Andi Vajda
On Sun, 2 Feb 2014, Petrus Hyvönen wrote: Yes, the confusing thing is that it works well under windows. I compared the code in __wrap__ and it looks different in the windows version: static int t_PointVectorValuePair_init_(t_PointVectorValuePair *self, PyObject *args, PyObject *kwds)

Re: Problem using generic types?

2014-02-02 Thread Andi Vajda
On Sun, 2 Feb 2014, Andi Vajda wrote: On Sun, 2 Feb 2014, Petrus Hyvönen wrote: Yes, the confusing thing is that it works well under windows. I compared the code in __wrap__ and it looks different in the windows version: static int t_PointVectorValuePair_init_(t_PointVectorValuePair *self,

Re: Problem using generic types?

2014-02-02 Thread Andi Vajda
On Sun, 2 Feb 2014, Andi Vajda wrote: On Sun, 2 Feb 2014, Andi Vajda wrote: On Sun, 2 Feb 2014, Petrus Hyvönen wrote: Yes, the confusing thing is that it works well under windows. I compared the code in __wrap__ and it looks different in the windows version: static int

Re: Problem using generic types?

2014-02-02 Thread Petrus Hyvönen
Thanks Andi! Rev 1563753 Builds and runs fine now on the Mac and Windows! I need to check my Windows machine and get rid of any old versions, think it shouldn't be there but obviously it is strange that it worked.. Many thanks! Regards /Petrus On 03 Feb 2014, at 2:44 , Andi Vajda

Re: Problem using generic types?

2014-01-14 Thread Petrus Hyvönen
Dear Andi, Many many thanks for looking into this! I am on travel for a week and do not have the computer with the special case with me to test. I did now however run it on the library that I am wrapping, and there get some errors in the creation of the wrapped module (orekit):

Re: Problem using generic types?

2014-01-14 Thread Petrus Hyvönen
Dear Andi, Many many thanks for looking into this! I am on travel for a week and do not have the computer with the special case with me to test. I did now however run it on the library that I am wrapping, and there get some errors in the creation of the wrapped module (orekit):

Re: Problem using generic types?

2014-01-14 Thread Andi Vajda
Hi Petrus, On Jan 14, 2014, at 4:24, Petrus Hyvönen petrus.hyvo...@gmail.com wrote: Dear Andi, Many many thanks for looking into this! I am on travel for a week and do not have the computer with the special case with me to test. I did now however run it on the library that I am

Re: Problem using generic types?

2014-01-11 Thread Andi Vajda
Hi Petrus, On Mon, 30 Dec 2013, Petrus Hyvönen wrote: Andi, great to hear that you could reproduce it. I'm very thankful if you could have a look at it, I've been struggling to understand how the machinery behind this works, but far from it still.. I think I fixed the problem and added an

Re: Problem using generic types?

2013-12-30 Thread Andi Vajda
On Sun, 29 Dec 2013, Petrus Hyvönen wrote: I have distilled the library that I have some trouble with and I think I have an example that is failing due to same problem I think. I am not good in java, but have tried to follow the logic from the library I'm wrapping. The function of the example

Re: Problem using generic types?

2013-12-29 Thread Andi Vajda
On Dec 29, 2013, at 17:02, Petrus Hyvönen petrus.hyvo...@gmail.com wrote: Dear Andi, I have distilled the library that I have some trouble with and I think I have an example that is failing due to same problem I think. I am not good in java, but have tried to follow the logic from the

Re: Problem using generic types?

2013-12-27 Thread Petrus Hyvönen
Dear Andi, I am working on debugging the failure and try to understand a bit how JCC works internally. I haven't gone very far but in case you have some pointers from these early debugging sessions I would be very thankful. I know it's complex, and I should try to make some smaller test cases,

Re: Problem using generic types?

2013-12-27 Thread Andi Vajda
On Dec 27, 2013, at 17:36, Petrus Hyvönen petrus.hyvo...@gmail.com wrote: Dear Andi, I am working on debugging the failure and try to understand a bit how JCC works internally. I haven't gone very far but in case you have some pointers from these early debugging sessions I would be very

Re: Problem using generic types?

2013-12-15 Thread Petrus Hyvönen
Hi Andi, I see your point and have now kept in the pure python domain. If I run my script from the shell by python script.py it does not crash. However if I execute it line-by-line in python it crashes (or in other tools such as ipython notebook). All classes used are non-wrapped java classes,

Re: Problem using generic types?

2013-12-15 Thread Andi Vajda
On Dec 15, 2013, at 5:43, Petrus Hyvönen petrus.hyvo...@gmail.com wrote: Hi Andi, I see your point and have now kept in the pure python domain. If I run my script from the shell by python script.py it does not crash. However if I execute it line-by-line in python it crashes (or in

Problem using generic types?

2013-12-14 Thread Petrus Hyvönen
Hi, I'm having a problem with I think might be related to generic types, but not sure at all. I'm wrapping a orbit calculation library, which has been working well but in latest version is using generic types and I'm getting some problems. The script works when executed in plain python, but