Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Plain View
PyLucene, mail # dev - Re: [VOTE] Release PyLucene 2.4.1


+
Andi Vajda 2009-03-11, 18:48
+
Grant Ingersoll 2009-03-11, 19:01
+
Andi Vajda 2009-03-11, 19:16
+
Christian Heimes 2009-03-11, 21:26
+
Andi Vajda 2009-03-11, 21:38
+
Andi Vajda 2009-03-11, 21:54
+
Christian Heimes 2009-03-11, 22:16
+
Andi Vajda 2009-03-11, 23:19
+
Christian Heimes 2009-03-12, 14:05
+
Christian Heimes 2009-03-12, 15:58
+
Andi Vajda 2009-03-12, 17:28
+
Christian Heimes 2009-03-12, 17:55
+
Andi Vajda 2009-03-12, 18:10
+
Christian Heimes 2009-03-12, 20:10
+
Andi Vajda 2009-03-12, 23:20
+
Aric Coady 2009-03-11, 23:51
+
Andi Vajda 2009-03-12, 01:06
Copy link to this message
-
Re: [VOTE] Release PyLucene 2.4.1
Michael McCandless 2009-03-12, 18:11

OK I was able to finally build (OS X 10.5.6) and run all tests
successfully.

I hit a few OS X issues that I think are my silliness/confused
environment.  I'll try to document them here, for future Google
diggers, but note that I sort of desperately rushed though things
trying to get it to work so I'm not 100% certain about all the details
below...

It turns out, I have python frameworks installed under
/System/Library/Frameworks/... as well as /Library/Frameworks/...  I'm
not sure if this is normal or what I did to cause it, but that caused
problems because the jcc build was going against one of them and the
pylucene build, against the other one.  Python 2.5 was installed at
both places...

At first I hit this error:

   ld: -rpath can only be used when targeting Mac OS X 10.5 or later

when building pylucene, apparently, because one of my frameworks
targeted OS X 10.3.  Somehow I got past that and then...

When building pylucene, I hit this:

       Fatal Python error: Interpreter not initialized (version
       mismatch?)

when "python -m jcc" tried to run, which was also caused by the two
frameworks.  So I edited pylucene's Makefile to force it to use the
same python framework (hardwired the full path to the python exe), and
then all worked.

(I've also symlink'd my two different 2.5 Python frameworks
together... let's see if anything breaks).

At one point I also hit this:

   _NSJVMLoadLibrary: NSAddLibrary failed for c/System/Library/
Frameworks/JavaVM.framework/Versions/CurrentJDK/Libraries/libjvm.dylib

from JCC when it tries to init the JVM, previously discussed here:

   http://mail-archives.apache.org/mod_mbox/lucene-pylucene-dev/200902.mbox/%[EMAIL PROTECTED]%3e

Downgrading to JDK 1.5 fixed, this for some reason.

Mike

Andi Vajda wrote:

>
> On Wed, 11 Mar 2009, Aric Coady wrote:
>
>> On Mar 11, 2009, at 10:06 AM, Andi Vajda wrote:
>>> With the recent release of Java Lucene 2.4.1, it's high time  
>>> PyLucene get its first release out as an Apache subproject. I hope  
>>> I got all the steps right and all the things into the right place.
>>
>> Thanks.
>>
>>> Release candidate 1 of PyLucene 2.4.1 is available from:
>>>
>>>  http://people.apache.org/~vajda/staging_area/
>>
>> Make install is failing with python 2.6 because of a conflict  
>> between the new collections module and the builtin one.
>
> Ugh. I moved the collections.py file to a python sub-directory.
> This is only a problem during the build. The collections.py file is  
> installed into the lucene egg where it is accessible from under the  
> lucene package then.
>
> I also backed out the earlier config.py build trick as it fails when  
> install is used without build first.
>
> I uploaded a new release candidate, rc3, to the staging area:
>    http://people.apache.org/~vajda/staging_area/
>
> Thank you for the bug report.
>
> Andi..
>
>>
>> ...
>> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
>> python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/
>> command/easy_install.py", line 21, in <module>
>> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
>> python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/
>> package_index.py", line 2, in <module>
>> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
>> python2.6/urlparse.py", line 84, in <module>
>>  from collections import namedtuple
>> ImportError: cannot import name namedtuple
>> make: *** [install] Error 255
>>
>> Probably will be necessary to rename or move collections.py.
>>
>> -Coady
+
Andi Vajda 2009-03-12, 18:21
+
Michael McCandless 2009-03-12, 18:15
+
Andi Vajda 2009-03-12, 18:25
+
Michael McCandless 2009-03-12, 19:40
+
Andi Vajda 2009-03-12, 20:06
+
Michael McCandless 2009-03-12, 20:15
+
Christian Heimes 2009-03-12, 20:18
+
Michael McCandless 2009-03-12, 20:37
+
Michael McCandless 2009-03-12, 18:38
+
Bill Janssen 2009-03-12, 19:00
+
Michael McCandless 2009-03-12, 19:05
+
Bill Janssen 2009-03-12, 19:52
+
Michael McCandless 2009-03-12, 20:00
+
Michael McCandless 2009-03-12, 20:07
+
Bill Janssen 2009-03-12, 20:54
+
Michael McCandless 2009-03-12, 21:05
+
Andi Vajda 2009-03-12, 23:15
+
Michael McCandless 2009-03-12, 09:42
+
Michael McCandless 2009-03-24, 18:22
+
Andi Vajda 2009-03-24, 18:26
+
Michael McCandless 2009-03-24, 18:38
+
Andi Vajda 2009-04-01, 21:30