Andi Vajda <va...@apache.org> wrote:

> >>>> I just tried this myself
> >>>
> >>> By "this", do you mean 64-bit Windows 7, or Python 2.7?
> >>
> >> Both. 64 bit Windows 7, with Python 2.7 and Java 1.6.0_22 both 32-bit.
> > OK, I'll try it again on Win 7.  I'll use a checkout of the PyLucene
> > trunk instead of a packaged tar file.
> 
> Don't use trunk, use HEAD of whatever branch you normally use, 2_9,
> 3_0, etc... The 2.9.4 and 3.0.3 releases are ready to go, pending
> Lucene Core's.

OK, I checked out branches/pylucene_3_0 on my Win 7 machine.  Same
problem.  Here's the Makefile tranche:

# Windows   (Win32, Python 2.7, Java 1.6, ant 1.8.1, Java not on PATH)
PREFIX_PYTHON=/c/Python27
ANT=JAVA_HOME="c:\\Program Files (x86)\\Java\\jdk1.6.0_22" "/c/Program 
Files/apache-ant-1.8.1/bin/ant"
PYTHON=$(PREFIX_PYTHON)/python.exe
JCC=$(PYTHON) -m jcc --shared --find-jvm-dll
NUM_FILES=3

JCC builds and installs fine, The Java code builds just fine, but when I
get to generating PyLucene, I get this:

$ make
/c/Python27/python.exe -m jcc --shared --find-jvm-dll --jar 
lucene-java-3.0.3/build/lucene-core-3.0.3.jar --jar 
lucene-java-3.0.3/build/contrib/snowball/lucene-snowball-3.0.3.jar --jar 
lucene-java-3.0.3/build/contrib/analyzers/common/lucene-analyzers-3.0.3.jar 
--jar lucene-java-3.0.3/build/contrib/regex/lucene-regex-3.0.3.jar --jar 
lucene-java-3.0.3/build/contrib/memory/lucene-memory-3.0.3.jar --jar 
lucene-java-3.0.3/build/contrib/highlighter/lucene-highlighter-3.0.3.jar --jar 
lucene-java-3.0.3/build/contrib/queries/lucene-queries-3.0.3.jar --jar 
build/jar/extensions.jar  --package java.lang java.lang.System 
java.lang.Runtime --package java.util java.util.Arrays 
java.text.SimpleDateFormat java.text.DecimalFormat java.text.Collator --package 
java.io java.io.StringReader java.io.InputStreamReader java.io.FileInputStream 
--exclude org.apache.lucene.queryParser.Token --exclude 
org.apache.lucene.queryParser.TokenMgrError --exclude 
org.apache.lucene.queryParser.QueryParserTokenMana
 ger --exclude org.apache.lucene.queryParser.ParseException --exclude 
org.apache.lucene.search.regex.JakartaRegexpCapabilities --exclude 
org.apache.regexp.RegexpTunnel --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;' --rename 
org.apache.lucene.search.highlight.SpanScorer=HighlighterSpanScorer --version 
3.0.3 --module python/collections.py --files 3 --build
make: *** [compile] Error 255
$

When I run with -v, I see this:

import runpy # precompiled from c:\Python27\lib\runpy.pyc
import imp # builtin
# c:\Python27\lib\pkgutil.pyc matches c:\Python27\lib\pkgutil.py
import pkgutil # precompiled from c:\Python27\lib\pkgutil.pyc
import jcc # directory c:\Python27\lib\site-packages\jcc-2.6-py2.7-win32.egg\jcc
# c:\Python27\lib\site-packages\jcc-2.6-py2.7-win32.egg\jcc\__init__.pyc 
matches c:\Python27\lib\site-packages\jcc-2.6-py2.7-win32.egg\jcc\__init__.py
import jcc # premake: *** [compile] Error 255

I can run jcc on its own:

$ python -m jcc --help

for instance shows me the "usage" text.

Bill

Reply via email to