I got that error message when I commented the line NUM_FILES=2. However, if I don't comment, I get the error "python.exe encountered a problem". output of the console is given below.
I've tried re-installing the lucene couple of times, each time I end up at the same stage. $ make /cygdrive/c/Python26//python.exe -m jcc.__main__ --shared --jar lucene-java-2.4. 1/build/lucene-core-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/snowball/luc ene-snowball-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/highlighter/lucene- highlighter-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/analyzers/lucene-ana lyzers-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/regex/lucene-regex-2.4.1. jar --jar lucene-java-2.4.1/build/contrib/queries/lucene-queries-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/instantiated/lucene-instantiated-2.4.1.jar --ja r build/jar/extensions.jar --package java.lang java.lang.System java.lang.Runtim e --package java.util java.util.Arrays java.text.SimpleDateFormat --package java .io java.io.StringReader java.io.InputStreamReader java.io.FileInputStream --exc lude org.apache.lucene.queryParser.Token --exclude org.apache.lucene.queryParser .TokenMgrError --exclude org.apache.lucene.queryParser.QueryParserTokenManager - -exclude org.apache.lucene.queryParser.ParseException --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/Stri ng;' --sequence org.apache.lucene.search.Hits 'length:()I' 'doc:(I)Lorg/apache/l ucene/document/Document;' --rename org.apache.lucene.search.highlight.SpanScorer =HighlighterSpanScorer --version 2.4.1 --module python/collections.py --files 2 --build make: *** [compile] Error 5 -Regards, Abhinav On Thu, Oct 1, 2009 at 10:03 AM, Andi Vajda <va...@apache.org> wrote: > > On Thu, 1 Oct 2009, abhinav mishra wrote: > > Hi All, >> >> Till now, I've managed to install JCC(hopefully). >> I'm trying to install it on windows. >> Output of running(through DOS) python setup.py build is given below: >> > > It's kind of hard to tell what's wrong since the output you're sending is > truncated. > > Two problems I see: > - some files are locked by another process and can't be removed as if you > had a build going while trying to remove its files > - the 'wrapperFiles' error comes from having the argument sequence > --files --build > on the jcc invocation command line, missing the required number > of --files you want, for example --files 2 > > Andi.. > > > >> >> C:\Python26\Lib\site-packages\pylucene-2.4.1-2\jcc>python setup.py build >> running build >> running build_py >> running build_ext >> >> >> >> >> For python setup.py install, it is >> >> copying JCC.egg-info\not-zip-safe -> build\bdist.win32\egg\EGG-INFO >> copying JCC.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO >> writing build\bdist.win32\egg\EGG-INFO\native_libs.txt >> creating 'dist\JCC-2.3-py2.6-win32.egg' and adding 'build\bdist.win32\egg' >> to i >> >> removing 'build\bdist.win32\egg' (and everything under it) >> Processing JCC-2.3-py2.6-win32.egg >> removing 'c:\python26\lib\site-packages\JCC-2.3-py2.6-win32.egg' (and >> everythin >> under it) >> error removing c:\python26\lib\site-packages\JCC-2.3-py2.6-win32.egg: >> c:\python >> 6\lib\site-packages\JCC-2.3-py2.6-win32.egg\jcc\.cpp.py.swp: The process >> cannot >> access the file because it is being used by another process >> error removing c:\python26\lib\site-packages\JCC-2.3-py2.6-win32.egg: >> c:\python >> 6\lib\site-packages\JCC-2.3-py2.6-win32.egg\jcc: The process cannot access >> the >> ile because it is being used by another process >> error removing c:\python26\lib\site-packages\JCC-2.3-py2.6-win32.egg: >> c:\python >> 6\lib\site-packages\JCC-2.3-py2.6-win32.egg: The directory is not empty >> Extracting JCC-2.3-py2.6-win32.egg to c:\python26\lib\site-packages >> JCC 2.3 is already the active version in easy-install.pth >> >> Installed c:\python26\lib\site-packages\jcc-2.3-py2.6-win32.egg >> Processing dependencies for JCC==2.3 >> Finished processing dependencies for JCC==2.3 >> >> >> I can certainly see the egg file and the jcc.dll file in the egg. >> Now when I try to run make through cygwin, it throws an error >> >> >> ude org.apache.lucene.queryParser.Token --exclude >> org.apache.lucene.queryParse >> TokenMgrError --exclude >> org.apache.lucene.queryParser.QueryParserTokenManager >> exclude org.apache.lucene.queryParser.ParseException --python lucene >> --mapping >> rg.apache.lucene.document.Document >> 'get:(Ljava/lang/String;)Ljava/lang/String; >> --mapping java.util.Properties >> 'getProperty:(Ljava/lang/String;)Ljava/lang/Str >> g;' --sequence org.apache.lucene.search.Hits 'length:()I' >> 'doc:(I)Lorg/apache/ >> cene/document/Document;' --rename >> org.apache.lucene.search.highlight.SpanScore >> HighlighterSpanScorer --version 2.4.1 --module python/collections.py >> --files >> build >> Traceback (most recent call last): >> File "c:\Python26\lib\runpy.py", line 122, in _run_module_as_main >> "__main__", fname, loader, pkg_name) >> File "c:\Python26\lib\runpy.py", line 34, in _run_code >> exec code in run_globals >> File >> "c:\Python26\lib\site-packages\jcc-2.3-py2.6-win32.egg\jcc\__main__.py" >> line 82, in <module> >> cpp.jcc(sys.argv) >> File "c:\Python26\lib\site-packages\jcc-2.3-py2.6-win32.egg\jcc\cpp.py", >> lin >> 332, in jcc >> wrapperFiles = int(wrapperFiles) >> ValueError: invalid literal for int() with base 10: '--build' >> make: *** [compile] Error 255 >> >> I tried to check cpp.py myself, but didn't get anything new. >> >> Regards, >> Abhinav >> >>