lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KK <dioxide.softw...@gmail.com>
Subject Re: Pylucene installation issue on Ubuntu LInux
Date Mon, 10 Aug 2009 10:49:40 GMT
Thanks Christian.
After installing python-dev i'm able to do the build for jcc and then
installed without gettig any error messages. Then from the main directory i
changed the makefile and (surprisingly i dint see any site-packages
directory under python2.6, but i still modified the path for __init__.py
then running  "make"  downloaded lucene stuffs, I guess, and then gave me
some error messages like this:
<error snip>

BUILD SUCCESSFUL
Total time: 2 seconds
ant -Dlucene.dir=lucene-java-2.2.0-578217
Buildfile: build.xml

compile:
    [mkdir] Created dir:
/home/kk/softies/socs/PyLucene-2.2.0-1/build/classes
    [javac] Compiling 22 source files to
/home/kk/softies/socs/PyLucene-2.2.0-1/build/classes
    [javac] Note:
/home/kk/softies/socs/PyLucene-2.2.0-1/java/org/osafoundation/lucene/store/PythonDirectory.java
uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

jar:
    [mkdir] Created dir: /home/kk/softies/socs/PyLucene-2.2.0-1/build/jar
      [jar] Building jar:
/home/kk/softies/socs/PyLucene-2.2.0-1/build/jar/extensions.jar

BUILD SUCCESSFUL
Total time: 1 second
CFLAGS= /usr/bin/python /usr/lib/python2.6/site-packages/jcc/__init__.py
--jar lucene-java-2.2.0-578217/build/lucene-core-2.2.0-578217.jar --jar
lucene-java-2.2.0-578217/build/contrib/snowball/lucene-snowball-2.2.0-578217.jar
--jar
lucene-java-2.2.0-578217/build/contrib/highlighter/lucene-highlighter-2.2.0-578217.jar
--jar
lucene-java-2.2.0-578217/build/contrib/analyzers/lucene-analyzers-2.2.0-578217.jar
--jar
lucene-java-2.2.0-578217/build/contrib/regex/lucene-regex-2.2.0-578217.jar
--jar
lucene-java-2.2.0-578217/build/contrib/queries/lucene-queries-2.2.0-578217.jar
--jar build/jar/extensions.jar --package java.lang java.lang.System
java.lang.Runtime java.lang.Boolean java.lang.Byte java.lang.Character
java.lang.Integer java.lang.Short java.lang.Long java.lang.Double
java.lang.Float --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.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.2.0-578217
--files 1 --build
/usr/bin/python: can't open file
'/usr/lib/python2.6/site-packages/jcc/__init__.py': [Errno 2] No such file
or directory
make: *** [compile] Error 2

This cleary says that there is no __init__.py file, in fact as I mentioned
earlier i couldn't find any site-packages directory under python2.6. Am I
doing something wrong? Whats the way out?

As a side note, I'm using open-jdk and not sun-jdk.

Thanks,
KK

On Mon, Aug 10, 2009 at 3:40 PM, Christian Heimes <lists@cheimes.de> wrote:

> KK wrote:
>
>  kk-laptop:~/softies/socs/PyLucene-2.2.0-1/jcc$ python setup.py build
>> running build
>> running build_py
>> creating build
>> creating build/lib.linux-i686-2.6
>> creating build/lib.linux-i686-2.6/jcc
>> copying jcc/cpp.py -> build/lib.linux-i686-2.6/jcc
>> copying jcc/config.py -> build/lib.linux-i686-2.6/jcc
>> copying jcc/python.py -> build/lib.linux-i686-2.6/jcc
>> copying jcc/__init__.py -> build/lib.linux-i686-2.6/jcc
>> creating build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/jcc.cpp -> build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/JCCEnv.cpp -> build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/functions.cpp -> build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/JObject.cpp -> build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/functions.h -> build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/macros.h -> build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/JObject.h -> build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/JArray.h -> build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/JCCEnv.h -> build/lib.linux-i686-2.6/jcc/sources
>> running build_ext
>> building 'jcc._jcc' extension
>> creating build/temp.linux-i686-2.6
>> creating build/temp.linux-i686-2.6/jcc
>> creating build/temp.linux-i686-2.6/jcc/sources
>> creating build/temp.linux-i686-2.6/_jcc
>> creating build/temp.linux-i686-2.6/_jcc/java
>> creating build/temp.linux-i686-2.6/_jcc/java/util
>> creating build/temp.linux-i686-2.6/_jcc/java/lang
>> creating build/temp.linux-i686-2.6/_jcc/java/lang/reflect
>> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
>> -Wstrict-prototypes -fPIC -I/usr/lib/jvm/java-6-openjdk/include/
>> -I/usr/lib/jvm/java-6-openjdk/include/linux -I_jcc -Ijcc/sources
>> -I/usr/include/python2.6 -c jcc/sources/jcc.cpp -o
>> build/temp.linux-i686-2.6/jcc/sources/jcc.o -DPYTHON
>> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
>> Ada/C/ObjC but not for C++
>> jcc/sources/jcc.cpp:29:20: error: Python.h: No such file or directory
>>
>
> sudo apt-get install python-dev
>
> Christian
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message