Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-22 Thread Andi Vajda
> On Oct 22, 2024, at 17:16, Prashant Saxena wrote: > > Well, I can't run 'make' ;-), That's been the main problem since the > beginning. You could if you installed cygwin. > I just checked a few scripts and they are working fine. I'll start testing > extensively within the next few days >

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-22 Thread Prashant Saxena
Well, I can't run 'make' ;-), That's been the main problem since the beginning. I just checked a few scripts and they are working fine. I'll start testing extensively within the next few days and post here in case of any bugs. On Tue, Oct 22, 2024 at 7:28 PM Andi Vajda wrote: > > On Tue, 22 Oct

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-22 Thread Andi Vajda
On Tue, 22 Oct 2024, Prashant Saxena wrote: Voila;-) The PyLucene extension is finally built on Windows. Does it run, do the tests pass ? run "make test"... Thanks Andi, I really appreciate your help & guidance. Excellent, thank you for being so persistent. You didn't pick an easy set

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-22 Thread Prashant Saxena
Voila;-) The PyLucene extension is finally built on Windows. Thanks Andi, I really appreciate your help & guidance. Again there were same errors as before D:\projects\database\pylucene-10.0.0\build\_lucene\org/objectweb/asm/Opcodes.h(245): error C2059: syntax error: 'constant' D:\projects\data

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-22 Thread Andi Vajda
On Tue, 22 Oct 2024, Andi Vajda wrote: On Tue, 22 Oct 2024, Prashant Saxena wrote: Here are three of them pylucene-10.0.0\build\_lucene\java/lang/System$Logger$Level.h(41) static System$Logger$Level *ERROR; pylucene-10.0.0\build\_lucene\org/antlr/v4/runtime/atn/ATNSimulator.h(63) static ::

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-22 Thread Andi Vajda
On Tue, 22 Oct 2024, Prashant Saxena wrote: Here are three of them pylucene-10.0.0\build\_lucene\java/lang/System$Logger$Level.h(41) static System$Logger$Level *ERROR; pylucene-10.0.0\build\_lucene\org/antlr/v4/runtime/atn/ATNSimulator.h(63) static ::org::antlr::v4::runtime::dfa::DFAState *ER

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-22 Thread Prashant Saxena
Here are three of them pylucene-10.0.0\build\_lucene\java/lang/System$Logger$Level.h(41) static System$Logger$Level *ERROR; pylucene-10.0.0\build\_lucene\org/antlr/v4/runtime/atn/ATNSimulator.h(63) static ::org::antlr::v4::runtime::dfa::DFAState *ERROR; pylucene-10.0.0\build\_lucene\org/objectwe

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-22 Thread Andi Vajda
> On Oct 22, 2024, at 09:01, Prashant Saxena wrote: > > Ok, much less errors after building and reinstalling JCC > > D:\projects\database\pylucene-10.0.0\build\_lucene\java/lang/System$Logger$Level.h(41): > error C2059: syntax error: 'constant' Hmm, so you still have the error with 'constant

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-22 Thread Prashant Saxena
Ok, much less errors after building and reinstalling JCC D:\projects\database\pylucene-10.0.0\build\_lucene\java/lang/System$Logger$Level.h(41): error C2059: syntax error: 'constant' D:\projects\database\pylucene-10.0.0\build\_lucene\java/lang/System$Logger$Level.h(41): error C2238: unexpected tok

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-21 Thread Andi Vajda
On Tue, 22 Oct 2024, Prashant Saxena wrote: Ok, here are the changes as requested in jcc/jcc3/cpp.py RESERVED = set(['constant delete', 'constant and', 'constant or', 'constant not', 'constant xor', 'constant union', 'constant register', 'constant const', 'constant bool', 'const

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-21 Thread Prashant Saxena
Ok, here are the changes as requested in jcc/jcc3/cpp.py RESERVED = set(['constant delete', 'constant and', 'constant or', 'constant not', 'constant xor', 'constant union', 'constant register', 'constant const', 'constant bool', 'constant operator', 'constant typeof', 'constant asm

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-21 Thread Andi Vajda
> On Oct 21, 2024, at 12:53, Prashant Saxena wrote: > > Well, JCC & Lucene was successfully built on Windows. Although it was not > at all a good experience. > I don't know if someone has successfully installed PyLucene on windows ever. > The Python script to build PyLucene is also working fin

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-21 Thread Prashant Saxena
Well, JCC & Lucene was successfully built on Windows. Although it was not at all a good experience. I don't know if someone has successfully installed PyLucene on windows ever. The Python script to build PyLucene is also working fine by creating the *GENERATE* command and executing it. While buildi

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-20 Thread Andi Vajda
> On Oct 20, 2024, at 21:21, Prashant Saxena wrote: > >  On Windows, Makefile does not work, even with nmake that ships with MSVC. Yes, you need something unix compatible like cygwin's make. You're making your learning path much more difficult by doing this on Windows. I have no access to Wi

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-20 Thread Prashant Saxena
On Windows, Makefile does not work, even with nmake that ships with MSVC. I am working on a python based build script instead of Makefile to ease the process of building. At present I am trying to build Lucene-10.0.0 manually as per the instructions. gradlew.bat assemble gradlew.bat check but it'

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-20 Thread Andi Vajda
> On Oct 20, 2024, at 21:00, Andi Vajda wrote: > >  >> On Oct 20, 2024, at 20:52, Prashant Saxena wrote: >> >> As per the documentation first I typed >> "gradlew assemble" >> then I typed >> "gradlew check", so yes I have invoked it myself. > > The PyLucene instructions make no mention of

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-20 Thread Andi Vajda
> On Oct 20, 2024, at 20:52, Prashant Saxena wrote: > > As per the documentation first I typed > "gradlew assemble" > then I typed > "gradlew check", so yes I have invoked it myself. The PyLucene instructions make no mention of gradle. The Makefile invokes it for you. Let it build Lucene for

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-20 Thread Prashant Saxena
As per the documentation first I typed "gradlew assemble" then I typed "gradlew check", so yes I have invoked it myself. On Mon, Oct 21, 2024 at 12:17 AM Andi Vajda wrote: > > > On Oct 20, 2024, at 20:17, Prashant Saxena > wrote: > > > > Again back to jdk-23 as PyLucene 10.0.0 requires Java 21

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-20 Thread Andi Vajda
> On Oct 20, 2024, at 20:17, Prashant Saxena wrote: > > Again back to jdk-23 as PyLucene 10.0.0 requires Java 21 or greater. > "gradlew check" is generating lucene jar files but process was terminated > in the middle because of this error: Is "gradlew check" invoked by the PyLucene build or b

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-20 Thread Prashant Saxena
Again back to jdk-23 as PyLucene 10.0.0 requires Java 21 or greater. "gradlew check" is generating lucene jar files but process was terminated in the middle because of this error: > Task :checkWorkingCopyClean WARNING: Directory is not a valid git checkout (won't check dirty files): D:\projects\d

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-20 Thread Andi Vajda
> On Oct 20, 2024, at 18:33, Prashant Saxena wrote: > > With jdk-17.0.12, all the lucene jars have been built successfully, however > I'm missing these > 4 files. Could you please tell me more about these files? These 4 files are > required to build > python extension as per the Makefile. Am I

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-20 Thread Prashant Saxena
With jdk-17.0.12, all the lucene jars have been built successfully, however I'm missing these 4 files. Could you please tell me more about these files? These 4 files are required to build python extension as per the Makefile. Am I right? antlr4-runtime-4.11.1.jar asm-7.2.jar asm-commons-7.2.jar hp

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-20 Thread Dawid Weiss
Use Java 17 for compilation. What you see is newer Java than gradle can handle. D. On Sun, Oct 20, 2024 at 7:25 AM Prashant Saxena wrote: > Hello, > OS : Windows 10 > PyLucene : 9.7.0 > JDK : 23.0 > > Although I can download the binary distribution of version 9.7.0, I have > decided to build it

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-20 Thread Andi Vajda
> On Oct 20, 2024, at 07:25, Prashant Saxena wrote: > > Hello, > OS : Windows 10 > PyLucene : 9.7.0 > JDK : 23.0 > > Although I can download the binary distribution of version 9.7.0, I have > decided to build it from scratch as > I am new to javascript javascript ? > and lucene. It will hel

lucene build failure on Windows using pylucene 9.7.0

2024-10-19 Thread Prashant Saxena
Hello, OS : Windows 10 PyLucene : 9.7.0 JDK : 23.0 Although I can download the binary distribution of version 9.7.0, I have decided to build it from scratch as I am new to javascript and lucene. It will help me learn. 1. downloading and extracting pylucene 2. cd lucene-java-9.7.0 3. gradlew.bat a