Re: Problems in Pylucene with Win XP

2009-09-15 Thread Truffe Hugo
Hello. Question. Now is not called most Pylucene the package is 
installed if not JCC?


Will it be possible to rename the package to be called PyLucene?

Christian Heimes escribió:

Andi Vajda wrote:
  
Yeah, I remember now. I guess Hugo should move to Python 2.6 - it's  
built with VC++ 2008, right? - if getting the older VC++ compiler is  
not possible.


Hugo, is there any reason for you not to use Python 2.6 ?



You are correct, Python 2.6 and 3.0 are using VS 2008 aka VC9.

Christian

  




Re: Problems in Pylucene with Win XP

2009-09-12 Thread Truffe Hugo
Hello. With Visual Studio 2008 don't run Pylucene. Now I am downloading 
Visual Studio Prefessional 2003. Then I'll tell you if it works



Andi Vajda escribió:


On Fri, 11 Sep 2009, Christian Heimes wrote:


Andi Vajda schrieb:

On Thu, 10 Sep 2009, Christian Heimes wrote:

AFAIK it's getting harder and harder to acquire VS 7 for free. 
Microsoft

has removed all download links unless you have a MSDN subscription.


Err, 
http://www.google.com/search?q=downloading+VC+expressie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:officialclient=firefox-a 


The first match seems to make it very easy to acquire.


That's 2008 but you need 2003 aka VC7 to compile JCC for Python 2.5


Do you really ? If so why ?
If there is a library mismatch, can I not recompile Python 2.5
with VC++ 2008 ?

Andi..





Re: Problems in Pylucene with Win XP

2009-09-12 Thread Andi Vajda


On Sep 12, 2009, at 6:58, Truffe Hugo hugotruff...@gmail.com wrote:


Hello. With Visual Studio 2008 don't run Pylucene.


What's the actual problem ?

Andi..

Now I am downloading Visual Studio Prefessional 2003. Then I'll tell  
you if it works



Andi Vajda escribió:


On Fri, 11 Sep 2009, Christian Heimes wrote:


Andi Vajda schrieb:

On Thu, 10 Sep 2009, Christian Heimes wrote:

AFAIK it's getting harder and harder to acquire VS 7 for free.  
Microsoft
has removed all download links unless you have a MSDN  
subscription.


Err, 
http://www.google.com/search?q=downloading+VC+expressie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:officialclient=firefox-a
The first match seems to make it very easy to acquire.


That's 2008 but you need 2003 aka VC7 to compile JCC for Python 2.5


Do you really ? If so why ?
If there is a library mismatch, can I not recompile Python 2.5
with VC++ 2008 ?

Andi..



Re: Problems in Pylucene with Win XP

2009-09-12 Thread Christian Heimes
Andi Vajda wrote:
 Do you really ? If so why ?
 If there is a library mismatch, can I not recompile Python 2.5
 with VC++ 2008 ?

Distutils doesn't allow to compile extensions with another version of
MSVC than the version Python has been compiled with. The official build
of Python 2.5 is compiled with VS 2003. The source code contains an
experimental and unsupported build directory for VS 2005. In theory you
could recompile Python with VS 2005 or even 2008 but you'd have to
compile all extension yourself, too.

Library mismatches are prohibited by distutils because they may lead to
ugly and hard to debug crashes. For example you can't use file and
memory functions like close() and free() on memory and file pointers
from another MSVCRT.

Christian


Re: Problems in Pylucene with Win XP

2009-09-12 Thread Andi Vajda


On Sep 12, 2009, at 12:11, Christian Heimes li...@cheimes.de wrote:


Andi Vajda wrote:

Do you really ? If so why ?
If there is a library mismatch, can I not recompile Python 2.5
with VC++ 2008 ?


Distutils doesn't allow to compile extensions with another version of
MSVC than the version Python has been compiled with. The official  
build

of Python 2.5 is compiled with VS 2003. The source code contains an
experimental and unsupported build directory for VS 2005. In theory  
you

could recompile Python with VS 2005 or even 2008 but you'd have to
compile all extension yourself, too.

Library mismatches are prohibited by distutils because they may lead  
to

ugly and hard to debug crashes. For example you can't use file and
memory functions like close() and free() on memory and file pointers
from another MSVCRT.


Yeah, I remember now. I guess Hugo should move to Python 2.6 - it's  
built with VC++ 2008, right? - if getting the older VC++ compiler is  
not possible.


Hugo, is there any reason for you not to use Python 2.6 ?

Andi..




Christian


Re: Problems in Pylucene with Win XP

2009-09-12 Thread Christian Heimes
Andi Vajda wrote:
 Yeah, I remember now. I guess Hugo should move to Python 2.6 - it's  
 built with VC++ 2008, right? - if getting the older VC++ compiler is  
 not possible.
 
 Hugo, is there any reason for you not to use Python 2.6 ?

You are correct, Python 2.6 and 3.0 are using VS 2008 aka VC9.

Christian


Problems in Pylucene with Win XP

2009-09-10 Thread Truffe Hugo

Hi, I'm using PyLucene in Win XP, and is throwing me the following.

G:\Solr\Pylucene svnpython setup.py build -c mingw32
running build
running build_py
copying jcc\config.py - build\lib.win32-2.5\jcc
copying jcc\classes\org\apache\jcc\PythonVM.class - 
build\lib.win32-2.5\jcc\cla

sses\org\apache\jcc
copying jcc\classes\org\apache\jcc\PythonException.class - 
build\lib.win32-2.5\

jcc\classes\org\apache\jcc
running build_ext
building 'jcc._jcc' extension
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ic:/Archivos de 
programa/Java/
jdk1.6.0_07/include -Ic:/Archivos de 
programa/Java/jdk1.6.0_07/include/win32
-I_jcc -Ijcc/sources -IC:\Python25\include -IC:\Python25\PC -c 
jcc/sources/JArra

y.cpp -o build\temp.win32-2.5\Release\jcc\sources\jarray.o -DPYTHON
jcc/sources/JArray.cpp: In instantiation of `_t_jarray_jobject*':
jcc/sources/JArray.cpp:610:   instantiated from `_t_jobjectarray_jobject*'
jcc/sources/JArray.cpp:617:   instantiated from here
jcc/sources/JArray.cpp:28: error: base `t_jarray_jobject*' with only 
non-defau

lt constructor in class without a constructor
jcc/sources/JArray.cpp: In instantiation of `_t_jobjectarray_jobject*':
jcc/sources/JArray.cpp:617:   instantiated from here
jcc/sources/JArray.cpp:610: error: base `_t_jarray_jobject*' with only 
non-def

ault constructor in class without a constructor
jcc/sources/JArray.cpp: In instantiation of `_t_jarray_jstring*':
jcc/sources/JArray.cpp:934:   instantiated from here
jcc/sources/JArray.cpp:28: error: base `t_jarray_jstring*' with only 
non-defau

lt constructor in class without a constructor
jcc/sources/JArray.cpp: In instantiation of `_t_jarrayjboolean':
jcc/sources/JArray.cpp:950:   instantiated from here
jcc/sources/JArray.cpp:28: error: base `t_jarrayjboolean' with only 
non-defaul

t constructor in class without a constructor
jcc/sources/JArray.cpp: In instantiation of `_t_jarrayjbyte':
jcc/sources/JArray.cpp:966:   instantiated from here
jcc/sources/JArray.cpp:28: error: base `t_jarrayjbyte' with only 
non-default c

onstructor in class without a constructor
jcc/sources/JArray.cpp: In instantiation of `_t_jarrayjchar':
jcc/sources/JArray.cpp:982:   instantiated from here
jcc/sources/JArray.cpp:28: error: base `t_jarrayjchar' with only 
non-default c

onstructor in class without a constructor
jcc/sources/JArray.cpp: In instantiation of `_t_jarrayjdouble':
jcc/sources/JArray.cpp:998:   instantiated from here
jcc/sources/JArray.cpp:28: error: base `t_jarrayjdouble' with only 
non-default

constructor in class without a constructor
jcc/sources/JArray.cpp: In instantiation of `_t_jarrayjfloat':
jcc/sources/JArray.cpp:1014:   instantiated from here
jcc/sources/JArray.cpp:28: error: base `t_jarrayjfloat' with only 
non-default

constructor in class without a constructor
jcc/sources/JArray.cpp: In instantiation of `_t_jarrayjint':
jcc/sources/JArray.cpp:1030:   instantiated from here
jcc/sources/JArray.cpp:28: error: base `t_jarrayjint' with only 
non-default co

nstructor in class without a constructor
jcc/sources/JArray.cpp: In instantiation of `_t_jarrayjlong':
jcc/sources/JArray.cpp:1046:   instantiated from here
jcc/sources/JArray.cpp:28: error: base `t_jarrayjlong' with only 
non-default c

onstructor in class without a constructor
jcc/sources/JArray.cpp: In instantiation of `_t_jarrayjshort':
jcc/sources/JArray.cpp:1062:   instantiated from here
jcc/sources/JArray.cpp:28: error: base `t_jarrayjshort' with only 
non-default

constructor in class without a constructor
error: command 'gcc' failed with exit status 1

Any ideas?


Re: Problems in Pylucene with Win XP

2009-09-10 Thread Christian Heimes
Truffe Hugo schrieb:
 Hi, I'm using PyLucene in Win XP, and is throwing me the following.
 
 G:\Solr\Pylucene svnpython setup.py build -c mingw32

[snip]

PyLucene doesn't support mingw32 out of the box. You need to patch JCC
and you have to install a new version of GCC, too.

Christian


Re: Problems in Pylucene with Win XP

2009-09-10 Thread Christian Heimes
Andi Vajda wrote:
 it is my understanding that current JCC can be built with mingw32 out of the 
 box (apart from changes in compiler and linker settings in setup.py).
 
 If there are patches to be applied for this to work out of the box, please 
 send them in so that they can be merged in. There already is conditional 
 code in JCC for this compiler (checking __WIN32 to be defined).
 
 I know of one JCC user, a subscriber to this list, wink wink, who builds JCC 
 with the MinGW compiler. He should chime with better information, I hope.

Ah, I didn't know that the latest version of JCC works with MinGW32 out
of the box. I tried half a year ago and gave up in the favor of VS7. I
have both at my disposal and I chose the easier path.

 As an alternative, Microsoft's $0.00 VC++ compiler, called VC Express, is 
 also known to work.

AFAIK it's getting harder and harder to acquire VS 7 for free. Microsoft
has removed all download links unless you have a MSDN subscription.

 Last but not least, cygwin's gcc is not known to work with JCC. People have 
 tried but no one has reported success yet.

The outdated gcc version in Cygwin doesn't understand some C++ features
used by JCC. There is an unofficial gcc 4.x bundle for Cygwin on the
internet. Google for it.

Christian


Re: Problems in Pylucene with Win XP

2009-09-10 Thread Truffe Hugo
Hello, I am not present. I am Hugo from Argentina and my English is 
quite bad. Well, let's see if I understand.


- JCC already within PyLucene.
- I need to have Java installed, I have the jdk1.6_7
- I have Python, version 2.5. I'm a Python developer (Turbogears)
- Need c + +. For this MingGW lower-5.1.4, but I say that does not work 
(if I understand you wrong). The idea is to drop a compiler for c + + 
where. Is that correct?.


P.D.: CygWin as I used to meet the c + +?

Saludos

Christian Heimes escribió:

Andi Vajda wrote:
  
it is my understanding that current JCC can be built with mingw32 out of the 
box (apart from changes in compiler and linker settings in setup.py).


If there are patches to be applied for this to work out of the box, please 
send them in so that they can be merged in. There already is conditional 
code in JCC for this compiler (checking __WIN32 to be defined).


I know of one JCC user, a subscriber to this list, wink wink, who builds JCC 
with the MinGW compiler. He should chime with better information, I hope.



Ah, I didn't know that the latest version of JCC works with MinGW32 out
of the box. I tried half a year ago and gave up in the favor of VS7. I
have both at my disposal and I chose the easier path.

  
As an alternative, Microsoft's $0.00 VC++ compiler, called VC Express, is 
also known to work.



AFAIK it's getting harder and harder to acquire VS 7 for free. Microsoft
has removed all download links unless you have a MSDN subscription.

  
Last but not least, cygwin's gcc is not known to work with JCC. People have 
tried but no one has reported success yet.



The outdated gcc version in Cygwin doesn't understand some C++ features
used by JCC. There is an unofficial gcc 4.x bundle for Cygwin on the
internet. Google for it.

Christian

  




Re: Problems in Pylucene with Win XP

2009-09-10 Thread Andi Vajda


On Thu, 10 Sep 2009, Christian Heimes wrote:


AFAIK it's getting harder and harder to acquire VS 7 for free. Microsoft
has removed all download links unless you have a MSDN subscription.


Err, 
http://www.google.com/search?q=downloading+VC+expressie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:officialclient=firefox-a
The first match seems to make it very easy to acquire.

Andi..


Re: Problems in Pylucene with Win XP

2009-09-10 Thread Andi Vajda


On Thu, 10 Sep 2009, Truffe Hugo wrote:

Hello, I am not present. I am Hugo from Argentina and my English is quite 
bad. Well, let's see if I understand.


- JCC already within PyLucene.


Yes, the sources to JCC are part of the PyLucene source distribution. JCC is 
a sub-project of PyLucene: http://lucene.apache.org/pylucene/jcc/index.html



- I need to have Java installed, I have the jdk1.6_7


Yes, that version is supported.


- I have Python, version 2.5. I'm a Python developer (Turbogears)


Yes, that version is supported.

- Need c + +. For this MingGW lower-5.1.4, but I say that does not work (if I 
understand you wrong). The idea is to drop a compiler for c + + where. Is 
that correct?.


Yes, you need a C++ compiler. On Windows, I've only tried some old VC++ 
version on Windows 2000. I've heard that the current VC++ version works and 
that the $0.00 VC++ Express version also works. If you'd like to use another 
compiler, such as MinGW, people using it on this list should be able to help 
you. Other C++ compilers on Windows are not known to work.


Andi..


Re: Problems in Pylucene with Win XP

2009-09-10 Thread Christian Heimes
Andi Vajda schrieb:
 On Thu, 10 Sep 2009, Christian Heimes wrote:
 
 AFAIK it's getting harder and harder to acquire VS 7 for free. Microsoft
 has removed all download links unless you have a MSDN subscription.
 
 Err, 
 http://www.google.com/search?q=downloading+VC+expressie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:officialclient=firefox-a
 The first match seems to make it very easy to acquire.

That's 2008 but you need 2003 aka VC7 to compile JCC for Python 2.5

Christian


Re: Problems in Pylucene with Win XP

2009-09-10 Thread Andi Vajda


On Fri, 11 Sep 2009, Christian Heimes wrote:


Andi Vajda schrieb:

On Thu, 10 Sep 2009, Christian Heimes wrote:


AFAIK it's getting harder and harder to acquire VS 7 for free. Microsoft
has removed all download links unless you have a MSDN subscription.


Err, 
http://www.google.com/search?q=downloading+VC+expressie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:officialclient=firefox-a
The first match seems to make it very easy to acquire.


That's 2008 but you need 2003 aka VC7 to compile JCC for Python 2.5


Do you really ? If so why ?
If there is a library mismatch, can I not recompile Python 2.5
with VC++ 2008 ?

Andi..


Re: Problems in Pylucene with Win XP

2009-09-10 Thread Truffe Hugo

I am Download the version 2008 C++. If not run, download version 2003

Andi Vajda escribió:


On Fri, 11 Sep 2009, Christian Heimes wrote:


Andi Vajda schrieb:

On Thu, 10 Sep 2009, Christian Heimes wrote:

AFAIK it's getting harder and harder to acquire VS 7 for free. 
Microsoft

has removed all download links unless you have a MSDN subscription.


Err, 
http://www.google.com/search?q=downloading+VC+expressie=utf-8oe=utf-8aq=trls=org.mozilla:en-US:officialclient=firefox-a 


The first match seems to make it very easy to acquire.


That's 2008 but you need 2003 aka VC7 to compile JCC for Python 2.5


Do you really ? If so why ?
If there is a library mismatch, can I not recompile Python 2.5
with VC++ 2008 ?

Andi..