Re: Experience with JCC >=3.9.9 and windows

2022-02-07 Thread Petrus Hyvönen
it will need to also go into the generation of wrapper code I would assume. Best Regards /Petrus On Tue, Dec 28, 2021 at 10:33 PM Petrus Hyvönen wrote: > Short update, I have now debugged the python 3.9.9 (not working) and 3.9.7 > (working) side by side. It seems like there is a difference in be

Re: Experience with JCC >=3.9.9 and windows

2021-12-28 Thread Petrus Hyvönen
The return of this function seems to behave differently in the different python versions (from what I can find). I am not fully understanding this import magics, but could be that there is an issue with setuptools or something completely different :) Regards /Petrus On Tue, Dec 28, 2021 at 4:41 PM Petr

Experience with JCC >=3.9.9 and windows

2021-12-28 Thread Petrus Hyvönen
come :) Best Regards /Petrus -- _________ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00

Re: [jira] [Commented] (PYLUCENE-51) "AttributeError: __module__" when running doctest

2019-10-20 Thread Petrus Hyvönen
Many thanks Andi :) > On 17 Oct 2019, at 20:11 , Andi Vajda wrote: > > > Added __module__ to JArray() types in rev 1868563. > > On Thu, 17 Oct 2019, Petrus Hyvönen (Jira) wrote: > >> >> [ >> https://issues.

Re: [ANNOUNCE] Apache PyLucene 8.1.1

2019-09-11 Thread Petrus Hyvönen
st.apache.org/repos/dist/release/lucene/pylucene/KEYS > > For more information on Apache PyLucene, visit the project home page: >http://lucene.apache.org/pylucene > > Andi.. > -- _ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00

Re: [VOTE] Release PyLucene 8.1.1 (rc2)

2019-07-05 Thread Petrus Hyvönen
; https://dist.apache.org/repos/dist/release/lucene/pylucene/KEYS > > https://dist.apache.org/repos/dist/dev/lucene/pylucene/KEYS > > > > pps: here is my +1 > > -- _ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00

Re: [jira] [Commented] (PYLUCENE-47) Type matching in methods with same number of arguments

2019-04-19 Thread Petrus Hyvönen
> > > > Key: PYLUCENE-47 > > URL: https://issues.apache.org/jira/browse/PYLUCENE-47 > > Project: PyLucene > > Issue Type: Bug > >Reporter: Petrus Hyvönen

Re: JCC strange behaviour

2019-04-08 Thread Petrus Hyvönen
it really needs to be the same class of the types but that may affect how a library is used alot. With Best Regards /Petrus On Sun, Apr 7, 2019 at 10:50 PM Andi Vajda wrote: > > On Sun, 7 Apr 2019, Petrus Hyvönen wrote: > > > Hi, > > > > I am getting inconsistent resu

Re: JCC strange behaviour

2019-04-07 Thread Petrus Hyvönen
old version of something may be picked up > instead. > > Andi.. > > > On Apr 5, 2019, at 15:04, Petrus Hyvönen > wrote: > > > > Hi, > > > > I am having some confusing time with a wrapped class. > > > > The class "Transform" has

Re: JCC strange behaviour

2019-04-05 Thread Petrus Hyvönen
Sorry should be "JCC 3.3 version" in end of first section. On Sat, Apr 6, 2019 at 12:04 AM Petrus Hyvönen wrote: > Hi, > > I am having some confusing time with a wrapped class. > > The class "Transform" has a function transformPVCoordinates() that has >

JCC strange behaviour

2019-04-05 Thread Petrus Hyvönen
ds /Petrus -- _____ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00

Re: [jira] [Resolved] (PYLUCENE-46) __dir__ module paramter

2019-03-04 Thread Petrus Hyvönen
Issue Type: Bug > > Environment: Windows, Python3.7, JCC 3.4 > >Reporter: Petrus Hyvönen > >Priority: Minor > > > > Hi, > > Since Python 3.7 the __dir__ module attribute is part of the API to > return the values that

Re: Some questions on implementing java interfaces

2019-01-20 Thread Petrus Hyvönen
of the library run the default code if they don't want to implement it (by accessing the interface method direclty). Best Regards /Petrus On Sat, Jan 19, 2019 at 11:56 PM Andi Vajda wrote: > > Hi Petrus, > > On Sat, 19 Jan 2019, Petrus Hyvönen wrote: > > > I am working

Some questions on implementing java interfaces

2019-01-19 Thread Petrus Hyvönen
lt code from python by calling the interface directly "Interface.method(self, param)" and reducing the effort needed on the python side. Any thoughts on this? Thankful for any feedback, Regards /Petrus -- _________ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00

Re: [jira] [Commented] (PYLUCENE-41) JArray type issue

2018-06-04 Thread Petrus Hyvönen
On Mon, Mar 19, 2018 at 10:30 PM, Petrus Hyvönen (JIRA) wrote: > > [ https://issues.apache.org/jira/browse/PYLUCENE-41?page= > com.atlassian.jira.plugin.system.issuetabpanels:comment- > tabpanel=16405482#comment-16405482 ] > > Petrus Hyvönen commen

Re: [jira] [Commented] (PYLUCENE-38) JCC build error under recents versions of clang.

2018-05-26 Thread Petrus Hyvönen
Hi, Yes, I’m using anaconda and have set up automated builds for JCC packages (win/mac/linux) for it at: https://github.com/conda-forge/jcc-feedstock I do not remember seeing your issue in the build, but check your compile parameters to the ones

Re: [nag][VOTE] Release PyLucene 7.2.0 (rc1)

2018-01-08 Thread Petrus Hyvönen
Just to encourage, Please PMC's vote so we can have a fresh release of JCC also! Many Thanks for you efforts, /Petrus > On 4 Jan 2018, at 11:29 , Andi Vajda wrote: > > > Two more PMC votes are needed to make this release ! > Thanks ! > > -- Forwarded message

Note/Bug JCC, dots in pathnames

2017-09-22 Thread Petrus Hyvönen
(module.split('.')[0] + '.py', modulePath) I'm not sure what this section of code does, but maybe joining all parts but the last would work, like '.'.join(module.split('.')[:-1]) Regards /Petrus -- _ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803

Plans for release of current svn?

2017-09-04 Thread Petrus Hyvönen
got 3.0 release working: https://github.com/conda-forge/staged-recipes/pull/3770 Best Regards & Many Thanks, /Petrus -- _____ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00

Compiler directive for PRIxMAX macro

2017-08-30 Thread Petrus Hyvönen
/Petrus -- _ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00

Building jcc 3.0 under linux / anaconda python

2017-04-14 Thread Petrus Hyvönen
ing this, as long as it builds fine? Best Regards /Petrus -- _________ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00

Re: [VOTE] Release PyLucene 6.5.0 (rc2) (now with Python 3 support)

2017-04-04 Thread Petrus Hyvönen
n 3. > > > > Please vote to release these artifacts as PyLucene 6.5.0. > > Anyone interested in this release can and should vote ! > > > > Thanks ! > > > > Andi.. > > > > ps: the KEYS file for PyLucene release signing is at: > > https://dist.apache.org

Re: [VOTE] Release PyLucene 6.5.0 (rc1) (now with Python 3 support)

2017-03-30 Thread Petrus Hyvönen
'mingw32': ['-L%(mingw32)s/lib' %(JDK), '-ljvm'], 'freebsd7': ['-L%(freebsd7)s/jre/lib/i386' %(JDK), '-ljava', '-lverify', '-L%(freebsd7)s/jre/lib/i386/client' %(JDK), '-ljvm', On Thu, Mar 30, 2017 at 5:36 PM, Petrus Hyvönen <petrus.hyvo...@gmail.com> wrote: > Hi

Re: [VOTE] Release PyLucene 6.5.0 (rc1) (now with Python 3 support)

2017-03-30 Thread Petrus Hyvönen
Hi, I was trying the python 2.7 build and I think the line 23 in jcc2/__init__.py should be: from jcc.config import SHARED (instead of from jcc2.config import..) Regards /Petrus On Thu, Mar 30, 2017 at 9:10 AM, Petrus Hyvönen <petrus.hyvo...@gmail.com> wrote: > Hi, > > Wi

Re: [VOTE] Release PyLucene 6.5.0 (rc1) (now with Python 3 support)

2017-03-30 Thread Petrus Hyvönen
ied to the py2 directory where we >> still use int allthough PyObject_Hash returns already long on python >> >>> 2.x. >>> >> >> cu, >> Rudi >> >> >> -- _ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00

Re: [VOTE] Release PyLucene 6.5.0 (rc1) (now with Python 3 support)

2017-03-29 Thread Petrus Hyvönen
rtly before final release if nobody > > else does it. > > Don't bother. If there are no windows users willing to test this then we > don't need to support windows anymore. > > > So far I believe that the patch here in my last comment would do it > > https://github.com/rudimeier/jcc/issues/1 > > (It was also part of tommykoch's port) > > Ok, I'll take another look... > > Andi.. > > > > > cu, > > Rudi > > -- _ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00

Re: Installing PyLucene

2017-01-04 Thread Petrus Hyvönen
ene-dev@lucene.apache.org/msg02167.html> > > Regards, > Thomas > -- _____ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00

Re: [POLL] What should happen to PyLucene now?

2016-07-02 Thread Petrus Hyvönen
t; [ ] Close down the sub project > [ ] Don’t care. I’m no longer a user > [ ] Other: > > -- > Jan Høydahl, search solution architect > Cominvent AS - www.cominvent.com > Lucene commiter & PMC member -- _ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00

Re: Current state of PyLucene

2015-11-16 Thread Petrus Hyvönen
> > Why is there a decline in interest? > > Dunno. The PMC lives in Java land and doesn't pay much attention. And I > stopped nagging them. As for users, there are plenty of them (?) but they > don't participate or otherwise show interest by voting for releases. > > Andi.. -

Re: Python 3

2015-06-23 Thread Petrus Hyvönen
.. Regards, Johan -- _ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00

Re: Remote (java) debugging w JCC?

2015-05-17 Thread Petrus Hyvönen
with breakpoints etc. Sorry for the noise.. :) Regards /Petrus On Sun, May 17, 2015 at 9:58 PM, Petrus Hyvönen petrus.hyvo...@gmail.com wrote: Hi, I'm trying to find some potential bugs in the java code I've wrapped and thought about the possibilities to connect a remote debugger to the JVM. I am no java

Re: Set path to JRE / JDK in code

2015-01-21 Thread Petrus Hyvönen
of updating the path to the right place later on. Many thanks /Petrus On Tue, Jan 20, 2015 at 7:14 PM, Andi Vajda va...@apache.org wrote: On Tue, 20 Jan 2015, Petrus Hyvönen wrote: Hi, I'm trying to package a wrapped library together with a non system-wide java JDK so that it can be easily

Re: How does JCC choose which java version to use?

2014-03-21 Thread Petrus Hyvönen
or assume any liability or responsibility for any use of or reliance on this email. -- _ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00

Re: Problem using generic types?

2014-02-02 Thread Petrus Hyvönen
Vajda va...@apache.org wrote: 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

Re: Problem using generic types?

2014-02-02 Thread Petrus Hyvönen
); ^ build/_orekit/__wrap__.cpp:58329:52: note: to match this '[' self-parameters[0] = ::PY_TYPE([D); On 02 Feb 2014, at 19:48 , Andi Vajda va...@apache.org wrote: On Feb 2, 2014, at 10:08, Petrus Hyvönen petrus.hyvo

Re: Problem using generic types?

2014-02-02 Thread Petrus Hyvönen
/jacoco/org.apache.commons.math3.optimization/PointVectorValuePair.java.html Regards /petrus On 02 Feb 2014, at 22:54 , Andi Vajda va...@apache.org wrote: On Feb 2, 2014, at 13:41, Petrus Hyvönen petrus.hyvo...@gmail.com wrote: Hi, It's part of a class PointVectorValuePair

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
in . Best Regards and again, many thanks again! /petrus On 11 Jan 2014, at 14:23 , Andi Vajda va...@apache.org wrote: 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

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?

2013-12-30 Thread Petrus Hyvönen
, 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 does

Re: Problem using generic types?

2013-12-27 Thread Petrus Hyvönen
:36 AM, Andi Vajda va...@apache.org wrote: 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

Re: Problem using generic types?

2013-12-15 Thread Petrus Hyvönen
2013, at 2:40 , Andi Vajda va...@apache.org wrote: On Dec 14, 2013, at 19:14, Petrus Hyvönen petrus.hyvo...@gmail.com wrote: 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

Automatic typecasting of int to float

2013-12-14 Thread Petrus Hyvönen
Hi! I am converting some java code to python scripts, using a JCC wrapped library. One thing that strikes me is that java seems to have a automatic typecast of int to float, which is not present in the JCC wrapped library. i.e. if a tmp=100 and obj.shift(tmp) is executed, and the method

Re: Automatic typecasting of int to float

2013-12-14 Thread Petrus Hyvönen
Hi, Yes sorry it should have been float(tmp). Yes, could be added to the java code, and if it's complex its probably not an issue in many cases. Regards /Petrus On 14 Dec 2013, at 20:59 , Andi Vajda va...@apache.org wrote: On Dec 14, 2013, at 16:46, Petrus Hyvönen petrus.hyvo

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

Error when java exception

2013-02-04 Thread Petrus Hyvönen
Hi, I have some strange error when an java exception occurs in the wrapped library 'orekit', the exception text is not printed and a python error NameError: global name 'StringWriter' is not defined occurs in __init__.py I am using the --use_full_names option, latest JCC from SVN. It is in the

Re: Error when java exception

2013-02-04 Thread Petrus Hyvönen
related to this in cpp.py. I don't understand it really but is the StringWriter in cpp.py row 54 imported somehow? Best Regards, /Petrus -- _ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00

JCC and one-folder python

2012-12-07 Thread Petrus Hyvönen
Hi, This might be obvious to many on this list, but for some it might be of interest. When my friend was going to try my JCC wrapped library on a Windows computer we had lots of trouble, I don't know if it was java versions, compilers or just bad luck. I have now found the WinPython, no-install,

Re: Editing the PyLucene web site

2012-06-28 Thread Petrus Hyvönen
2012, at 18:54, Andi Vajda wrote: Hi Petrus, On Tue, 19 Jun 2012, Petrus Hyvönen wrote: Attached is an diff update to the mdtext files with jcc documentation. I didn't manage to get the site build system to work, I think a perl markdown module is needed, which I get build error when

Re: Editing the PyLucene web site

2012-06-19 Thread Petrus Hyvönen
in there, please check that it looks ok before activating. Best Regards /Petrus On 18 jun 2012, at 01:17, Andi Vajda wrote: Hi Petrus, On Sun, 17 Jun 2012, Petrus Hyvönen wrote: Thanks for your response. Sorry about the topic, my intention was not to hijack the thread, used an old

Re: building JCC on Python 2.4

2012-06-17 Thread Petrus Hyvönen
Dear Andi, I am trying to clean up my wrap script and comes to some questions. Is there a way to see if a method or constructor is now wrapped due to that any of its inputs/outputs are not wrapped? (to make sure that I haven't missed any --package) If i --package java.io does that mean that

Question on non-visible inherited methods.

2012-02-21 Thread Petrus Hyvönen
Hi, First, my java and object oriented knowledge is limited, so this can be caused by that. Thanks for your patience :) I am trying to wrap an external library. I get the object through sun = CelestialBodyFactory.getSun() which works. I am missing a method on sun. The method is available when I

Re: Typecasting in JCC (i think..)

2012-01-31 Thread Petrus Hyvönen
Hi, Is there a way of specifying which java SDK to link to? On my windows 7 machine it wants to use Java SDK 1.7 but I would like to keep it at SDK 1.6? Is this possible? Regards

JCC crash when building

2011-12-12 Thread Petrus Hyvönen
. -Jason On 2011/9/9 14:59, Petrus Hyvönen wrote: Now I installed Microsoft Visual C++ compiler and JCC builds and works fine both with python 2.6, 2.7 in 64-bit win7. Many thanks /Petrus On Thu, Sep 8, 2011 at 10:35 PM, Bill Janssenjans...@parc.com  wrote: Petrus Hyvönenpetrus.hyvo

JCC fails w Java 7 win 7 64 bit

2011-09-30 Thread Petrus Hyvönen
7 and rebuilding JCC. This applies for both 2.11 and 2.10. Best regards /Petrus _ Petrus Hyvönen, Uppsala, Sweden Mobile Phone/SMS:+46 73 803 19 00

Fwd: [Orekit Developers] Distribution of orekit-python egg

2011-09-09 Thread Petrus Hyvönen
, is there something I need to do to ensure that the JCC license is fulfilled? In my case the wrapped library is also in apache, so I guess it should not be an issue to put the egg under apache? Regads /Petrus -- Forwarded message -- From: Petrus Hyvönen petrus.hyvo...@gmail.com Date: Fri

Re: JCC crash when building

2011-09-07 Thread Petrus Hyvönen
, but since I don't run Windows much and mingw not at all, I can't help you. It is very likely you've got some DLLs mixed up indeed. Maybe someone with mingw experience here can chime in ? Andi.. On Tue, 6 Sep 2011, Petrus Hyvönen wrote: Hi again, python -m jcc --find-jvm-dll crashes as well

Problems building JCC

2011-07-04 Thread Petrus Hyvönen
Hi, This is likely another faq but, I've moved to a windows 7 machine (64bit) and trying to compile jcc. mingw32 compiler, JDK, JRE installed. I'm getting a libjcc.a - No such file or directory error. javac is available at the command prompt. Building with: python setup.py build

Re: JCC usage failure

2011-06-09 Thread Petrus Hyvönen
/Petrus On Fri, Jun 3, 2011 at 5:39 PM, Andi Vajda va...@apache.org wrote: On Jun 3, 2011, at 1:21, Petrus Hyvönen petrus.hyvo...@gmail.com wrote: Hi, I am trying to use JCC to wrap a java library (orekit.org), and have successfully done so on the mac platform. As I also use windows I try

JCC usage failure

2011-06-03 Thread Petrus Hyvönen
Hi, I am trying to use JCC to wrap a java library (orekit.org), and have successfully done so on the mac platform. As I also use windows I try to do the same there. JCC compiles fine on both platforms (using --compiler=mingw32 on win, using the python xy distribution with mingw v4.5.2). the