You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by Sepand Ansari <se...@yahoo.com> on 2009/09/24 00:16:14 UTC

pylucene make problem Win XP and cygwin

Hi All,
I am trying to install pylucene using cygwin on Win XP.
After resolving problems I had with building JCC now I have both JCC
and Java Lucene built . After Lucene being build the make process
executes this scripts which causes error:

/cygdrive/c/Python26/python.exe
-m jcc --shared --jar lucene-java-2.4.1/build/lucene-core-2.4.1.jar
--jar [...]  --python lucene --mapping
org.apache.lucene.document.Document
'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping
java.util.Properties
'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence
org.apache.lucene.search.Hits 'length:()I'
'doc:(I)Lorg/apache/lucene/document/Document;' --version 2.4.1 --module
python/collections.py --files 2 --build

process_begin: CreateProcess((null), /cygdrive/c/Python26/python.exe -m jcc [...] --build, ...) failed.
make (e=3D3): The system cannot find the path specified.
c:\mingw\bin\mingw32-make.exe: ***
 [compile] Error 3

(I can not include the whole script because it will be filtered by spam protector)

which I assume is generated by=20
compile: jars
 $(GENERATE) --build $(DEBUG_OPT)
in makefile.

I checked most of the Jar and Python paths and they are correct. I don't kn=
ow where does that 'make (e=3D3): The system cannot find the path specified=
.' error is coming from to check other paths. I mostly use Java for program=
ming and this is my fist major Python project so I may not know some python=
 concepts.
Thanks,
Sepand


      

Re: pylucene make problem Win XP and cygwin

Posted by Andi Vajda <va...@apache.org>.
On Thu, 24 Sep 2009, Sepand Ansari wrote:

> I set up the latest version of setuptools and rebuild JCC. Now the dll files are generated. I added jvm.dll to PATH and it worked! :D:D
> here is my make settings:
> PREFIX_PYTHON=/cygdrive/c/Python26
> ANT=ant
> #o:\\Java\\jdk1.6.0_02 /cygdrive/o/java/apache-ant-1.7.0/bin/ant
> PYTHON=$(PREFIX_PYTHON)/python.exe
> JCC=$(PYTHON) -m jcc.__main__ --shared
>
> Thanks a lot.

You're welcome !

Andi..

> Sepand
>
> --- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:
>
> From: Andi Vajda <va...@apache.org>
> Subject: Re: pylucene make problem Win XP and cygwin
> To: pylucene-dev@lucene.apache.org
> Date: Wednesday, September 23, 2009, 8:57 PM
>
>
> On Wed, 23 Sep 2009, Andi Vajda wrote:
>
>>
>> On Wed, 23 Sep 2009, Sepand Ansari wrote:
>>
>>> yes, I have only:
>>> 2895 Sep 23 17:27 JCC-2.3-py2.6.egg-info
>>
>> Are you using setuptools or distutils ?
>
> To find out if you have setuptools (and what version):
>
>   $ python -c "from pkg_resources import require; print require('setuptools')[0]"
>
> What does this return for you ?
>
> Andi..
>
>>
>> If you don't have setuptools, don't use --shared (and then there is no jcc.dll)
>> JCC's setup.py won't build a jcc.dll if setuptools is not found.
>>
>> If you still have a 'DLL not found' error, the next ones to ensure are on your path are the ones for Java, such as jvm.dll and so on and python.dll (or whatever its name is).
>>
>> Andi..
>>
>

Re: pylucene make problem Win XP and cygwin

Posted by Sepand Ansari <se...@yahoo.com>.
I set up the latest version of setuptools and rebuild JCC. Now the dll files are generated. I added jvm.dll to PATH and it worked! :D:D
here is my make settings:
PREFIX_PYTHON=/cygdrive/c/Python26
ANT=ant
#o:\\Java\\jdk1.6.0_02 /cygdrive/o/java/apache-ant-1.7.0/bin/ant
PYTHON=$(PREFIX_PYTHON)/python.exe
JCC=$(PYTHON) -m jcc.__main__ --shared

Thanks a lot.
Sepand

--- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:

From: Andi Vajda <va...@apache.org>
Subject: Re: pylucene make problem Win XP and cygwin
To: pylucene-dev@lucene.apache.org
Date: Wednesday, September 23, 2009, 8:57 PM


On Wed, 23 Sep 2009, Andi Vajda wrote:

> 
> On Wed, 23 Sep 2009, Sepand Ansari wrote:
> 
>> yes, I have only:
>> 2895 Sep 23 17:27 JCC-2.3-py2.6.egg-info
> 
> Are you using setuptools or distutils ?

To find out if you have setuptools (and what version):

  $ python -c "from pkg_resources import require; print require('setuptools')[0]"

What does this return for you ?

Andi..

> 
> If you don't have setuptools, don't use --shared (and then there is no jcc.dll)
> JCC's setup.py won't build a jcc.dll if setuptools is not found.
> 
> If you still have a 'DLL not found' error, the next ones to ensure are on your path are the ones for Java, such as jvm.dll and so on and python.dll (or whatever its name is).
> 
> Andi..
> 



      

Re: pylucene make problem Win XP and cygwin

Posted by Andi Vajda <va...@apache.org>.
On Wed, 23 Sep 2009, Andi Vajda wrote:

>
> On Wed, 23 Sep 2009, Sepand Ansari wrote:
>
>> yes, I have only:
>> 2895 Sep 23 17:27 JCC-2.3-py2.6.egg-info
>
> Are you using setuptools or distutils ?

To find out if you have setuptools (and what version):

   $ python -c "from pkg_resources import require; print require('setuptools')[0]"

What does this return for you ?

Andi..

>
> If you don't have setuptools, don't use --shared (and then there is no 
> jcc.dll)
> JCC's setup.py won't build a jcc.dll if setuptools is not found.
>
> If you still have a 'DLL not found' error, the next ones to ensure are on 
> your path are the ones for Java, such as jvm.dll and so on and python.dll (or 
> whatever its name is).
>
> Andi..
>

Re: pylucene make problem Win XP and cygwin

Posted by Andi Vajda <va...@apache.org>.
On Wed, 23 Sep 2009, Sepand Ansari wrote:

> yes, I have only:
> 2895 Sep 23 17:27 JCC-2.3-py2.6.egg-info

Are you using setuptools or distutils ?

If you don't have setuptools, don't use --shared (and then there is no 
jcc.dll)
JCC's setup.py won't build a jcc.dll if setuptools is not found.

If you still have a 'DLL not found' error, the next ones to ensure are on 
your path are the ones for Java, such as jvm.dll and so on and python.dll 
(or whatever its name is).

Andi..

Re: pylucene make problem Win XP and cygwin

Posted by Sepand Ansari <se...@yahoo.com>.
yes, I have only:
2895 Sep 23 17:27 JCC-2.3-py2.6.egg-info
 121 Oct 28  2005 README.txt
   0 Sep 23 17:47 buildlib.win32-2.6jcc
   0 Sep 23 17:27 jcc
in the site-packages directory. 

--- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:

From: Andi Vajda <va...@apache.org>
Subject: Re: pylucene make problem Win XP and cygwin
To: pylucene-dev@lucene.apache.org
Date: Wednesday, September 23, 2009, 8:34 PM


On Wed, 23 Sep 2009, Sepand Ansari wrote:

> I can not find any dll file in pylucene and jcc directores. Does that mean
> the JCC build had been failed?

Did you look inside the jcc egg directory ?
Something like: c:\Python26\Lib\site-packages\JCC-2.3-py2.6.egg

Andi..

> 
> --- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:
>
>       From: Andi Vajda <va...@apache.org>
>       Subject: Re: pylucene make problem Win XP and cygwin
>       To: pylucene-dev@lucene.apache.org
>       Date: Wednesday, September 23, 2009, 8:23 PM
> 
>
>       On Wed, 23 Sep 2009, Sepand Ansari wrote:
>
>       > Andi,
>       > Actually I tried that too. I got:
>       > c:\Python26\python.exe: DLL load failed: The specified module
>       could not be found.
>       > and
>
>       That's probably because you don't have the directory containing
>       jcc.dll on
>       your PATH. That DLL is inside the jcc egg you built.
>
>       Andi..
>
>       > c:\Python31\python.exe: No module named jcc
>       > with Python 3.1
>       > I rebuild new copy of JCC 2.3 and installed it to make sure
>       JCC is built correctly. I didn't get any error so I think JCC is
>       fine.
>       > This is consule output after JCC installation:
>       > $ /cygdrive/c/Python26/python.exe setup.py install
>       > running install
>       > running build
>       > running build_py
>       > copying jcc\config.py -> build\lib.win32-2.6\jcc
>       > running build_ext
>       > running install_lib
>       > copying build\lib.win32-2.6\jcc\config.py ->
>       c:\Python26\Lib\site-packages\jcc
>       > copying build\lib.win32-2.6\jcc\_jcc.pyd ->
>       c:\Python26\Lib\site-packages\jcc
>       > byte-compiling c:\Python26\Lib\site-packages\jcc\config.py to
>       config.pyc
>       > running install_egg_info
>       > Removing c:\Python26\Lib\site-packages\JCC-2.3-py2.6.egg-info
>       > Writing c:\Python26\Lib\site-packages\JCC-2.3-py2.6.egg-info
>       >
>       > Thanks.
>       >
>       > --- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:
>       >
>       > From: Andi Vajda <va...@apache.org>
>       > Subject: Re: pylucene make problem Win XP and cygwin
>       > To: pylucene-dev@lucene.apache.org
>       > Date: Wednesday, September 23, 2009, 8:08 PM
>       >
>       >
>       > On Wed, 23 Sep 2009, Sepand Ansari wrote:
>       >
>       >> You were right. Using cygwin make solved the problem, Thanks.
>       but now I am getting another error:
>       >> c:\Python26\python.exe: jcc is a package and cannot be
>       directly executed
>       >> when I use python 2.6 and
>       >
>       >> c:\Python31\python.exe: No module named jcc
>       >> when using Python 3.1
>       >
>       > Python 3.x is not (yet) supported with JCC.
>       >
>       >> I also edited makefile to resolve Python 2.6 problem:
>       >> JCC=$(PYTHON) jcc.__main__ --shared
>       >> but I am getting :
>       >> c:\Python26\python.exe: can't open file 'jcc.__main__':
>       [Errno 2] No such file or directory
>       >
>       > That's because you still need to use -m.
>       >
>       >   $ python -m jcc.__main__ ...
>       >
>       > Andi..
>       >
>       >>
>       >> Thanks again
>       >> Sepand
>       >>
>       >>
>       >>
>       >>
>       >>
>       >> --- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:
>       >>
>       >> From: Andi Vajda <va...@apache.org>
>       >> Subject: Re: pylucene make problem Win XP and cygwin
>       >> To: pylucene-dev@lucene.apache.org
>       >> Date: Wednesday, September 23, 2009, 7:27 PM
>       >>
>       >>
>       >> On Wed, 23 Sep 2009, Sepand Ansari wrote:
>       >>
>       >>> Hi All,
>       >>> I am trying to install pylucene using cygwin on Win XP.
>       >>> After resolving problems I had with building JCC now I have
>       both JCC
>       >>> and Java Lucene built . After Lucene being build the make
>       process
>       >>> executes this scripts which causes error:
>       >>>
>       >>> /cygdrive/c/Python26/python.exe
>       >>> -m jcc --shared --jar
>       lucene-java-2.4.1/build/lucene-core-2.4.1.jar
>       >>> --jar [...]  --python lucene --mapping
>       >>> org.apache.lucene.document.Document
>       >>> 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping
>       >>> java.util.Properties
>       >>> 'getProperty:(Ljava/lang/String;)Ljava/lang/String;'
>       --sequence
>       >>> org.apache.lucene.search.Hits 'length:()I'
>       >>> 'doc:(I)Lorg/apache/lucene/document/Document;' --version
>       2.4.1 --module
>       >>> python/collections.py --files 2 --build
>       >>>
>       >>> process_begin: CreateProcess((null),
>       /cygdrive/c/Python26/python.exe -m jcc [...] --build, ...)
>       failed.
>       >>> make (e=3D3): The system cannot find the path specified.
>       >>> c:\mingw\bin\mingw32-make.exe: ***
>       >>> [compile] Error 3
>       >>
>       >> It looks like you're using MinGW make inside Cygwin, right ?
>       >> Does it support Cygwin style paths ?
>       >> If not, use Cygwin's 'make' instead.
>       >>
>       >> Andi..
> 
> 
> 
>


      

Re: pylucene make problem Win XP and cygwin

Posted by Andi Vajda <va...@apache.org>.
On Wed, 23 Sep 2009, Sepand Ansari wrote:

> I can not find any dll file in pylucene and jcc directores. Does that mean
> the JCC build had been failed?

Did you look inside the jcc egg directory ?
Something like: c:\Python26\Lib\site-packages\JCC-2.3-py2.6.egg

Andi..

> 
> --- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:
>
>       From: Andi Vajda <va...@apache.org>
>       Subject: Re: pylucene make problem Win XP and cygwin
>       To: pylucene-dev@lucene.apache.org
>       Date: Wednesday, September 23, 2009, 8:23 PM
> 
>
>       On Wed, 23 Sep 2009, Sepand Ansari wrote:
>
>       > Andi,
>       > Actually I tried that too. I got:
>       > c:\Python26\python.exe: DLL load failed: The specified module
>       could not be found.
>       > and
>
>       That's probably because you don't have the directory containing
>       jcc.dll on
>       your PATH. That DLL is inside the jcc egg you built.
>
>       Andi..
>
>       > c:\Python31\python.exe: No module named jcc
>       > with Python 3.1
>       > I rebuild new copy of JCC 2.3 and installed it to make sure
>       JCC is built correctly. I didn't get any error so I think JCC is
>       fine.
>       > This is consule output after JCC installation:
>       > $ /cygdrive/c/Python26/python.exe setup.py install
>       > running install
>       > running build
>       > running build_py
>       > copying jcc\config.py -> build\lib.win32-2.6\jcc
>       > running build_ext
>       > running install_lib
>       > copying build\lib.win32-2.6\jcc\config.py ->
>       c:\Python26\Lib\site-packages\jcc
>       > copying build\lib.win32-2.6\jcc\_jcc.pyd ->
>       c:\Python26\Lib\site-packages\jcc
>       > byte-compiling c:\Python26\Lib\site-packages\jcc\config.py to
>       config.pyc
>       > running install_egg_info
>       > Removing c:\Python26\Lib\site-packages\JCC-2.3-py2.6.egg-info
>       > Writing c:\Python26\Lib\site-packages\JCC-2.3-py2.6.egg-info
>       >
>       > Thanks.
>       >
>       > --- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:
>       >
>       > From: Andi Vajda <va...@apache.org>
>       > Subject: Re: pylucene make problem Win XP and cygwin
>       > To: pylucene-dev@lucene.apache.org
>       > Date: Wednesday, September 23, 2009, 8:08 PM
>       >
>       >
>       > On Wed, 23 Sep 2009, Sepand Ansari wrote:
>       >
>       >> You were right. Using cygwin make solved the problem, Thanks.
>       but now I am getting another error:
>       >> c:\Python26\python.exe: jcc is a package and cannot be
>       directly executed
>       >> when I use python 2.6 and
>       >
>       >> c:\Python31\python.exe: No module named jcc
>       >> when using Python 3.1
>       >
>       > Python 3.x is not (yet) supported with JCC.
>       >
>       >> I also edited makefile to resolve Python 2.6 problem:
>       >> JCC=$(PYTHON) jcc.__main__ --shared
>       >> but I am getting :
>       >> c:\Python26\python.exe: can't open file 'jcc.__main__':
>       [Errno 2] No such file or directory
>       >
>       > That's because you still need to use -m.
>       >
>       >   $ python -m jcc.__main__ ...
>       >
>       > Andi..
>       >
>       >>
>       >> Thanks again
>       >> Sepand
>       >>
>       >>
>       >>
>       >>
>       >>
>       >> --- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:
>       >>
>       >> From: Andi Vajda <va...@apache.org>
>       >> Subject: Re: pylucene make problem Win XP and cygwin
>       >> To: pylucene-dev@lucene.apache.org
>       >> Date: Wednesday, September 23, 2009, 7:27 PM
>       >>
>       >>
>       >> On Wed, 23 Sep 2009, Sepand Ansari wrote:
>       >>
>       >>> Hi All,
>       >>> I am trying to install pylucene using cygwin on Win XP.
>       >>> After resolving problems I had with building JCC now I have
>       both JCC
>       >>> and Java Lucene built . After Lucene being build the make
>       process
>       >>> executes this scripts which causes error:
>       >>>
>       >>> /cygdrive/c/Python26/python.exe
>       >>> -m jcc --shared --jar
>       lucene-java-2.4.1/build/lucene-core-2.4.1.jar
>       >>> --jar [...]  --python lucene --mapping
>       >>> org.apache.lucene.document.Document
>       >>> 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping
>       >>> java.util.Properties
>       >>> 'getProperty:(Ljava/lang/String;)Ljava/lang/String;'
>       --sequence
>       >>> org.apache.lucene.search.Hits 'length:()I'
>       >>> 'doc:(I)Lorg/apache/lucene/document/Document;' --version
>       2.4.1 --module
>       >>> python/collections.py --files 2 --build
>       >>>
>       >>> process_begin: CreateProcess((null),
>       /cygdrive/c/Python26/python.exe -m jcc [...] --build, ...)
>       failed.
>       >>> make (e=3D3): The system cannot find the path specified.
>       >>> c:\mingw\bin\mingw32-make.exe: ***
>       >>> [compile] Error 3
>       >>
>       >> It looks like you're using MinGW make inside Cygwin, right ?
>       >> Does it support Cygwin style paths ?
>       >> If not, use Cygwin's 'make' instead.
>       >>
>       >> Andi..
> 
> 
> 
>

Re: pylucene make problem Win XP and cygwin

Posted by Sepand Ansari <se...@yahoo.com>.
I can not find any dll file in pylucene and jcc directores. Does that mean the JCC build had been failed?

--- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:

From: Andi Vajda <va...@apache.org>
Subject: Re: pylucene make problem Win XP and cygwin
To: pylucene-dev@lucene.apache.org
Date: Wednesday, September 23, 2009, 8:23 PM


On Wed, 23 Sep 2009, Sepand Ansari wrote:

> Andi,
> Actually I tried that too. I got:
> c:\Python26\python.exe: DLL load failed: The specified module could not be found.
> and

That's probably because you don't have the directory containing jcc.dll on 
your PATH. That DLL is inside the jcc egg you built.

Andi..

> c:\Python31\python.exe: No module named jcc
> with Python 3.1
> I rebuild new copy of JCC 2.3 and installed it to make sure JCC is built correctly. I didn't get any error so I think JCC is fine.
> This is consule output after JCC installation:
> $ /cygdrive/c/Python26/python.exe setup.py install
> running install
> running build
> running build_py
> copying jcc\config.py -> build\lib.win32-2.6\jcc
> running build_ext
> running install_lib
> copying build\lib.win32-2.6\jcc\config.py -> c:\Python26\Lib\site-packages\jcc
> copying build\lib.win32-2.6\jcc\_jcc.pyd -> c:\Python26\Lib\site-packages\jcc
> byte-compiling c:\Python26\Lib\site-packages\jcc\config.py to config.pyc
> running install_egg_info
> Removing c:\Python26\Lib\site-packages\JCC-2.3-py2.6.egg-info
> Writing c:\Python26\Lib\site-packages\JCC-2.3-py2.6.egg-info
>
> Thanks.
>
> --- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:
>
> From: Andi Vajda <va...@apache.org>
> Subject: Re: pylucene make problem Win XP and cygwin
> To: pylucene-dev@lucene.apache.org
> Date: Wednesday, September 23, 2009, 8:08 PM
>
>
> On Wed, 23 Sep 2009, Sepand Ansari wrote:
>
>> You were right. Using cygwin make solved the problem, Thanks. but now I am getting another error:
>> c:\Python26\python.exe: jcc is a package and cannot be directly executed
>> when I use python 2.6 and
>
>> c:\Python31\python.exe: No module named jcc
>> when using Python 3.1
>
> Python 3.x is not (yet) supported with JCC.
>
>> I also edited makefile to resolve Python 2.6 problem:
>> JCC=$(PYTHON) jcc.__main__ --shared
>> but I am getting :
>> c:\Python26\python.exe: can't open file 'jcc.__main__': [Errno 2] No such file or directory
>
> That's because you still need to use -m.
>
>   $ python -m jcc.__main__ ...
>
> Andi..
>
>>
>> Thanks again
>> Sepand
>>
>>
>>
>>
>>
>> --- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:
>>
>> From: Andi Vajda <va...@apache.org>
>> Subject: Re: pylucene make problem Win XP and cygwin
>> To: pylucene-dev@lucene.apache.org
>> Date: Wednesday, September 23, 2009, 7:27 PM
>>
>>
>> On Wed, 23 Sep 2009, Sepand Ansari wrote:
>>
>>> Hi All,
>>> I am trying to install pylucene using cygwin on Win XP.
>>> After resolving problems I had with building JCC now I have both JCC
>>> and Java Lucene built . After Lucene being build the make process
>>> executes this scripts which causes error:
>>>
>>> /cygdrive/c/Python26/python.exe
>>> -m jcc --shared --jar lucene-java-2.4.1/build/lucene-core-2.4.1.jar
>>> --jar [...]  --python lucene --mapping
>>> org.apache.lucene.document.Document
>>> 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping
>>> java.util.Properties
>>> 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence
>>> org.apache.lucene.search.Hits 'length:()I'
>>> 'doc:(I)Lorg/apache/lucene/document/Document;' --version 2.4.1 --module
>>> python/collections.py --files 2 --build
>>>
>>> process_begin: CreateProcess((null), /cygdrive/c/Python26/python.exe -m jcc [...] --build, ...) failed.
>>> make (e=3D3): The system cannot find the path specified.
>>> c:\mingw\bin\mingw32-make.exe: ***
>>> [compile] Error 3
>>
>> It looks like you're using MinGW make inside Cygwin, right ?
>> Does it support Cygwin style paths ?
>> If not, use Cygwin's 'make' instead.
>>
>> Andi..


      

Re: pylucene make problem Win XP and cygwin

Posted by Andi Vajda <va...@apache.org>.
On Wed, 23 Sep 2009, Sepand Ansari wrote:

> Andi,
> Actually I tried that too. I got:
> c:\Python26\python.exe: DLL load failed: The specified module could not be found.
> and

That's probably because you don't have the directory containing jcc.dll on 
your PATH. That DLL is inside the jcc egg you built.

Andi..

> c:\Python31\python.exe: No module named jcc
> with Python 3.1
> I rebuild new copy of JCC 2.3 and installed it to make sure JCC is built correctly. I didn't get any error so I think JCC is fine.
> This is consule output after JCC installation:
> $ /cygdrive/c/Python26/python.exe setup.py install
> running install
> running build
> running build_py
> copying jcc\config.py -> build\lib.win32-2.6\jcc
> running build_ext
> running install_lib
> copying build\lib.win32-2.6\jcc\config.py -> c:\Python26\Lib\site-packages\jcc
> copying build\lib.win32-2.6\jcc\_jcc.pyd -> c:\Python26\Lib\site-packages\jcc
> byte-compiling c:\Python26\Lib\site-packages\jcc\config.py to config.pyc
> running install_egg_info
> Removing c:\Python26\Lib\site-packages\JCC-2.3-py2.6.egg-info
> Writing c:\Python26\Lib\site-packages\JCC-2.3-py2.6.egg-info
>
> Thanks.
>
> --- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:
>
> From: Andi Vajda <va...@apache.org>
> Subject: Re: pylucene make problem Win XP and cygwin
> To: pylucene-dev@lucene.apache.org
> Date: Wednesday, September 23, 2009, 8:08 PM
>
>
> On Wed, 23 Sep 2009, Sepand Ansari wrote:
>
>> You were right. Using cygwin make solved the problem, Thanks. but now I am getting another error:
>> c:\Python26\python.exe: jcc is a package and cannot be directly executed
>> when I use python 2.6 and
>
>> c:\Python31\python.exe: No module named jcc
>> when using Python 3.1
>
> Python 3.x is not (yet) supported with JCC.
>
>> I also edited makefile to resolve Python 2.6 problem:
>> JCC=$(PYTHON) jcc.__main__ --shared
>> but I am getting :
>> c:\Python26\python.exe: can't open file 'jcc.__main__': [Errno 2] No such file or directory
>
> That's because you still need to use -m.
>
>   $ python -m jcc.__main__ ...
>
> Andi..
>
>>
>> Thanks again
>> Sepand
>>
>>
>>
>>
>>
>> --- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:
>>
>> From: Andi Vajda <va...@apache.org>
>> Subject: Re: pylucene make problem Win XP and cygwin
>> To: pylucene-dev@lucene.apache.org
>> Date: Wednesday, September 23, 2009, 7:27 PM
>>
>>
>> On Wed, 23 Sep 2009, Sepand Ansari wrote:
>>
>>> Hi All,
>>> I am trying to install pylucene using cygwin on Win XP.
>>> After resolving problems I had with building JCC now I have both JCC
>>> and Java Lucene built . After Lucene being build the make process
>>> executes this scripts which causes error:
>>>
>>> /cygdrive/c/Python26/python.exe
>>> -m jcc --shared --jar lucene-java-2.4.1/build/lucene-core-2.4.1.jar
>>> --jar [...]  --python lucene --mapping
>>> org.apache.lucene.document.Document
>>> 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping
>>> java.util.Properties
>>> 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence
>>> org.apache.lucene.search.Hits 'length:()I'
>>> 'doc:(I)Lorg/apache/lucene/document/Document;' --version 2.4.1 --module
>>> python/collections.py --files 2 --build
>>>
>>> process_begin: CreateProcess((null), /cygdrive/c/Python26/python.exe -m jcc [...] --build, ...) failed.
>>> make (e=3D3): The system cannot find the path specified.
>>> c:\mingw\bin\mingw32-make.exe: ***
>>> [compile] Error 3
>>
>> It looks like you're using MinGW make inside Cygwin, right ?
>> Does it support Cygwin style paths ?
>> If not, use Cygwin's 'make' instead.
>>
>> Andi..

Re: pylucene make problem Win XP and cygwin

Posted by Sepand Ansari <se...@yahoo.com>.
Andi,
Actually I tried that too. I got:
c:\Python26\python.exe: DLL load failed: The specified module could not be found.
and 
c:\Python31\python.exe: No module named jcc
with Python 3.1
I rebuild new copy of JCC 2.3 and installed it to make sure JCC is built correctly. I didn't get any error so I think JCC is fine.
This is consule output after JCC installation:
$ /cygdrive/c/Python26/python.exe setup.py install
running install
running build
running build_py
copying jcc\config.py -> build\lib.win32-2.6\jcc
running build_ext
running install_lib
copying build\lib.win32-2.6\jcc\config.py -> c:\Python26\Lib\site-packages\jcc
copying build\lib.win32-2.6\jcc\_jcc.pyd -> c:\Python26\Lib\site-packages\jcc
byte-compiling c:\Python26\Lib\site-packages\jcc\config.py to config.pyc
running install_egg_info
Removing c:\Python26\Lib\site-packages\JCC-2.3-py2.6.egg-info
Writing c:\Python26\Lib\site-packages\JCC-2.3-py2.6.egg-info

Thanks.

--- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:

From: Andi Vajda <va...@apache.org>
Subject: Re: pylucene make problem Win XP and cygwin
To: pylucene-dev@lucene.apache.org
Date: Wednesday, September 23, 2009, 8:08 PM


On Wed, 23 Sep 2009, Sepand Ansari wrote:

> You were right. Using cygwin make solved the problem, Thanks. but now I am getting another error:
> c:\Python26\python.exe: jcc is a package and cannot be directly executed
> when I use python 2.6 and

> c:\Python31\python.exe: No module named jcc
> when using Python 3.1

Python 3.x is not (yet) supported with JCC.

> I also edited makefile to resolve Python 2.6 problem:
> JCC=$(PYTHON) jcc.__main__ --shared
> but I am getting :
> c:\Python26\python.exe: can't open file 'jcc.__main__': [Errno 2] No such file or directory

That's because you still need to use -m.

  $ python -m jcc.__main__ ...

Andi..

>
> Thanks again
> Sepand
>
>
>
>
>
> --- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:
>
> From: Andi Vajda <va...@apache.org>
> Subject: Re: pylucene make problem Win XP and cygwin
> To: pylucene-dev@lucene.apache.org
> Date: Wednesday, September 23, 2009, 7:27 PM
>
>
> On Wed, 23 Sep 2009, Sepand Ansari wrote:
>
>> Hi All,
>> I am trying to install pylucene using cygwin on Win XP.
>> After resolving problems I had with building JCC now I have both JCC
>> and Java Lucene built . After Lucene being build the make process
>> executes this scripts which causes error:
>>
>> /cygdrive/c/Python26/python.exe
>> -m jcc --shared --jar lucene-java-2.4.1/build/lucene-core-2.4.1.jar
>> --jar [...]  --python lucene --mapping
>> org.apache.lucene.document.Document
>> 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping
>> java.util.Properties
>> 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence
>> org.apache.lucene.search.Hits 'length:()I'
>> 'doc:(I)Lorg/apache/lucene/document/Document;' --version 2.4.1 --module
>> python/collections.py --files 2 --build
>>
>> process_begin: CreateProcess((null), /cygdrive/c/Python26/python.exe -m jcc [...] --build, ...) failed.
>> make (e=3D3): The system cannot find the path specified.
>> c:\mingw\bin\mingw32-make.exe: ***
>> [compile] Error 3
>
> It looks like you're using MinGW make inside Cygwin, right ?
> Does it support Cygwin style paths ?
> If not, use Cygwin's 'make' instead.
>
> Andi..


      

Re: pylucene make problem Win XP and cygwin

Posted by Andi Vajda <va...@apache.org>.
On Wed, 23 Sep 2009, Sepand Ansari wrote:

> You were right. Using cygwin make solved the problem, Thanks. but now I am getting another error:
> c:\Python26\python.exe: jcc is a package and cannot be directly executed
> when I use python 2.6 and

> c:\Python31\python.exe: No module named jcc
> when using Python 3.1

Python 3.x is not (yet) supported with JCC.

> I also edited makefile to resolve Python 2.6 problem:
> JCC=$(PYTHON) jcc.__main__ --shared
> but I am getting :
> c:\Python26\python.exe: can't open file 'jcc.__main__': [Errno 2] No such file or directory

That's because you still need to use -m.

  $ python -m jcc.__main__ ...

Andi..

>
> Thanks again
> Sepand
>
>
>
>
>
> --- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:
>
> From: Andi Vajda <va...@apache.org>
> Subject: Re: pylucene make problem Win XP and cygwin
> To: pylucene-dev@lucene.apache.org
> Date: Wednesday, September 23, 2009, 7:27 PM
>
>
> On Wed, 23 Sep 2009, Sepand Ansari wrote:
>
>> Hi All,
>> I am trying to install pylucene using cygwin on Win XP.
>> After resolving problems I had with building JCC now I have both JCC
>> and Java Lucene built . After Lucene being build the make process
>> executes this scripts which causes error:
>>
>> /cygdrive/c/Python26/python.exe
>> -m jcc --shared --jar lucene-java-2.4.1/build/lucene-core-2.4.1.jar
>> --jar [...]  --python lucene --mapping
>> org.apache.lucene.document.Document
>> 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping
>> java.util.Properties
>> 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence
>> org.apache.lucene.search.Hits 'length:()I'
>> 'doc:(I)Lorg/apache/lucene/document/Document;' --version 2.4.1 --module
>> python/collections.py --files 2 --build
>>
>> process_begin: CreateProcess((null), /cygdrive/c/Python26/python.exe -m jcc [...] --build, ...) failed.
>> make (e=3D3): The system cannot find the path specified.
>> c:\mingw\bin\mingw32-make.exe: ***
>> [compile] Error 3
>
> It looks like you're using MinGW make inside Cygwin, right ?
> Does it support Cygwin style paths ?
> If not, use Cygwin's 'make' instead.
>
> Andi..

Re: pylucene make problem Win XP and cygwin

Posted by Sepand Ansari <se...@yahoo.com>.
You were right. Using cygwin make solved the problem, Thanks. but now I am getting another error:
c:\Python26\python.exe: jcc is a package and cannot be directly executed
when I use python 2.6 and 
c:\Python31\python.exe: No module named jcc
when using Python 3.1
I also edited makefile to resolve Python 2.6 problem:
JCC=$(PYTHON) jcc.__main__ --shared
but I am getting :
c:\Python26\python.exe: can't open file 'jcc.__main__': [Errno 2] No such file or directory

Thanks again
Sepand





--- On Wed, 9/23/09, Andi Vajda <va...@apache.org> wrote:

From: Andi Vajda <va...@apache.org>
Subject: Re: pylucene make problem Win XP and cygwin
To: pylucene-dev@lucene.apache.org
Date: Wednesday, September 23, 2009, 7:27 PM


On Wed, 23 Sep 2009, Sepand Ansari wrote:

> Hi All,
> I am trying to install pylucene using cygwin on Win XP.
> After resolving problems I had with building JCC now I have both JCC
> and Java Lucene built . After Lucene being build the make process
> executes this scripts which causes error:
>
> /cygdrive/c/Python26/python.exe
> -m jcc --shared --jar lucene-java-2.4.1/build/lucene-core-2.4.1.jar
> --jar [...]  --python lucene --mapping
> org.apache.lucene.document.Document
> 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping
> java.util.Properties
> 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence
> org.apache.lucene.search.Hits 'length:()I'
> 'doc:(I)Lorg/apache/lucene/document/Document;' --version 2.4.1 --module
> python/collections.py --files 2 --build
>
> process_begin: CreateProcess((null), /cygdrive/c/Python26/python.exe -m jcc [...] --build, ...) failed.
> make (e=3D3): The system cannot find the path specified.
> c:\mingw\bin\mingw32-make.exe: ***
> [compile] Error 3

It looks like you're using MinGW make inside Cygwin, right ?
Does it support Cygwin style paths ?
If not, use Cygwin's 'make' instead.

Andi..


      

Re: pylucene make problem Win XP and cygwin

Posted by Andi Vajda <va...@apache.org>.
On Wed, 23 Sep 2009, Sepand Ansari wrote:

> Hi All,
> I am trying to install pylucene using cygwin on Win XP.
> After resolving problems I had with building JCC now I have both JCC
> and Java Lucene built . After Lucene being build the make process
> executes this scripts which causes error:
>
> /cygdrive/c/Python26/python.exe
> -m jcc --shared --jar lucene-java-2.4.1/build/lucene-core-2.4.1.jar
> --jar [...]  --python lucene --mapping
> org.apache.lucene.document.Document
> 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping
> java.util.Properties
> 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence
> org.apache.lucene.search.Hits 'length:()I'
> 'doc:(I)Lorg/apache/lucene/document/Document;' --version 2.4.1 --module
> python/collections.py --files 2 --build
>
> process_begin: CreateProcess((null), /cygdrive/c/Python26/python.exe -m jcc [...] --build, ...) failed.
> make (e=3D3): The system cannot find the path specified.
> c:\mingw\bin\mingw32-make.exe: ***
> [compile] Error 3

It looks like you're using MinGW make inside Cygwin, right ?
Does it support Cygwin style paths ?
If not, use Cygwin's 'make' instead.

Andi..