Return-Path: X-Original-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Delivered-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6DC4F10C94 for ; Fri, 11 Oct 2013 21:15:54 +0000 (UTC) Received: (qmail 35932 invoked by uid 500); 11 Oct 2013 21:15:54 -0000 Delivered-To: apmail-lucene-pylucene-dev-archive@lucene.apache.org Received: (qmail 35810 invoked by uid 500); 11 Oct 2013 21:15:52 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Received: (qmail 35788 invoked by uid 99); 11 Oct 2013 21:15:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Oct 2013 21:15:51 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [50.0.193.30] (HELO ovaltofu.org) (50.0.193.30) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Oct 2013 21:15:45 +0000 Received: from [192.168.0.34] ([192.168.0.34]) (authenticated bits=0) by ovaltofu.org (8.14.4/8.14.4) with ESMTP id r9BLFIKe003249 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 11 Oct 2013 14:15:21 -0700 (PDT) Date: Fri, 11 Oct 2013 14:15:21 -0700 (PDT) From: Andi Vajda X-X-Sender: vajda@yuzu.local Reply-To: Andi Vajda To: pylucene-dev@lucene.apache.org Subject: Re: ImportError: cannot import name Library, during installing PyLucene In-Reply-To: Message-ID: References: User-Agent: Alpine 2.01 (OSX 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org 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 , 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 > 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..