On Thu, 22 May 2008, Bill Janssen wrote:
I just did an SVN update on my Mac Pro, and re-built JCC to get 1.9,
and installed it.
Then I tried to re-build PyLucene, but no soap:
CFLAGS="" /usr/bin/python -m jcc --shared --jar
lucene-java-2.4.0-649619/build/lucene-core-2.4.0-649619.jar --jar
lucene-java-2.4.0-649619/build/contrib/snowball/lucene-snowball-2.4.0-649619.jar --jar
lucene-java-2.4.0-649619/build/contrib/highlighter/lucene-highlighter-2.4.0-649619.jar
--jar lucene-java-2.4.0-649619/build/contrib/analyzers/lucene-analyzers-2.4.0-649619.jar
--jar lucene-java-2.4.0-649619/build/contrib/regex/lucene-regex-2.4.0-649619.jar --jar
lucene-java-2.4.0-649619/build/contrib/queries/lucene-queries-2.4.0-649619.jar --jar
build/jar/extensions.jar --package java.lang java.lang.System java.lang.Runtime --package
java.util java.text.SimpleDateFormat --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.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/String;'
--sequence org.apache.lucene.search.Hits 'length:()I'
'doc:(I)Lorg/apache/lucene/document/Document;' --version 2.4.0-649619 --files 1 --build
Traceback (most recent call last):
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/runpy.py",
line 95, in run_module
filename, loader, alter_sys)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/runpy.py",
line 52, in _run_module_code
mod_name, mod_fname, mod_loader)
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/runpy.py",
line 32, in _run_code
exec code in run_globals
File
"/Library/Python/2.5/site-packages/JCC-1.9-py2.5-macosx-10.5-i386.egg/jcc/__init__.py",
line 28, in <module>
cpp.jcc(sys.argv)
File
"/Library/Python/2.5/site-packages/JCC-1.9-py2.5-macosx-10.5-i386.egg/jcc/cpp.py",
line 286, in jcc
from python import python, module
File
"/Library/Python/2.5/site-packages/JCC-1.9-py2.5-macosx-10.5-i386.egg/jcc/python.py",
line 27, in <module>
from cpp import Modifier, findClass
ImportError: cannot import name findClass
make: *** [compile] Error 255
Does the attached patch fix it ?
Andi..
Index: jcc/python.py
===================================================================
--- jcc/python.py (revision 419)
+++ jcc/python.py (working copy)
@@ -24,7 +24,8 @@
from cpp import PRIMITIVES, RESERVED, INDENT, HALF_INDENT
from cpp import typename, line, signature, find_method, split_pkg, sort
-from cpp import Modifier, findClass
+from cpp import Modifier
+from _jcc import findClass
from config import INCLUDES, CFLAGS, LFLAGS
python_ver = '%d.%d.%d' %(sys.version_info[0:3])
_______________________________________________
pylucene-dev mailing list
pylucene-dev@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev