lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SangHee Kim <sangheest...@gmail.com>
Subject Re: ImportError: cannot import name Library, during installing PyLucene
Date Sun, 13 Oct 2013 00:42:49 GMT
Hi Andi,

I have tested building and installing pylucene 4.5 with setuptools 1.1.6
and it works. Thanks!

a. Code of pylucene I used :
http://svn.apache.org/viewvc/lucene/pylucene/branches/pylucene_4_5/
b. Setuptools version : setuptools-1.1.6-py2.7.egg


On Fri, Oct 11, 2013 at 3:15 PM, Andi Vajda <vajda@apache.org> wrote:

>
> On Fri, 11 Oct 2013, SangHee Kim wrote:
>
>  Hi everyone!
>>
>> I have spent 5 hours to fix this problem but I can't. During installing
>> PyLucene withhttp://lucene.apache.org/**pylucene/install.htmt<http://lucene.apache.org/pylucene/install.htmt>,
I faced with
>> a error like follwing.
>>
>> sanghee-m:jcc sanghee$ python setup.py build
>> found JAVAFRAMEWORKS =
>> /System/Library/Frameworks/**JavaVM.frameworkTraceback (most recent call
>>
>> last):
>>  File "setup.py", line 398, in <module>
>>    main('--debug' in sys.argv)
>>  File "setup.py", line 306, in main
>>    from setuptools import LibraryImportError: cannot import name Library
>>
>
> Indeed, there are two problems with setuptools 1.1.6, apparently:
>   1. the Library class is only accessible via setuptools.extension
>   2. the logic in setuptools.command.build_ext patching in darwin-specific
>      options for building a shared library into _CONFIG_VARS is broken
>
> I added code to JCC's setup.py to workaround both issues.
> This is checked into rev 1531420 in pylucene's trunk.
>
> Please, refresh your copy of JCC from pylucene's trunk (still called
> 2.17), rebuild and reinstall it and try your pylucene 4.4.0 build again.
> Please, let me know if this solves the problem for you as well.
>
> Andi..
>



-- 
SangHee Kim
http://goo.gl/LnpDX

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