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..