Re: [pylucene-dev] Pyton 2.6 + JCC + Pylucene issue.

2008-11-23 Thread Andi Vajda


On Sun, 23 Nov 2008, Jose Neto wrote:


I used  -m jcc.__main__

Now I got the following error:


$ make
/cygdrive/f/Python26//python.exe -m jcc.__main__ --shared --jar
lucene-java-2.4.
0/build/lucene-core-2.4.0.jar  [...]
[..]  --version 2.4.0 --files 2 --build
f:\Python26\python.exe: No module named _jcc
make: *** [compile] Error 1


There's no such _jcc module - at least, I did not find any.


That's because, as you already know, the installation of jcc failed with an 
'error'. Assuming you have setuptools installed, which is what jcc uses, you 
should contact the relevant mailing list for that problem.


If, on the other hand, you don't have setuptools installed yet, and are 
hence using distutils, you should install setuptools next to see if that 
solves the installation jcc problem (jcc's setup.py uses setuptools if 
found, distutils otherwise).


http://www.google.com/search?q=installing+setuptools&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

Andi..



Regards
Jose


> / Greetings,
/>/
/>/ I'm quite a newbie in Python, but I found the language very  
/>/ productive, so that I'm abandoning Java in favor of Python.
/>/
/>/ I'm trying to use pylucene in Python 2.6. Since there's no windows  
/>/ build for 2.6, I try to build the source code.
/>/
//[...]
/>/ f:\Python26\python.exe: jcc is a package and cannot be directly  
/>/ executed
/
That's a python 2.6 novelty.
See the 2.6 example for Mac OS X.
Use -m jcc.__main__ instead of -m jcc when invoking it.

Andi..






___
pylucene-dev mailing list
pylucene-dev@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev


Re: [pylucene-dev] Pyton 2.6 + JCC + Pylucene issue.

2008-11-23 Thread Jose Neto
Sorry about the last email - I sent it in HTML format instead of plain 
text - I'm resending it now.


I used  -m jcc.__main__

Now I got the following error:


$ make /cygdrive/f/Python26//python.exe -m jcc.__main__ --shared
--jar lucene-java-2.4. 0/build/lucene-core-2.4.0.jar  [...] [..]
--version 2.4.0 --files 2 --build f:\Python26\python.exe: No module
named _jcc make: *** [compile] Error 1


There's no such _jcc module - at least, I did not find any.

Regards Jose



> / Greetings,
 />/ />/ I'm quite a newbie in Python, but I found the language very
 />/ productive, so that I'm abandoning Java in favor of Python. />/
 />/ I'm trying to use pylucene in Python 2.6. Since there's no
 windows />/ build for 2.6, I try to build the source code. />/
 //[...] />/ f:\Python26\python.exe: jcc is a package and cannot be
 directly />/ executed / That's a python 2.6 novelty. See the 2.6
 example for Mac OS X. Use -m jcc.__main__ instead of -m jcc when
 invoking it.

 Andi..









smime.p7s
Description: S/MIME Cryptographic Signature
___
pylucene-dev mailing list
pylucene-dev@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev


[pylucene-dev] Pyton 2.6 + JCC + Pylucene issue.

2008-11-23 Thread Jose Neto




I used  -m jcc.__main__

Now I got the following error:


$ make
/cygdrive/f/Python26//python.exe -m jcc.__main__ --shared --jar
lucene-java-2.4.
0/build/lucene-core-2.4.0.jar  [...]
[..]  --version 2.4.0 --files 2 --build
f:\Python26\python.exe: No module named _jcc
make: *** [compile] Error 1


There's no such _jcc module - at least, I did not find any.

Regards
Jose


> / Greetings,
/>/
/>/ I'm quite a newbie in Python, but I found the language very  
/>/ productive, so that I'm abandoning Java in favor of Python.
/>/
/>/ I'm trying to use pylucene in Python 2.6. Since there's no
windows  
/>/ build for 2.6, I try to build the source code.
/>/
//[...]
/>/ f:\Python26\python.exe: jcc is a package and cannot be directly  
/>/ executed
/
That's a python 2.6 novelty.
See the 2.6 example for Mac OS X.
Use -m jcc.__main__ instead of -m jcc when invoking it.

Andi..









smime.p7s
Description: S/MIME Cryptographic Signature
___
pylucene-dev mailing list
pylucene-dev@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev


Re: [pylucene-dev] Pyton 2.6 + JCC + Pylucene issue.

2008-11-23 Thread Andi Vajda

On Nov 23, 2008, at 4:44, Jose Neto <[EMAIL PROTECTED]> wrote:

> Greetings,
>
> I'm quite a newbie in Python, but I found the language very  
> productive, so that I'm abandoning Java in favor of Python.
>
> I'm trying to use pylucene in Python 2.6. Since there's no windows  
> build for 2.6, I try to build the source code.
>
> First of all, I build JCC (windows, using cygwin)
>
> |python setup.py build
> running build
> running build_py
> [...]
> building 'jcc' extension
> error: None
>
> python setup.py install
> running install
> [...]
> copying jcc\config.py -> build\lib.win32-2.6\jcc
> copying jcc\classes\org\osafoundation\jcc\PythonException.class ->  
> build\lib.win32-2.6\jcc\classes\org\osafoundation\jcc
> running build_ext
> building 'jcc' extension
> error: None
> |
>
> Notice that it won't copy anything on my "F:\Python26\Lib\site- 
> packages" directory. I don't know why. So that, I don't know if it's  
> really installed or not.
>
> Now, I'll make pylucene
>
> |make
> /cygdrive/f/Python26//python.exe -m jcc --shared --jar lucene- 
> java-2.4.0/build/lucene-core-2.4.0.jar
> [...]
> 'doc:(I)Lorg/apache/lucene/document/Document;' --version 2.4.0 -- 
> files 2 --build
>
> f:\Python26\python.exe: No module named jcc
> make: *** [compile] Error 1
> |
>
> So, it seems JCC wasn't installed at all.
>
> Then, I try to copy the "jcc build" under F:\Python26\Lib\site- 
> packages, and I try to make pylucene again:
>
> |make
> [...]
> f:\Python26\python.exe: jcc is a package and cannot be directly  
> executed

That's a python 2.6 novelty.
See the 2.6 example for Mac OS X.
Use -m jcc.__main__ instead of -m jcc when invoking it.

Andi..

>
> make: *** [compile] Error 1
> |
>
> Has anyone else seen this and found a workaround?
>
> Regards,
> Jose
>
> ___
> pylucene-dev mailing list
> pylucene-dev@osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
___
pylucene-dev mailing list
pylucene-dev@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev


[pylucene-dev] Pyton 2.6 + JCC + Pylucene issue.

2008-11-23 Thread Jose Neto

Greetings,

I'm quite a newbie in Python, but I found the language very productive, 
so that I'm abandoning Java in favor of Python.


I'm trying to use pylucene in Python 2.6. Since there's no windows build 
for 2.6, I try to build the source code.


First of all, I build JCC (windows, using cygwin)

|python setup.py build
running build
running build_py
[...]
building 'jcc' extension
error: None

python setup.py install
running install
[...]
copying jcc\config.py -> build\lib.win32-2.6\jcc
copying jcc\classes\org\osafoundation\jcc\PythonException.class -> 
build\lib.win32-2.6\jcc\classes\org\osafoundation\jcc

running build_ext
building 'jcc' extension
error: None
|

Notice that it won't copy anything on my "F:\Python26\Lib\site-packages" 
directory. I don't know why. So that, I don't know if it's really 
installed or not.


Now, I'll make pylucene

|make
/cygdrive/f/Python26//python.exe -m jcc --shared --jar 
lucene-java-2.4.0/build/lucene-core-2.4.0.jar

[...]
'doc:(I)Lorg/apache/lucene/document/Document;' --version 2.4.0 --files 2 
--build


f:\Python26\python.exe: No module named jcc
make: *** [compile] Error 1
|

So, it seems JCC wasn't installed at all.

Then, I try to copy the "jcc build" under F:\Python26\Lib\site-packages, 
and I try to make pylucene again:


|make
[...]
f:\Python26\python.exe: jcc is a package and cannot be directly executed
make: *** [compile] Error 1
|

Has anyone else seen this and found a workaround?

Regards,
Jose



smime.p7s
Description: S/MIME Cryptographic Signature
___
pylucene-dev mailing list
pylucene-dev@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev