Return-Path: Delivered-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Received: (qmail 77305 invoked from network); 22 Apr 2009 18:04:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Apr 2009 18:04:41 -0000 Received: (qmail 38828 invoked by uid 500); 22 Apr 2009 18:04:41 -0000 Delivered-To: apmail-lucene-pylucene-dev-archive@lucene.apache.org Received: (qmail 38785 invoked by uid 500); 22 Apr 2009 18:04:41 -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 38775 invoked by uid 99); 22 Apr 2009 18:04:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 18:04:41 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [66.51.199.98] (HELO mail10.dslextreme.com) (66.51.199.98) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 22 Apr 2009 18:04:32 +0000 Received: (qmail 12488 invoked from network); 22 Apr 2009 18:04:10 -0000 Received: from unknown (HELO ovaltofu.org) (66.159.224.220) by mail10.dslextreme.com with (DHE-RSA-AES256-SHA encrypted) SMTP; Wed, 22 Apr 2009 11:04:10 -0700 Received: from [192.168.0.6] ([192.168.0.6]) (authenticated bits=0) by ovaltofu.org (8.13.8/8.13.5) with ESMTP id n3MI4H37000097 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 22 Apr 2009 11:04:18 -0700 (PDT) Date: Wed, 22 Apr 2009 11:05:29 -0700 (PDT) From: Andi Vajda X-X-Sender: vajda@yuzu.local Reply-To: Andi Vajda To: pylucene-dev@lucene.apache.org Subject: Re: pylucene (SVN) fails under Python-2.6.2 In-Reply-To: <49EEECAC.7070606@cheimes.de> Message-ID: References: <49EEECAC.7070606@cheimes.de> User-Agent: Alpine 2.00 (OSX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org On Wed, 22 Apr 2009, Christian Heimes wrote: > Helmut Jarausch schrieb: >> Hi, >> >> has anybody tried to install PyLucene on a system running Python-2.6 >> (2.6.2 in my case) .. snip .. >> /usr/bin/python: jcc is a package and cannot be directly executed >> make: *** [compile] Error 1 > Hello Helmut! > > Your problem ca be fixed easily. You simple have to replace "-m jcc" > with "-m jcc.__main__" in your Makefile. Python 2.6 refuses to execute a > package but the new jcc.__main__ modules takes care of the issue. In Python 2.6, it is not allowed to execute a package directly. It was determined that the Python 2.5 feature allowing this was actually a bug. This was discussed and resolved in Python issue 4195 by making it possible to use -m again if the package has a __main__ module. In Python 2.7, -m jcc works again and is equivalent to -m jcc.__main__. http://bugs.python.org/issue4195 Andi..